예제 #1
0
    def __init__(self, title, pdata, dbstate, uistate,
                 bm_type, nav_group):
        NavigationView.__init__(self, title, pdata, dbstate, uistate,
                                bm_type, nav_group)

        OsmGps.__init__(self)
        self.dbstate = dbstate
        self.dbstate.connect('database-changed', self.change_db)
        self.default_text = "Enter location here!"
        self.centerlon = config.get("geography.center-lon")
        self.centerlat = config.get("geography.center-lat")
        self.zoom = config.get("geography.zoom")
        self.lock = config.get("geography.lock")
        if config.get('geography.path') == "":
            config.set('geography.path', GEOGRAPHY_PATH)

        self.format_helper = FormattingHelper(self.dbstate)
        self.centerlat = self.centerlon = 0.0
        self.cross_map = None
        self.current_map = None
        self.without = 0
        self.place_list = []
        self.places_found = []
        self.select_fct = None
        self.geo_mainmap = None
        theme = Gtk.IconTheme.get_default()
        self.geo_mainmap = theme.load_surface('gramps-geo-mainmap', 48, 1,
                                              None, 0)
        self.geo_altmap = theme.load_surface('gramps-geo-altmap', 48, 1,
                                             None, 0)
        if (config.get('geography.map_service') in
            (constants.OPENSTREETMAP,
             constants.MAPS_FOR_FREE,
             constants.OPENCYCLEMAP,
             constants.OSM_PUBLIC_TRANSPORT,
             )):
            default_image = self.geo_mainmap
        else:
            default_image = self.geo_altmap
        self.geo_othermap = {}
        for ident in (EventType.BIRTH,
                      EventType.DEATH,
                      EventType.MARRIAGE):
            icon = constants.ICONS.get(int(ident))
            self.geo_othermap[ident] = theme.load_surface(icon, 48, 1, None, 0)
        self.maxyear = 0
        self.minyear = 9999
        self.maxlat = 0.0
        self.minlat = 0.0
        self.maxlon = 0.0
        self.minlon = 0.0
        self.longt = 0.0
        self.latit = 0.0
        self.itemoption = None
        self.menu = None
        self.mark = None
        self.path_entry = None
        self.changemap = None
        self.clearmap = None
        self.nbplaces = 0
예제 #2
0
 def change_page(self):
     """
     Called when the page changes.
     """
     NavigationView.change_page(self)
     self.uistate.clear_filter_results()
     self.end_selection = None
예제 #3
0
    def __init__(self, pdata, dbstate, uistate, nav_group=0):
        self.dbstate = dbstate
        self.uistate = uistate

        NavigationView.__init__(self, _('Fan Chart'),
                                      pdata, dbstate, uistate,
                                      PersonBookmarks,
                                      nav_group)
        fanchart.FanChartGrampsGUI.__init__(self, self.on_childmenu_changed)
        #set needed values
        self.maxgen = self._config.get('interface.fanview-maxgen')
        self.background = self._config.get('interface.fanview-background')
        self.childring =  self._config.get('interface.fanview-childrenring')
        self.radialtext = self._config.get('interface.fanview-radialtext')
        self.twolinename = self._config.get('interface.fanview-twolinename')
        self.flipupsidedownname = self._config.get('interface.fanview-flipupsidedownname')
        self.fonttype = self._config.get('interface.fanview-font')

        self.grad_start =  self._config.get('interface.color-start-grad')
        self.grad_end =  self._config.get('interface.color-end-grad')
        self.form = self._config.get('interface.fanview-form')
        self.generic_filter = None
        self.alpha_filter = 0.2

        dbstate.connect('active-changed', self.active_changed)
        dbstate.connect('database-changed', self.change_db)

        self.additional_uis.append(self.additional_ui())
        self.allfonts = [x for x in enumerate(SystemFonts().get_system_fonts())]

        self.func_list.update({
            '<PRIMARY>J' : self.jump,
            })
