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, })
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)
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)