Пример #1
0
 def parse_options(self):
     WriterOptionBox.parse_options(self)
     if self.include_individuals_check:
         self.include_individuals = self.include_individuals_check.get_active()
         self.include_marriages = self.include_marriages_check.get_active()
         self.include_children = self.include_children_check.get_active()
         self.translate_headers = self.translate_headers_check.get_active()
Пример #2
0
 def __init__(self, person, dbstate, uistate):
     WriterOptionBox.__init__(self, person, dbstate, uistate)
     self.include_individuals = 1
     self.include_marriages = 1
     self.include_children = 1
     self.translate_headers = 1
     self.include_individuals_check = None
     self.include_marriages_check = None
     self.include_children_check = None
     self.translate_headers_check = None
Пример #3
0
 def __init__(self, person, dbstate, uistate):
     WriterOptionBox.__init__(self, person, dbstate, uistate)
     self.include_individuals = 1
     self.include_marriages = 1
     self.include_children = 1
     self.translate_headers = 1
     self.include_individuals_check = None
     self.include_marriages_check = None
     self.include_children_check = None
     self.translate_headers_check = None
Пример #4
0
 def __init__(self, person, dbstate, uistate, track=[], window=None):
     WriterOptionBox.__init__(self, person, dbstate, uistate, track=track,
                              window=window)
     ## TODO: add place filter selection
     self.include_individuals = 1
     self.include_marriages = 1
     self.include_children = 1
     self.include_places = 1
     self.translate_headers = 1
     self.include_individuals_check = None
     self.include_marriages_check = None
     self.include_children_check = None
     self.include_places_check = None
     self.translate_headers_check = None
Пример #5
0
 def __init__(self, person, dbstate, uistate, track=[], window=None):
     WriterOptionBox.__init__(self, person, dbstate, uistate, track=track,
                              window=window)
     ## TODO: add place filter selection
     self.include_individuals = 1
     self.include_marriages = 1
     self.include_children = 1
     self.include_places = 1
     self.translate_headers = 1
     self.include_individuals_check = None
     self.include_marriages_check = None
     self.include_children_check = None
     self.include_places_check = None
     self.translate_headers_check = None
Пример #6
0
    def get_option_box(self):
        from gi.repository import Gtk
        option_box = WriterOptionBox.get_option_box(self)

        self.include_individuals_check = Gtk.CheckButton(
            label=_("Include people"))
        self.include_marriages_check = Gtk.CheckButton(
            label=_("Include marriages"))
        self.include_children_check = Gtk.CheckButton(
            label=_("Include children"))
        self.include_places_check = Gtk.CheckButton(label=_("Include places"))
        self.translate_headers_check = Gtk.CheckButton(
            label=_("Translate headers"))

        self.include_individuals_check.set_active(1)
        self.include_marriages_check.set_active(1)
        self.include_children_check.set_active(1)
        self.include_places_check.set_active(1)
        self.translate_headers_check.set_active(1)

        option_box.pack_start(self.include_individuals_check, False, True, 0)
        option_box.pack_start(self.include_marriages_check, False, True, 0)
        option_box.pack_start(self.include_children_check, False, True, 0)
        option_box.pack_start(self.include_places_check, False, True, 0)
        option_box.pack_start(self.translate_headers_check, False, True, 0)

        return option_box
Пример #7
0
    def get_option_box(self):
        from gi.repository import Gtk
        option_box = WriterOptionBox.get_option_box(self)

        self.include_individuals_check = Gtk.CheckButton(label=_("Include people"))
        self.include_marriages_check = Gtk.CheckButton(label=_("Include marriages"))
        self.include_children_check = Gtk.CheckButton(label=_("Include children"))
        self.translate_headers_check = Gtk.CheckButton(label=_("Translate headers"))

        self.include_individuals_check.set_active(1) 
        self.include_marriages_check.set_active(1) 
        self.include_children_check.set_active(1) 
        self.translate_headers_check.set_active(1) 

        option_box.pack_start(self.include_individuals_check, False, True, 0)
        option_box.pack_start(self.include_marriages_check, False, True, 0)
        option_box.pack_start(self.include_children_check, False, True, 0)
        option_box.pack_start(self.translate_headers_check, False, True, 0)

        return option_box