예제 #4
0
    def __init__(self, pdata, dbstate, uistate, nav_group=0):
        self.dbstate = dbstate
        self.uistate = uistate

        NavigationView.__init__(self, _('Descendant Fan Chart'),
                                      pdata, dbstate, uistate,
                                      PersonBookmarks,
                                      nav_group)
        fanchartdesc.FanChartDescGrampsGUI.__init__(self, self.on_childmenu_changed)
        #set needed values
        self.maxgen = self._config.get('interface.fanview-maxgen')
        self.background = self._config.get('interface.fanview-background')
        self.fonttype = self._config.get('interface.fanview-font')

        self.grad_start =  self._config.get('interface.color-start-grad')
        self.grad_end =  self._config.get('interface.color-end-grad')
        self.form = self._config.get('interface.fanview-form')
        self.angle_algo = self._config.get('interface.angle-algorithm')
        self.dupcolor = self._config.get('interface.duplicate-color')
        self.generic_filter = None
        self.alpha_filter = 0.2

        dbstate.connect('active-changed', self.active_changed)
        dbstate.connect('database-changed', self.change_db)

        self.additional_uis.append(self.additional_ui())
        self.allfonts = [x for x in enumerate(SystemFonts().get_system_fonts())]
예제 #5
0
 def define_actions(self):
     """
     Required define_actions function for NavigationView. Builds the action
     group information required. 
     """
     NavigationView.define_actions(self)
     HtmlView._define_actions_fw_bw(self)
예제 #6
0
    def __init__(self, pdata, dbstate, uistate, nav_group=0):
        self.dbstate = dbstate
        self.uistate = uistate

        NavigationView.__init__(self, _('2-Way Fan Chart'),
                                      pdata, dbstate, uistate,
                                      PersonBookmarks,
                                      nav_group)
        fanchart2way.FanChart2WayGrampsGUI.__init__(self, self.on_childmenu_changed)
        #set needed values
        self.generations_asc = self._config.get('interface.fanview-maxgen-asc')
        self.generations_desc = self._config.get('interface.fanview-maxgen-desc')
        self.background = self._config.get('interface.fanview-background')
        self.background_gradient = self._config.get('interface.fanview-background-gradient')
        self.radialtext = self._config.get('interface.fanview-radialtext')
        self.twolinename = self._config.get('interface.fanview-twolinename')
        self.flipupsidedownname = self._config.get('interface.fanview-flipupsidedownname')
        self.fonttype = self._config.get('interface.fanview-font')

        self.grad_start =  self._config.get('interface.color-start-grad')
        self.grad_end =  self._config.get('interface.color-end-grad')
        self.form = fanchart.FORM_CIRCLE
        self.angle_algo = self._config.get('interface.angle-algorithm')
        self.dupcolor = self._config.get('interface.duplicate-color')
        self.generic_filter = None
        self.alpha_filter = 0.2

        dbstate.connect('active-changed', self.active_changed)
        dbstate.connect('database-changed', self.change_db)

        self.additional_uis.append(self.additional_ui())
        self.allfonts = [x for x in enumerate(SystemFonts().get_system_fonts())]
예제 #7
0
    def __init__(self, pdata, dbstate, uistate, nav_group=0):
        self.dbstate = dbstate
        self.uistate = uistate

        NavigationView.__init__(self, _('Fan Chart'), pdata, dbstate, uistate,
                                PersonBookmarks, nav_group)
        fanchart.FanChartGrampsGUI.__init__(self, self.on_childmenu_changed)
        #set needed values
        scg = self._config.get
        self.maxgen = scg('interface.fanview-maxgen')
        self.background = scg('interface.fanview-background')
        self.childring = scg('interface.fanview-childrenring')
        self.radialtext = scg('interface.fanview-radialtext')
        self.twolinename = scg('interface.fanview-twolinename')
        self.flipupsidedownname = scg('interface.fanview-flipupsidedownname')
        self.fonttype = scg('interface.fanview-font')

        self.grad_start = scg('interface.color-start-grad')
        self.grad_end = scg('interface.color-end-grad')
        self.form = scg('interface.fanview-form')
        self.showid = scg('interface.fanview-showid')
        self.generic_filter = None
        self.alpha_filter = 0.2
        self.scrolledwindow = None

        dbstate.connect('active-changed', self.active_changed)
        dbstate.connect('database-changed', self.change_db)

        self.additional_uis.append(self.additional_ui)
        self.allfonts = [
            x for x in enumerate(SystemFonts().get_system_fonts())
        ]

        self.uistate.connect('font-changed', self.font_changed)
