From e0ce21c3e7cd192c41576aac4e657a13603c664b Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 19 Oct 2004 16:42:15 +0000 Subject: [PATCH] * src/GrampsCfg.py: eliminate unused options * src/gramps.glade: eliminate unused options svn: r3649 --- gramps2/ChangeLog | 4 + gramps2/src/GrampsCfg.py | 99 +---- gramps2/src/gramps.glade | 914 +++++++-------------------------------- 3 files changed, 156 insertions(+), 861 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 839206bc1..7bb5e1dd1 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2004-10-19 Don Allingham + * src/GrampsCfg.py: eliminate unused options + * src/gramps.glade: eliminate unused options + 2004-10-18 Don Allingham * src/GrampsBSDDB.py: add dbopen task to provide access to the db object diff --git a/gramps2/src/GrampsCfg.py b/gramps2/src/GrampsCfg.py index a33270922..1f3fe203f 100644 --- a/gramps2/src/GrampsCfg.py +++ b/gramps2/src/GrampsCfg.py @@ -75,18 +75,14 @@ _name_format_list = [ ] panellist = [ - (_("Database"), - [( _("General"), 1), - ( _("Media Objects"), 7), - ( _("GRAMPS IDs"), 8)]), (_("Display"), [( _("General"), 3), ( _("Dates and Names"), 4), ( _("Toolbar and Statusbar"), 2)]), - (_("Usage"), - [( _("Report Preferences"), 6), - ( _("Researcher Information"), 5), - ( _("Data Guessing"), 9)]), + (_("Database"), + [( _("General"), 1), + ( _("GRAMPS IDs"), 6), + ( _("Researcher Information"), 5)]), ] @@ -188,8 +184,6 @@ class GrampsPreferences: self.tree.append_column(col) self.tree.set_model(self.store) self.panel = self.top.get_widget("panel") - self.ofmt = self.top.get_widget("output_format") - self.gfmt = self.top.get_widget("graphical_format") self.imap = {} self.build_tree() @@ -224,30 +218,6 @@ class GrampsPreferences: lds.connect('toggled', lambda obj: GrampsGconfKeys.save_uselds(obj.get_active())) - mr = self.top.get_widget("mediaref") - mc = self.top.get_widget("mediacopy") - if GrampsGconfKeys.get_media_reference(): - mr.set_active(1) - else: - mc.set_active(1) - mr.connect('toggled', - lambda obj: GrampsGconfKeys.save_media_reference(obj.get_active())) - - dg = self.top.get_widget("globalprop") - dg.set_active(GrampsGconfKeys.get_media_global()) - dg.connect('toggled', - lambda obj: GrampsGconfKeys.save_media_global(obj.get_active())) - - dl = self.top.get_widget("localprop") - dl.set_active(GrampsGconfKeys.get_media_local()) - dl.connect('toggled', - lambda obj: GrampsGconfKeys.save_media_local(obj.get_active())) - - index_vis = self.top.get_widget("show_child_id") - index_vis.set_active(GrampsGconfKeys.get_index_visible()) - index_vis.connect('toggled', - lambda obj: GrampsGconfKeys.save_index_visible(obj.get_active())) - ipr = self.top.get_widget("iprefix") ipr.set_text(GrampsGconfKeys.get_person_id_prefix()) ipr.connect('changed', @@ -306,24 +276,6 @@ class GrampsPreferences: usetips.connect('toggled', lambda obj: GrampsGconfKeys.save_usetips(obj.get_active())) - paper_obj = self.top.get_widget("paper_size") - menu = gtk.Menu() - choice = 0 - for index in range(0,len(PaperMenu.paper_sizes)): - name = PaperMenu.paper_sizes[index].get_name() - if name == GrampsGconfKeys.get_paper_preference(): - choice = index - item = gtk.MenuItem(name) - item.set_data(DATA,name) - item.show() - menu.append(item) - menu.set_active(choice) - paper_obj.set_menu(menu) - paper_obj.connect("changed", - lambda obj: - GrampsGconfKeys.save_paper_preference(obj.get_menu().get_active().get_data(DATA)) - ) - lastnamegen_obj = self.top.get_widget("lastnamegen") menu = gtk.Menu() choice = 0 @@ -340,40 +292,6 @@ class GrampsPreferences: GrampsGconfKeys.save_lastnamegen(obj.get_menu().get_active().get_data(DATA),_surname_styles) ) - self.osubmenu = gtk.Menu() - choice = 0 - index = 0 - for name in [ _("No default format") ] + Plugins.get_text_doc_list(): - if name == GrampsGconfKeys.get_output_preference(): - choice = index - item = gtk.MenuItem(name) - item.set_data(DATA,name) - item.show() - self.osubmenu.append(item) - index = index + 1 - self.osubmenu.set_active(choice) - self.ofmt.set_menu(self.osubmenu) - self.ofmt.connect("changed", - lambda obj: GrampsGconfKeys.save_output_preference(obj.get_menu().get_active().get_data(DATA))) - - self.gsubmenu = gtk.Menu() - choice = 0 - index = 0 - for name in [ _("No default format") ] + Plugins.get_draw_doc_list(): - if name == GrampsGconfKeys.get_goutput_preference(): - choice = index - item = gtk.MenuItem(name) - item.set_data(DATA,name) - item.show() - self.gsubmenu.append(item) - index = index + 1 - self.gsubmenu.set_active(choice) - self.gfmt.set_menu(self.gsubmenu) - self.gfmt.connect("changed", - lambda obj: - GrampsGconfKeys.save_goutput_preference(obj.get_menu().get_active().get_data(DATA)) - ) - date_option = self.top.get_widget("date_format") date_menu = gtk.Menu() dlist = DateHandler.get_date_formats() @@ -443,15 +361,6 @@ class GrampsPreferences: resemail.connect('changed', lambda obj: GrampsGconfKeys.save_researcher_email(obj.get_text())) - repdir = self.top.get_widget("repdir").gtk_entry() - repdir.set_text(GrampsGconfKeys.get_report_dir()) - repdir.connect('changed', - lambda obj: GrampsGconfKeys.save_report_dir(obj.get_text())) - webdir = self.top.get_widget("htmldir").gtk_entry() - webdir.set_text(GrampsGconfKeys.get_web_dir()) - webdir.connect('changed', - lambda obj: GrampsGconfKeys.save_web_dir(obj.get_text())) - def select(self,obj): store,node = self.selection.get_selected() if node: diff --git a/gramps2/src/gramps.glade b/gramps2/src/gramps.glade index 0c65d31eb..129566766 100644 --- a/gramps2/src/gramps.glade +++ b/gramps2/src/gramps.glade @@ -1300,7 +1300,7 @@ 0 True - * + * False @@ -4292,7 +4292,7 @@ Other 0 True - * + * False @@ -4485,7 +4485,7 @@ Other 0 True - * + * False @@ -4959,7 +4959,7 @@ Other 0 True - * + * False @@ -5139,7 +5139,7 @@ Other 0 True - * + * False @@ -5551,7 +5551,7 @@ Other 0 True - * + * False @@ -5572,7 +5572,7 @@ Other 0 True - * + * False @@ -5618,7 +5618,7 @@ Other 0 True - * + * False @@ -5639,7 +5639,7 @@ Other 0 True - * + * False @@ -6464,7 +6464,7 @@ Other 0 True - * + * False @@ -6710,7 +6710,7 @@ Other 0 True - * + * False @@ -7182,7 +7182,7 @@ Other 0 True - * + * True @@ -7335,7 +7335,7 @@ Other 0 True - * + * False @@ -7506,7 +7506,7 @@ Other 0 True - * + * False @@ -8222,7 +8222,7 @@ Other 0 True - * + * False @@ -8244,7 +8244,7 @@ Other 0 True - * + * False @@ -8266,7 +8266,7 @@ Other 0 True - * + * False @@ -8532,7 +8532,7 @@ Other 0 True - * + * False @@ -8677,7 +8677,7 @@ Other 0 True - * + * False @@ -8698,7 +8698,7 @@ Other 0 True - * + * False @@ -8824,7 +8824,7 @@ Other 0 True - * + * False @@ -8884,7 +8884,7 @@ Other 0 True - * + * False @@ -8940,7 +8940,7 @@ Other 0 True - * + * False @@ -8961,7 +8961,7 @@ Other 0 True - * + * False @@ -9004,7 +9004,7 @@ Other 0 True - * + * False @@ -12196,7 +12196,7 @@ Other 0 True - * + * False @@ -12320,7 +12320,7 @@ Other 0 True - * + * False @@ -12466,7 +12466,7 @@ Other 0 True - * + * False @@ -12487,7 +12487,7 @@ Other 0 True - * + * False @@ -12598,7 +12598,7 @@ Other 0 True - * + * False @@ -12713,7 +12713,7 @@ Other 0 True - * + * False @@ -13093,7 +13093,7 @@ Other 0 True - * + * False @@ -14708,7 +14708,7 @@ Other 0 True - * + * False @@ -15223,7 +15223,7 @@ Other 0 True - * + * False @@ -15244,7 +15244,7 @@ Other 0 True - * + * False @@ -15265,7 +15265,7 @@ Other 0 True - * + * False @@ -15286,7 +15286,7 @@ Other 0 True - * + * False @@ -15307,7 +15307,7 @@ Other 0 True - * + * False @@ -15328,7 +15328,7 @@ Other 0 True - * + * False @@ -15349,7 +15349,7 @@ Other 0 True - * + * False @@ -15370,7 +15370,7 @@ Other 0 True - * + * False @@ -15440,7 +15440,7 @@ Other 0 True - * + * False @@ -15486,7 +15486,7 @@ Other 0 True - * + * False @@ -17267,8 +17267,8 @@ Other 12 True - 2 - 4 + 5 + 2 False 6 12 @@ -17289,7 +17289,7 @@ Other 0 - 4 + 2 0 1 fill @@ -17311,13 +17311,60 @@ Other 1 - 4 + 2 1 2 fill + + + + True + True + -1 + + + + True + + + + + 1 + 2 + 4 + 5 + fill + + + + + + + True + <b>Family name guessing</b> + True + True + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 3 + 3 + lastnamegen + + + 0 + 2 + 3 + 4 + fill + + + 0 @@ -17571,7 +17618,7 @@ Other 12 True - 12 + 11 2 False 6 @@ -17601,30 +17648,6 @@ Other - - - 3 - True - True - _Show index numbers in child list - True - GTK_RELIEF_NORMAL - True - False - False - True - - - - 1 - 2 - 10 - 11 - fill - - - - True @@ -17806,8 +17829,8 @@ Other 1 2 - 11 - 12 + 10 + 11 fill @@ -18236,7 +18259,7 @@ Other 0 True - * + * False @@ -18257,7 +18280,7 @@ Other 0 True - * + * False @@ -18278,7 +18301,7 @@ Other 0 True - * + * False @@ -18299,7 +18322,7 @@ Other 0 True - * + * False @@ -18320,7 +18343,7 @@ Other 0 True - * + * False @@ -18341,7 +18364,7 @@ Other 0 True - * + * False @@ -18362,7 +18385,7 @@ Other 0 True - * + * False @@ -18383,7 +18406,7 @@ Other 0 True - * + * False @@ -18451,529 +18474,6 @@ Other - - - True - False - 0 - - - - 12 - True - 6 - 3 - False - 6 - 12 - - - - True - Preferred _text format: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - output_format - - - 1 - 2 - 1 - 2 - fill - - - - - - - True - True - -1 - - - - True - - - - - 2 - 3 - 1 - 2 - fill - - - - - - - True - Preferred _graphical format: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - graphical_format - - - 1 - 2 - 2 - 3 - fill - - - - - - - True - True - -1 - - - - True - - - - - 2 - 3 - 2 - 3 - fill - - - - - - - True - Preferred _paper size: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - paper_size - - - 1 - 2 - 3 - 4 - fill - - - - - - - True - True - 0 - - - - True - - - - True - Letter - True - - - - - - True - A4 - True - - - - - - - 2 - 3 - 3 - 4 - fill - - - - - - - True - _Default report directory: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - entry11 - - - 1 - 2 - 4 - 5 - fill - - - - - - - True - repdir - 10 - Select default report directory - GRAMPS - True - False - False - - - - True - The default directory for the output of many report generators - True - True - True - 0 - - True - * - False - - - - - 2 - 3 - 4 - 5 - - - - - - - True - Default _web site directory: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - entry12 - - - 1 - 2 - 5 - 6 - fill - - - - - - - True - webdir - 10 - Select default Web Site directory - GRAMPS - True - False - False - - - - True - The default directory for the output of the Web Site report generators - True - True - True - 0 - - True - * - False - - - - - 2 - 3 - 5 - 6 - - - - - - - True - <b>Report preferences</b> - False - True - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - - - 0 - 3 - 0 - 1 - fill - - - - - - 0 - True - True - - - - - False - True - - - - - - True - - False - False - GTK_JUSTIFY_CENTER - False - False - 0.5 - 0.5 - 0 - 0 - - - tab - - - - - - 12 - True - 6 - 2 - False - 6 - 12 - - - - 5 - True - True - Make a _reference to the object when the object is dropped - True - GTK_RELIEF_NORMAL - True - True - False - True - - - 1 - 2 - 1 - 2 - fill - - - - - - - 5 - True - True - Make a local _copy when the object is dropped - True - GTK_RELIEF_NORMAL - True - False - False - True - mediaref - - - 1 - 2 - 2 - 3 - fill - - - - - - - 5 - True - True - Display _global properties editor when object is dropped - True - GTK_RELIEF_NORMAL - True - True - False - True - - - 1 - 2 - 3 - 4 - fill - - - - - - - 5 - True - True - Display _local properties editor when object is dropped - True - GTK_RELIEF_NORMAL - True - True - False - True - - - 1 - 2 - 5 - 6 - fill - - - - - - - True - <b>Drag and drop from an external source</b> - False - True - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - - - 0 - 2 - 0 - 1 - fill - - - - - - - True - <b>Drag and drop from an internal source</b> - False - True - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - - - 0 - 2 - 4 - 5 - fill - - - - - - False - True - - - - - - True - - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - - - tab - - - True @@ -19124,7 +18624,7 @@ Other 0 I True - * + * False @@ -19145,7 +18645,7 @@ Other 0 F True - * + * False @@ -19166,7 +18666,7 @@ Other 0 P True - * + * False @@ -19187,7 +18687,7 @@ Other 0 S True - * + * False @@ -19208,7 +18708,7 @@ Other 0 O True - * + * False @@ -19275,124 +18775,6 @@ Other tab - - - - True - False - 0 - - - - 12 - True - 2 - 3 - False - 6 - 12 - - - - True - _Family name guessing: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 3 - 3 - lastnamegen - - - 1 - 2 - 1 - 2 - fill - - - - - - - True - <b>Customization</b> - False - True - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - - - 0 - 3 - 0 - 1 - fill - - - - - - - True - True - -1 - - - - True - - - - - 2 - 3 - 1 - 2 - - - - - - 0 - True - True - - - - - False - True - - - - - - True - - False - False - GTK_JUSTIFY_CENTER - False - False - 0.5 - 0.5 - 0 - 0 - - - tab - - 0 @@ -19778,7 +19160,7 @@ Other 0 True - * + * False @@ -19927,7 +19309,7 @@ Other 0 True - * + * False @@ -21368,7 +20750,7 @@ Other 0 True - * + * False @@ -22036,7 +21418,7 @@ Other 0 True - * + * False @@ -22057,7 +21439,7 @@ Other 0 True - * + * False @@ -22078,7 +21460,7 @@ Other 0 True - * + * False @@ -22423,7 +21805,7 @@ Other 0 True - * + * False @@ -22757,7 +22139,7 @@ Other 0 True - * + * False @@ -24191,7 +23573,7 @@ Other 0 True - * + * False @@ -26334,7 +25716,7 @@ Other 0 True - * + * False @@ -26355,7 +25737,7 @@ Other 0 True - * + * False @@ -26376,7 +25758,7 @@ Other 0 True - * + * False @@ -26397,7 +25779,7 @@ Other 0 True - * + * False @@ -27360,7 +26742,7 @@ Other 0 True - * + * False @@ -28003,7 +27385,7 @@ Other 0 : True - * + * False @@ -28024,7 +27406,7 @@ Other 0 True - * + * False @@ -28045,7 +27427,7 @@ Other 0 True - * + * False @@ -28066,7 +27448,7 @@ Other 0 True - * + * False @@ -28087,7 +27469,7 @@ Other 0 True - * + * False @@ -28133,7 +27515,7 @@ Other 0 True - * + * False @@ -28179,7 +27561,7 @@ Other 0 True - * + * False @@ -28537,7 +27919,7 @@ Other 0 True - * + * False @@ -28558,7 +27940,7 @@ Other 0 True - * + * False @@ -28579,7 +27961,7 @@ Other 0 True - * + * False @@ -28600,7 +27982,7 @@ Other 0 True - * + * False @@ -28621,7 +28003,7 @@ Other 0 True - * + * False @@ -28642,7 +28024,7 @@ Other 0 True - * + * False @@ -28688,7 +28070,7 @@ Other 0 True - * + * False @@ -29294,7 +28676,7 @@ Other 0 True - * + * False @@ -29316,7 +28698,7 @@ Other 0 True - * + * False @@ -29646,7 +29028,7 @@ Other 0 True - * + * False @@ -29667,7 +29049,7 @@ Other 0 True - * + * False @@ -29688,7 +29070,7 @@ Other 0 True - * + * False @@ -29709,7 +29091,7 @@ Other 0 True - * + * False @@ -29799,7 +29181,7 @@ Other 0 True - * + * False @@ -29879,7 +29261,7 @@ Other 0 True - * + * False @@ -30569,7 +29951,7 @@ Family name Given name 0 True - * + * False @@ -31618,7 +31000,7 @@ Family name Given name 0 True - * + * False