예제 #8
0
 def define_actions(self):
     """
     Required define_actions function for NavigationView. Builds the action
     group information required. 
     """
     NavigationView.define_actions(self)
     HtmlView._define_actions_fw_bw(self)
예제 #9
0
    def __init__(self, pdata, dbstate, uistate, nav_group=0):
        self.dbstate = dbstate
        self.uistate = uistate

        NavigationView.__init__(self, _('Descendant Fan Chart'),
                                      pdata, dbstate, uistate,
                                      PersonBookmarks,
                                      nav_group)
        fanchartdesc.FanChartDescGrampsGUI.__init__(self, self.on_childmenu_changed)
        #set needed values
        self.maxgen = self._config.get('interface.fanview-maxgen')
        self.background = self._config.get('interface.fanview-background')
        self.radialtext = self._config.get('interface.fanview-radialtext')
        self.twolinename = self._config.get('interface.fanview-twolinename')
        self.flipupsidedownname = self._config.get('interface.fanview-flipupsidedownname')
        self.fonttype = self._config.get('interface.fanview-font')

        self.grad_start =  self._config.get('interface.color-start-grad')
        self.grad_end =  self._config.get('interface.color-end-grad')
        self.form = self._config.get('interface.fanview-form')
        self.angle_algo = self._config.get('interface.angle-algorithm')
        self.dupcolor = self._config.get('interface.duplicate-color')
        self.generic_filter = None
        self.alpha_filter = 0.2

        dbstate.connect('active-changed', self.active_changed)
        dbstate.connect('database-changed', self.change_db)

        self.additional_uis.append(self.additional_ui())
        self.allfonts = [x for x in enumerate(SystemFonts().get_system_fonts())]

        self.func_list.update({
            '<PRIMARY>J' : self.jump,
            })
예제 #10
0
    def __init__(self, title, pdata, dbstate, uistate, bm_type, nav_group):
        NavigationView.__init__(self, title, pdata, dbstate, uistate, bm_type,
                                nav_group)

        OsmGps.__init__(self, uistate)
        self.dbstate = dbstate
        self.dbstate.connect('database-changed', self.change_db)
        self.dbstate.connect('no-database', self.clear_view)
        self.default_text = "Enter location here!"
        self.centerlon = config.get("geography.center-lon")
        self.centerlat = config.get("geography.center-lat")
        self.zoom = config.get("geography.zoom")
        self.lock = config.get("geography.lock")
        if config.get('geography.path') == "":
            config.set('geography.path', GEOGRAPHY_PATH)

        self.format_helper = FormattingHelper(self.dbstate)
        self.centerlat = self.centerlon = 0.0
        self.cross_map = None
        self.current_map = None
        self.without = 0
        self.place_list = []
        self.places_found = []
        self.select_fct = None
        self.geo_mainmap = None
        theme = Gtk.IconTheme.get_default()
        self.geo_mainmap = theme.load_surface('gramps-geo-mainmap', 48, 1,
                                              None, 0)
        self.geo_altmap = theme.load_surface('gramps-geo-altmap', 48, 1, None,
                                             0)
        if (config.get('geography.map_service') in (
                constants.OPENSTREETMAP,
                constants.MAPS_FOR_FREE,
                constants.OPENCYCLEMAP,
                constants.OSM_PUBLIC_TRANSPORT,
        )):
            default_image = self.geo_mainmap
        else:
            default_image = self.geo_altmap
        self.geo_othermap = {}
        for ident in (EventType.BIRTH, EventType.DEATH, EventType.MARRIAGE):
            icon = constants.ICONS.get(int(ident))
            self.geo_othermap[ident] = theme.load_surface(icon, 48, 1, None, 0)
        self.maxyear = 0
        self.minyear = 9999
        self.maxlat = 0.0
        self.minlat = 0.0
        self.maxlon = 0.0
        self.minlon = 0.0
        self.longt = 0.0
        self.latit = 0.0
        self.itemoption = None
        self.menu = None
        self.mark = None
        self.path_entry = None
        self.changemap = None
        self.clearmap = None
        self.nbplaces = 0
예제 #11
0
파일: geography.py 프로젝트: aignas/gramps
 def change_page(self):
     """
     Called when the page changes.
     """
     NavigationView.change_page(self)
     self.uistate.clear_filter_results()
     self.end_selection = None
     self.osm.grab_focus()
     self.set_crosshair(config.get("geography.show_cross"))
예제 #12
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required.
        """
        NavigationView.define_actions(self)

        self._add_action('PrintView', self.printview, "<PRIMARY>P")
        self._add_action('PRIMARY-J', self.jump, '<PRIMARY>J')
예제 #13
0
 def change_page(self):
     """
     Called when the page changes.
     """
     NavigationView.change_page(self)
     self.uistate.clear_filter_results()
     self.end_selection = None
     self.osm.grab_focus()
     self.set_crosshair(config.get("geography.show_cross"))
예제 #14
0
 def define_actions(self):
     """
     Required define_actions function for PageView. Builds the action
     group information required.
     As this function is overriden in some plugins, we need to call
     another method.
     """
     NavigationView.define_actions(self)
     self.define_print_actions()
예제 #15
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required.
        """
        NavigationView.define_actions(self)

        self._add_action('PrintView', self.printview, "<PRIMARY><SHIFT>P")
        self._add_action('PRIMARY-J', self.jump, '<PRIMARY>J')
예제 #16
0
파일: geography.py 프로젝트: aignas/gramps
 def define_actions(self):
     """
     Required define_actions function for PageView. Builds the action
     group information required.
     As this function is overriden in some plugins, we need to call
     another method.
     """
     NavigationView.define_actions(self)
     self.define_print_actions()
예제 #17
0
파일: geography.py 프로젝트: xfengs/gramps
 def define_actions(self):
     """
     Required define_actions function for PageView. Builds the action
     group information required.
     As this function is overriden in some plugins, we need to call
     another method.
     """
     NavigationView.define_actions(self)
     self._add_action('PrintView', self.printview, '<Primary>P')
예제 #18
0
파일: geography.py 프로젝트: xfengs/gramps
    def __init__(self, title, pdata, dbstate, uistate, bm_type, nav_group):
        NavigationView.__init__(self, title, pdata, dbstate, uistate, bm_type,
                                nav_group)

        OsmGps.__init__(self, uistate)
        self.dbstate = dbstate
        self.dbstate.connect('database-changed', self.change_db)
        self.dbstate.connect('no-database', self.clear_view)
        self.default_text = "Enter location here!"
        self.centerlon = config.get("geography.center-lon")
        self.centerlat = config.get("geography.center-lat")
        self.zoom = config.get("geography.zoom")
        self.lock = config.get("geography.lock")
        if config.get('geography.path') == "":
            config.set('geography.path', GEOGRAPHY_PATH)

        self.uistate = uistate
        self.uistate.connect('font-changed', self.font_changed)
        self.uistate.connect('nameformat-changed', self.build_tree)
        self.format_helper = FormattingHelper(self.dbstate, self.uistate)
        self.centerlat = self.centerlon = 0.0
        self.cross_map = None
        self.current_map = None
        self.without = 0
        self.place_list = []
        self.places_found = []
        self.select_fct = None
        self.geo_mainmap = None
        self.reloadtiles = None
        theme = Gtk.IconTheme.get_default()
        self.geo_mainmap = theme.load_surface('gramps-geo-mainmap', 48, 1,
                                              None, 0)
        self.geo_altmap = theme.load_surface('gramps-geo-altmap', 48, 1, None,
                                             0)
        self.sort = []
        self.geo_othermap = {}
        for ident in (EventType.BIRTH, EventType.DEATH, EventType.MARRIAGE):
            icon = constants.ICONS.get(int(ident))
            self.geo_othermap[ident] = theme.load_surface(icon, 48, 1, None, 0)
        self.maxyear = 0
        self.minyear = 9999
        self.maxlat = 0.0
        self.minlat = 0.0
        self.maxlon = 0.0
        self.minlon = 0.0
        self.longt = 0.0
        self.latit = 0.0
        self.itemoption = None
        self.menu = None
        self.mark = None
        self.path_entry = None
        self.changemap = None
        self.clearmap = None
        self.nbplaces = 0
        self.nbmarkers = 0
        self.place_without_coordinates = []
예제 #19
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required.
        """
        NavigationView.define_actions(self)

        self._add_action('PrintView', 'document-print', _("_Print..."),
                         accel="<PRIMARY>P",
                         tip=_("Print or save the Fan Chart View"),
                         callback=self.printview)
예제 #20
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required.
        """
        NavigationView.define_actions(self)

        self._add_action('PrintView', 'document-print', _("_Print..."),
                         accel="<PRIMARY>P",
                         tip=_("Print or save the Fan Chart View"),
                         callback=self.printview)
예제 #21
0
    def __init__(self, title, pdata, dbstate, uistate,
                 bm_type, nav_group):
        NavigationView.__init__(self, title, pdata, dbstate, uistate,
                                bm_type, nav_group)

        self.dbstate = dbstate
        self.dbstate.connect('database-changed', self.change_db)
        self.default_text = "Enter location here!"
        self.centerlon = config.get("geography.center-lon")
        self.centerlat = config.get("geography.center-lat")
        self.zoom = config.get("geography.zoom")
        self.lock = config.get("geography.lock")
        if config.get('geography.path') == "" :
            config.set('geography.path', GEOGRAPHY_PATH )
        OsmGps.__init__(self)

        self.format_helper = FormattingHelper(self.dbstate)
        self.centerlat = self.centerlon = 0.0
        self.cross_map = None
        self.current_map = None
        self.without = 0
        self.place_list = []
        self.places_found = []
        self.select_fct = None
        self.geo_mainmap = None
        path = os.path.join(IMAGE_DIR, "48x48",
                            ('gramps-geo-mainmap' + '.png' ))
        with open(path, 'rb') as fh: # this is to avoid bug with cairo 1.8.8
            self.geo_mainmap = cairo.ImageSurface.create_from_png(fh)
        #self.geo_mainmap = cairo.ImageSurface.create_from_png(path)
        path = os.path.join(IMAGE_DIR, "48x48",
                            ('gramps-geo-altmap' + '.png' ))
        with open(path, 'rb') as fh: # this is to avoid bug with cairo 1.8.8
            self.geo_altmap = cairo.ImageSurface.create_from_png(fh)
        #self.geo_altmap = cairo.ImageSurface.create_from_png(path)
        if ( config.get('geography.map_service') in
            ( constants.OPENSTREETMAP,
              constants.MAPS_FOR_FREE,
              constants.OPENCYCLEMAP,
              constants.OSM_PUBLIC_TRANSPORT,
             )):
            default_image = self.geo_mainmap
        else:
            default_image = self.geo_altmap
        self.geo_othermap = {}
        for ident in ( EventType.BIRTH,
                    EventType.DEATH,
                    EventType.MARRIAGE ):
            path = os.path.join(IMAGE_DIR, "48x48",
                                (constants.ICONS.get(int(ident), default_image) + '.png' ))
            with open(path, 'rb') as fh: # this is to avoid bug with cairo 1.8.8
                self.geo_othermap[ident] = cairo.ImageSurface.create_from_png(fh)
예제 #22
0
파일: geoclose.py 프로젝트: vperic/gramps
    def define_actions(self):
        """
        Define action for the reference person button.
        """
        NavigationView.define_actions(self)

        self.define_print_actions()
        self.ref_person = Gtk.ActionGroup(name=self.title + '/Selection')
        self.ref_person.add_actions([
            ('RefPerson', 'gramps-person', _('reference _Person'), None ,
            _("Select the person which is the reference for life ways"),
            self.selectPerson),
            ])
        self._add_action_group(self.ref_person)
예제 #23
0
    def define_actions(self):
        """
        Define action for the reference person button.
        """
        NavigationView.define_actions(self)

        self.define_print_actions()
        self.ref_person = Gtk.ActionGroup(name=self.title + '/Selection')
        self.ref_person.add_actions([
            ('RefPerson', 'gramps-person', _('reference _Person'), None,
            _("Select the person which is the reference for life ways"),
            self.select_person),
            ])
        self._add_action_group(self.ref_person)
예제 #24
0
    def define_actions(self):
        """
        Define action for the reference family button.
        """
        NavigationView.define_actions(self)

        self.define_print_actions()
        self.ref_family = Gtk.ActionGroup(self.title + '/Selection')
        self.ref_family.add_actions([
            ('RefFamily', 'gramps-family', _('reference _Family'), None ,
            _("Select the family which is the reference for life ways"),
            self.selectFamily),
            ])
        self._add_action_group(self.ref_family)
예제 #25
0
    def define_actions(self):
        """
        Define action for the reference family button.
        """
        NavigationView.define_actions(self)

        self.define_print_actions()
        self.ref_family = Gtk.ActionGroup(self.title + '/Selection')
        self.ref_family.add_actions([
            ('RefFamily', 'gramps-family', _('reference _Family'), None ,
            _("Select the family which is the reference for life ways"),
            self.selectFamily),
            ])
        self._add_action_group(self.ref_family)
예제 #26
0
    def __init__(self, pdata, dbstate, uistate, nav_group=0):
        NavigationView.__init__(self, _('Quilt chart'), pdata, dbstate,
                                uistate, PersonBookmarks, nav_group)

        self.dbstate = dbstate
        self.uistate = uistate
        self.dbstate.connect('database-changed', self.change_db)

        self.additional_uis.append(self.additional_ui())

        # GTK objects
        self.scrolledwindow = None
        self.canvas = None
        self.scale = 1.0
        self._in_move = False
        self.layers = None
        self.paths = []
예제 #27
0
    def __init__(self, pdata, dbstate, uistate, nav_group=0):
        NavigationView.__init__(self, _("Quilt chart"), pdata, dbstate, uistate, PersonBookmarks, nav_group)

        self.dbstate = dbstate
        self.uistate = uistate
        self.dbstate.connect("database-changed", self.change_db)

        self.additional_uis.append(self.additional_ui())

        # GTK objects
        self.scrolledwindow = None
        self.canvas = None
        self.scale = 1.0
        self._in_move = False
        self.layers = None
        self.people = []
        self.paths = []
예제 #28
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required. We extend beyond the normal here,
        since we want to have more than one action group for the PersonView.
        Most PageViews really won't care about this.

        Special action groups for Forward and Back are created to allow the
        handling of navigation buttons. Forward and Back allow the user to
        advance or retreat throughout the history, and we want to have these
        be able to toggle these when you are at the end of the history or
        at the beginning of the history.
        """
        NavigationView.define_actions(self)

        self._add_action('FilterEdit', None, _('Person Filter Editor'),
                        callback=self.filter_editor)
예제 #29
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required. We extend beyond the normal here,
        since we want to have more than one action group for the PersonView.
        Most PageViews really won't care about this.

        Special action groups for Forward and Back are created to allow the
        handling of navigation buttons. Forward and Back allow the user to
        advance or retreat throughout the history, and we want to have these
        be able to toggle these when you are at the end of the history or
        at the beginning of the history.
        """
        NavigationView.define_actions(self)

        self._add_action('FilterEdit',
                         None,
                         _('Person Filter Editor'),
                         callback=self.filter_editor)
예제 #30
0
    def __init__(self, pdata, dbstate, uistate, title=_('HtmlView')):
        NavigationView.__init__(self, title, pdata, dbstate, uistate,
                                PersonBookmarks,
                                nav_group=0
                               )
        self.dbstate = dbstate
        self.back_action = None
        self.forward_action = None
        self.renderer = None
        self.urlfield = ""
        self.htmlfile = ""
        self.filter = Gtk.Box()
        self.table = ""
        self.browser = NOWEB
        #self.bootstrap_handler = None
        self.box = None
        self.toolkit = None

        self.additional_uis.append(self.additional_ui())
예제 #31
0
    def __init__(self, pdata, dbstate, uistate, nav_group=0):
        self.dbstate = dbstate
        self.uistate = uistate

        NavigationView.__init__(self, _('2-Way Fan Chart'), pdata, dbstate,
                                uistate, PersonBookmarks, nav_group)
        fanchart2way.FanChart2WayGrampsGUI.__init__(self,
                                                    self.on_childmenu_changed)
        #set needed values
        scg = self._config.get
        self.generations_asc = scg('interface.fanview-maxgen-asc')
        self.generations_desc = scg('interface.fanview-maxgen-desc')
        self.background = scg('interface.fanview-background')
        self.background_gradient = scg('interface.fanview-background-gradient')
        self.radialtext = scg('interface.fanview-radialtext')
        self.twolinename = scg('interface.fanview-twolinename')
        self.flipupsidedownname = scg('interface.fanview-flipupsidedownname')
        self.fonttype = scg('interface.fanview-font')

        self.grad_start = scg('interface.color-start-grad')
        self.grad_end = scg('interface.color-end-grad')
        self.form = fanchart.FORM_CIRCLE
        self.showid = scg('interface.fanview-showid')
        self.angle_algo = scg('interface.angle-algorithm')
        self.dupcolor = scg('interface.duplicate-color')
        self.generic_filter = None
        self.alpha_filter = 0.2
        self.scrolledwindow = None

        dbstate.connect('active-changed', self.active_changed)
        dbstate.connect('database-changed', self.change_db)

        self.additional_uis.append(FanChartView.additional_ui)
        self.allfonts = [
            x for x in enumerate(SystemFonts().get_system_fonts())
        ]

        self.func_list.update({
            '<PRIMARY>J': self.jump,
        })
        self.uistate.connect('font-changed', self.font_changed)
예제 #32
0
    def __init__(self, pdata, dbstate, uistate, title=_('HtmlView')):
        NavigationView.__init__(self,
                                title,
                                pdata,
                                dbstate,
                                uistate,
                                PersonBookmarks,
                                nav_group=0)
        self.dbstate = dbstate
        self.back_action = None
        self.forward_action = None
        self.renderer = None
        self.urlfield = ""
        self.htmlfile = ""
        self.filter = Gtk.HBox()
        self.table = ""
        self.browser = NOWEB
        #self.bootstrap_handler = None
        self.box = None
        self.toolkit = None

        self.additional_uis.append(self.additional_ui())
예제 #33
0
 def get_active(self, obj):
     """overrule get_active, to support call as in Gramplets
     """
     dummy_obj = obj
     return NavigationView.get_active(self)
예제 #34
0
 def get_active(self, object):
     """overrule get_active, to support call as in Gramplets
     """
     return NavigationView.get_active(self)
예제 #35
0
파일: geography.py 프로젝트: xfengs/gramps
 def on_delete(self):
     """
     Save all modified environment
     """
     NavigationView.on_delete(self)
     self._config.save()
예제 #36
0
파일: geography.py 프로젝트: aignas/gramps
 def on_delete(self):
     """
     Save all modified environment
     """
     NavigationView.on_delete(self)
     self._config.save()
예제 #37
0
 def get_active(self, object):
     """overrule get_active, to support call as in Gramplets
     """
     return NavigationView.get_active(self)