From 8840b7717baa35cf274f2ce8530e1c5c407e4081 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 18 Jan 2002 06:21:47 +0000 Subject: [PATCH] New preferences dialog svn: r703 --- src/Config.py | 964 ++++++------- src/const.py | 1 + src/preferences.glade | 3066 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 3556 insertions(+), 475 deletions(-) create mode 100644 src/preferences.glade diff --git a/src/Config.py b/src/Config.py index 743540ff8..fa319b06c 100644 --- a/src/Config.py +++ b/src/Config.py @@ -56,8 +56,8 @@ _ = gettext _surname_styles = [ _("Father's surname"), _("None"), - _("Latin American style (Combination of mother's and father's surname)"), - _("Icelandic style (Father's surname with son/daughter indicator)"), + _("Combination of mother's and father's surname"), + _("Icelandic style"), ] _date_format_list = [ @@ -87,6 +87,23 @@ _name_format_list = [ (_("Surname, Firstname"), utils.phonebook_name), ] + +notemap = { + _("Database") : 1, + _("Find") : 3, + _("Revision Control") : 2, + _("Tool and Status Bars") : 4, + _("Display") : 5, + _("List Colors") : 6, + _("Dates and Calendars") : 7, + _("Researcher Information") : 8, + _("Report Preferences") : 9, + _("Media Objects") : 10, + _("GRAMPS internal IDs") : 11, + _("Other") : 12, + } + + #------------------------------------------------------------------------- # # Visible globals @@ -144,11 +161,11 @@ _druid = None # Constants # #------------------------------------------------------------------------- -ODDFGCOLOR = "oddForeground" -ODDBGCOLOR = "oddBackground" -EVENFGCOLOR = "evenForeground" -EVENBGCOLOR = "evenBackground" -ANCESTORFGCOLOR = "ancestorForeground" +ODDFGCOLOR = "oddfg" +ODDBGCOLOR = "oddbg" +EVENFGCOLOR = "evenfg" +EVENBGCOLOR = "evenbg" +ANCESTORFGCOLOR = "ancestorfg" INDEX = "i" OBJECT = "o" DATA = "d" @@ -425,231 +442,7 @@ def store_researcher(res): set_string("/gramps/researcher/phone",res.phone) set_string("/gramps/researcher/email",res.email) sync() - -#------------------------------------------------------------------------- -# -# -# -#------------------------------------------------------------------------- -def on_propertybox_help(obj,page): - import gnome.help - - gnome.help.display('gramps-manual','prefs.html') -#------------------------------------------------------------------------- -# -# Apply values set in the property box. For simplicity, only apply the -# values when the page is -1 (the box has been closed). -# -#------------------------------------------------------------------------- -def on_propertybox_apply(obj,page): - global nameof - global owner - global usetabs - global uselds - global autocomp - global mediaref - global globalprop - global localprop - global calendar - global usevc - global iprefix - global fprefix - global pprefix - global sprefix - global oprefix - global vc_comment - global uncompress - global id_visible - global id_edit - global index_visible - global status_bar - global toolbar - global display_attr - global attr_name - global hide_altnames - global paper_preference - global output_preference - global show_detail - global report_dir - global web_dir - global db_dir - global lastnamegen - - if page != -1: - return - - show_detail = prefsTop.get_widget("showdetail").get_active() - autoload = prefsTop.get_widget("autoload").get_active() - autosave_int = prefsTop.get_widget("save_interval").get_value_as_int() - display_attr = prefsTop.get_widget("attr_display").get_active() - attr_name = string.strip(prefsTop.get_widget("attr_name").get_text()) - usetabs = prefsTop.get_widget("usetabs").get_active() - uselds = prefsTop.get_widget("uselds").get_active() - autocomp = prefsTop.get_widget("autocomp").get_active() - mediaref = prefsTop.get_widget("mediaref").get_active() - localprop = prefsTop.get_widget("localprop").get_active() - globalprop = prefsTop.get_widget("globalprop").get_active() - calendar = prefsTop.get_widget("calendar").get_active() - usevc = prefsTop.get_widget("use_vc").get_active() - vc_comment = prefsTop.get_widget("vc_comment").get_active() - uncompress = prefsTop.get_widget("uncompress").get_active() - id_visible = prefsTop.get_widget("gid_visible").get_active() - id_edit = prefsTop.get_widget("gid_edit").get_active() - index_visible = prefsTop.get_widget("show_child_id").get_active() - hide_altnames = prefsTop.get_widget("display_altnames").get_active() - paper_obj = prefsTop.get_widget("paper_size").get_menu().get_active() - output_obj = prefsTop.get_widget("output_format").get_menu().get_active() - - if prefsTop.get_widget("stat1").get_active(): - status_bar = 0 - elif prefsTop.get_widget("stat2").get_active(): - status_bar = 1 - else: - status_bar = 2 - - if prefsTop.get_widget("tool1").get_active(): - toolbar = 0 - elif prefsTop.get_widget("tool2").get_active(): - toolbar = 1 - else: - toolbar = 2 - - iprefix = prefsTop.get_widget("iprefix").get_text() - if iprefix == "": - iprefix = "I" - sprefix = prefsTop.get_widget("sprefix").get_text() - if sprefix == "": - sprefix = "S" - oprefix = prefsTop.get_widget("oprefix").get_text() - if oprefix == "": - oprefix = "O" - fprefix = prefsTop.get_widget("fprefix").get_text() - if fprefix == "": - fprefix = "F" - pprefix = prefsTop.get_widget("pprefix").get_text() - if pprefix == "": - pprefix = "P" - - dbdir_temp = prefsTop.get_widget("dbdir").get_full_path(1) - if dbdir_temp != None and os.path.isdir(dbdir_temp): - db_dir = os.path.normpath(dbdir_temp) + os.sep - - repdir_temp = prefsTop.get_widget("repdir").get_full_path(1) - if repdir_temp != None and os.path.isdir(repdir_temp): - report_dir = os.path.normpath(repdir_temp) + os.sep - - webdir_temp = prefsTop.get_widget("htmldir").get_full_path(1) - if webdir_temp != None and os.path.isdir(webdir_temp): - web_dir = os.path.normpath(webdir_temp) + os.sep - - paper_preference = paper_obj.get_data(DATA) - output_preference = output_obj.get_data(DATA) - - set_bool("/gramps/config/UseTabs",usetabs) - set_bool("/gramps/config/UseLDS",uselds) - set_bool("/gramps/config/DisableAutoComplete",not autocomp) - set_bool("/gramps/config/MakeReference",mediaref) - set_bool("/gramps/config/DisplayGlobal",globalprop) - set_bool("/gramps/config/DisplayLocal",localprop) - set_bool("/gramps/config/ShowCalendar",calendar) - set_bool("/gramps/config/UseVersionControl",usevc) - set_bool("/gramps/config/UseComment",vc_comment) - set_bool("/gramps/config/DontCompressXML",uncompress) - set_bool("/gramps/config/IdVisible",id_visible) - set_bool("/gramps/config/IdEdit",id_edit) - set_bool("/gramps/config/IndexVisible",index_visible) - set_bool("/gramps/config/ShowDetail",show_detail) - set_int("/gramps/config/StatusBar",status_bar) - set_int("/gramps/config/ToolBar",toolbar+1) - set_bool("/gramps/config/DisplayAttr",display_attr) - set_string("/gramps/config/DisplayAttrName",attr_name) - set_string("/gramps/config/paperPreference",paper_preference) - set_string("/gramps/config/outputPreference",output_preference) - set_bool("/gramps/config/autoLoad",autoload) - set_int("/gramps/config/autoSaveInterval",autosave_int) - - if autosave_int != 0: - utils.enable_autosave(None,autosave_int) - else: - utils.disable_autosave() - - set_bool("/gramps/config/DisplayAltNames",hide_altnames) - set_string("/gramps/config/ReportDirectory",report_dir) - set_string("/gramps/config/WebsiteDirectory",web_dir) - set_string("/gramps/config/DbDirectory",db_dir) - set_string("/gramps/config/iprefix",iprefix) - set_string("/gramps/config/fprefix",fprefix) - set_string("/gramps/config/pprefix",pprefix) - set_string("/gramps/config/oprefix",oprefix) - set_string("/gramps/config/sprefix",sprefix) - - # search for the active date format selection - - format_menu = prefsTop.get_widget("date_format").get_menu() - active = format_menu.get_active().get_data(INDEX) - - set_format_code(active) - set_int("/gramps/config/dateFormat",active) - - format_menu = prefsTop.get_widget("date_entry_format").get_menu() - entry_active = format_menu.get_active().get_data(INDEX) - - Date.entryCode = entry_active - set_int("/gramps/config/dateEntry",entry_active) - - # get the name format - - format_menu = prefsTop.get_widget("name_format").get_menu() - active_name = format_menu.get_active().get_data(INDEX) - - name_tuple = _name_format_list[active_name] - nameof = name_tuple[1] - set_int("/gramps/config/nameFormat",active_name) - - format_menu = prefsTop.get_widget("lastnamegen").get_menu() - lastnamegen = format_menu.get_active().get_data(DATA) - set_int("/gramps/config/surnameGuessing",lastnamegen) - - name = prefsTop.get_widget("resname").get_text() - addr = prefsTop.get_widget("resaddr").get_text() - city = prefsTop.get_widget("rescity").get_text() - state = prefsTop.get_widget("resstate").get_text() - country = prefsTop.get_widget("rescountry").get_text() - postal = prefsTop.get_widget("respostal").get_text() - phone = prefsTop.get_widget("resphone").get_text() - email = prefsTop.get_widget("resemail").get_text() - - ListColors.set_enable(prefsTop.get_widget("enableColors").get_active()) - set_bool("/gramps/color/enableColors",ListColors.get_enable()) - - ListColors.oddfg = prefsTop.get_widget(ODDFGCOLOR).get_i16() - ListColors.oddbg = prefsTop.get_widget(ODDBGCOLOR).get_i16() - ListColors.evenfg = prefsTop.get_widget(EVENFGCOLOR).get_i16() - ListColors.evenbg = prefsTop.get_widget(EVENBGCOLOR).get_i16() - ListColors.ancestorfg = prefsTop.get_widget(ANCESTORFGCOLOR).get_i16() - - save_config_color(ODDFGCOLOR,ListColors.oddfg) - save_config_color(ODDBGCOLOR,ListColors.oddbg) - save_config_color(EVENFGCOLOR,ListColors.evenfg) - save_config_color(EVENBGCOLOR,ListColors.evenbg) - save_config_color(ANCESTORFGCOLOR,ListColors.ancestorfg) - - owner.set(name,addr,city,state,country,postal,phone,email) - store_researcher(owner) - - db = obj.get_data("db") - db.set_iprefix(iprefix) - db.set_fprefix(fprefix) - db.set_sprefix(sprefix) - db.set_oprefix(oprefix) - db.set_pprefix(pprefix) - - # update the config file - - sync() - _callback() - #------------------------------------------------------------------------- # # @@ -660,260 +453,481 @@ def save_config_color(name,color): set_int("/gramps/color/" + name + ".g",color[1]) set_int("/gramps/color/" + name + ".b",color[2]) -#------------------------------------------------------------------------- -# -# Called by the elements on the property box to set the changed flag, -# so that the property box knows to set the Apply button -# -#------------------------------------------------------------------------- -def on_object_toggled(obj): - obj.changed() -#------------------------------------------------------------------------- -# -# Called by the elements on the property box to set the changed flag, -# so that the property box knows to set the Apply button -# -#------------------------------------------------------------------------- -def on_format_toggled(obj): - obj.get_data(OBJECT).changed() +class GrampsPreferences: + def __init__(self,db): + self.db = db + self.top = libglade.GladeXML(const.prefsFile,"preferences") + self.top.signal_autoconnect({ + "on_close_clicked" : self.on_close_clicked, + "on_ok_clicked" : self.on_ok_clicked, + "on_apply_clicked" : self.on_propertybox_apply, + "on_help_clicked" : self.on_propertybox_help, + "on_color_toggled" : self.on_color_toggled, + "on_color_set" : self.on_color_set, + "on_object_toggled" : self.on_object_toggled + }) -#------------------------------------------------------------------------- -# -# Called by the elements on the property box to set the changed flag, -# so that the property box knows to set the Apply button -# -#------------------------------------------------------------------------- -def on_color_toggled(obj): - active = prefsTop.get_widget("enableColors").get_active() - prefsTop.get_widget(ODDFGCOLOR).set_sensitive(active) - prefsTop.get_widget(ODDBGCOLOR).set_sensitive(active) - prefsTop.get_widget(EVENFGCOLOR).set_sensitive(active) - prefsTop.get_widget(EVENBGCOLOR).set_sensitive(active) - prefsTop.get_widget(ANCESTORFGCOLOR).set_sensitive(active) - obj.changed() + self.window = self.top.get_widget("preferences") + self.apply = self.top.get_widget("apply") + self.tree = self.top.get_widget("tree") + self.panel = self.top.get_widget("panel") + self.build_tree() + self.build() + self.apply.set_sensitive(0) -#------------------------------------------------------------------------- -# -# Called by the elements on the property box to set the changed flag, -# so that the property box knows to set the Apply button -# -#------------------------------------------------------------------------- -def on_color_set(obj,r,g,b,a): - obj.changed() + def build_tree(self): + self.top_item = gtk.GtkTreeItem('GRAMPS') + self.top_item.show() + self.top_item.connect("select",self.select,0) + self.tree.append(self.top_item) + subtree = gtk.GtkTree() + subtree.show() + self.top_item.set_subtree(subtree) + self.top_item.expand() + for name in notemap.keys(): + item = gtk.GtkTreeItem(name) + item.expand() + item.connect("select",self.select,notemap[name]) + item.show() + subtree.append(item) + + def build(self): + auto = self.top.get_widget("autoload") + asave_int = self.top.get_widget("autosave_interval") + vis = self.top.get_widget("gid_visible") + idedit = self.top.get_widget("gid_edit") + index_vis = self.top.get_widget("show_child_id") + tabs = self.top.get_widget("usetabs") + lds = self.top.get_widget("uselds") + ac = self.top.get_widget("autocomp") + mr = self.top.get_widget("mediaref") + mc = self.top.get_widget("mediacopy") + dg = self.top.get_widget("globalprop") + dl = self.top.get_widget("localprop") + cal = self.top.get_widget("calendar") + vc = self.top.get_widget("use_vc") + vcom = self.top.get_widget("vc_comment") + compress = self.top.get_widget("uncompress") + detail = self.top.get_widget("showdetail") + display_attr_obj = self.top.get_widget("attr_display") + display_altnames = self.top.get_widget("display_altnames") + auto.set_active(autoload) + asave_int.set_value(int(autosave_int)) + detail.set_active(show_detail) + tabs.set_active(usetabs) + lds.set_active(uselds) + ac.set_active(autocomp) + if mediaref: + mr.set_active(1) + else: + mc.set_active(1) + dg.set_active(globalprop) + dl.set_active(localprop) + cal.set_active(calendar) + vc.set_active(usevc) + vcom.set_active(vc_comment) + compress.set_active(uncompress) + vis.set_active(id_visible) + idedit.set_active(id_edit) + index_vis.set_active(index_visible) + + self.top.get_widget("iprefix").set_text(iprefix) + self.top.get_widget("oprefix").set_text(oprefix) + self.top.get_widget("fprefix").set_text(fprefix) + self.top.get_widget("sprefix").set_text(sprefix) + self.top.get_widget("pprefix").set_text(pprefix) + + if status_bar == 0: + self.top.get_widget("stat1").set_active(1) + elif status_bar == 1: + self.top.get_widget("stat2").set_active(1) + else: + self.top.get_widget("stat3").set_active(1) + + if toolbar == 0: + self.top.get_widget("tool1").set_active(1) + elif toolbar == 1: + self.top.get_widget("tool2").set_active(1) + else: + self.top.get_widget("tool3").set_active(1) + + display_attr_obj.set_active(display_attr) + self.top.get_widget("attr_name").set_text(attr_name) + + display_altnames.set_active(hide_altnames) + + paper_obj = self.top.get_widget("paper_size") + menu = gtk.GtkMenu() + choice = 0 + for index in range(0,len(PaperMenu.paper_sizes)): + name = PaperMenu.paper_sizes[index].get_name() + if name == paper_preference: + choice = index + item = gtk.GtkMenuItem(name) + item.set_data(DATA,name) + item.connect("activate", self.on_format_toggled) + item.show() + menu.append(item) + menu.set_active(choice) + paper_obj.set_menu(menu) + + lastnamegen_obj = self.top.get_widget("lastnamegen") + menu = gtk.GtkMenu() + choice = 0 + for index in range(0,len(_surname_styles)): + name = _surname_styles[index] + item = gtk.GtkMenuItem(name) + item.set_data(DATA,index) + item.connect("activate", self.on_format_toggled) + item.show() + menu.append(item) + menu.set_active(lastnamegen) + lastnamegen_obj.set_menu(menu) + + output_obj = self.top.get_widget("output_format") + menu = gtk.GtkMenu() + choice = 0 + + choice = 0 + index = 0 + for name in const.output_formats: + if name == output_preference: + choice = index + item = gtk.GtkMenuItem(name) + item.set_data(DATA,name) + item.connect("activate", self.on_format_toggled) + item.show() + menu.append(item) + index = index + 1 + menu.set_active(choice) + output_obj.set_menu(menu) + + date_option = self.top.get_widget("date_format") + date_menu = gtk.GtkMenu() + for index in range(0,len(_date_format_list)): + item = gtk.GtkMenuItem(_date_format_list[index]) + item.set_data(INDEX,index) + item.connect("activate", self.on_format_toggled) + item.show() + date_menu.append(item) + date_menu.set_active(get_format_code()) + date_option.set_menu(date_menu) + + date_entry = self.top.get_widget("date_entry_format") + date_menu = gtk.GtkMenu() + for index in range(0,len(_date_entry_list)): + item = gtk.GtkMenuItem(_date_entry_list[index]) + item.set_data(INDEX,index) + item.connect("activate", self.on_format_toggled) + item.show() + date_menu.append(item) + date_menu.set_active(Date.entryCode) + date_entry.set_menu(date_menu) + + name_option = self.top.get_widget("name_format") + name_menu = gtk.GtkMenu() + for index in range(0,len(_name_format_list)): + name_tuple = _name_format_list[index] + item = gtk.GtkMenuItem(name_tuple[0]) + item.set_data(INDEX,index) + item.connect("activate", self.on_format_toggled) + item.show() + name_menu.append(item) + name_menu.set_active(_name_format) + name_option.set_menu(name_menu) + + self.top.get_widget("resname").set_text(owner.getName()) + self.top.get_widget("resaddr").set_text(owner.getAddress()) + self.top.get_widget("rescity").set_text(owner.getCity()) + self.top.get_widget("resstate").set_text(owner.getState()) + self.top.get_widget("rescountry").set_text(owner.getCountry()) + self.top.get_widget("respostal").set_text(owner.getPostalCode()) + self.top.get_widget("resphone").set_text(owner.getPhone()) + self.top.get_widget("resemail").set_text(owner.getEmail()) + + cwidget = self.top.get_widget(ODDFGCOLOR) + cwidget.set_i16(ListColors.oddfg[0],ListColors.oddfg[1],\ + ListColors.oddfg[2],0xffff) + + cwidget = self.top.get_widget(ODDBGCOLOR) + cwidget.set_i16(ListColors.oddbg[0],ListColors.oddbg[1],\ + ListColors.oddbg[2],0xffff) + + cwidget = self.top.get_widget(EVENFGCOLOR) + cwidget.set_i16(ListColors.evenfg[0],ListColors.evenfg[1],\ + ListColors.evenfg[2],0xffff) + + cwidget = self.top.get_widget(EVENBGCOLOR) + cwidget.set_i16(ListColors.evenbg[0],ListColors.evenbg[1],\ + ListColors.evenbg[2],0xffff) + + cwidget = self.top.get_widget(ANCESTORFGCOLOR) + cwidget.set_i16(ListColors.ancestorfg[0],ListColors.ancestorfg[1],\ + ListColors.ancestorfg[2],0xffff) + + self.top.get_widget("enableColors").set_active(ListColors.get_enable()) + self.top.get_widget(ODDFGCOLOR).set_sensitive(ListColors.get_enable()) + self.top.get_widget(ODDBGCOLOR).set_sensitive(ListColors.get_enable()) + self.top.get_widget(EVENBGCOLOR).set_sensitive(ListColors.get_enable()) + self.top.get_widget(EVENFGCOLOR).set_sensitive(ListColors.get_enable()) + self.top.get_widget(ANCESTORFGCOLOR).set_sensitive(ListColors.get_enable()) + + self.top.get_widget("dbdir").gtk_entry().set_text(db_dir) + self.top.get_widget("repdir").gtk_entry().set_text(report_dir) + self.top.get_widget("htmldir").gtk_entry().set_text(web_dir) + + def select(self,obj,data): + self.panel.set_page(data) + + def on_propertybox_help(self,obj): + import gnome.help + gnome.help.display('gramps-manual','prefs.html') + + def on_close_clicked(self,obj): + utils.destroy_passed_object(self.window) + + def on_ok_clicked(self,obj): + self.on_propertybox_apply(obj) + utils.destroy_passed_object(self.window) + + def on_propertybox_apply(self,obj): + global nameof + global owner + global usetabs + global uselds + global autocomp + global mediaref + global globalprop + global localprop + global calendar + global usevc + global iprefix + global fprefix + global pprefix + global sprefix + global oprefix + global vc_comment + global uncompress + global id_visible + global id_edit + global index_visible + global status_bar + global toolbar + global display_attr + global attr_name + global hide_altnames + global paper_preference + global output_preference + global show_detail + global report_dir + global web_dir + global db_dir + global lastnamegen + + show_detail = self.top.get_widget("showdetail").get_active() + autoload = self.top.get_widget("autoload").get_active() + autosave_int = self.top.get_widget("autosave_interval").get_value_as_int() + display_attr = self.top.get_widget("attr_display").get_active() + attr_name = string.strip(self.top.get_widget("attr_name").get_text()) + usetabs = self.top.get_widget("usetabs").get_active() + uselds = self.top.get_widget("uselds").get_active() + autocomp = self.top.get_widget("autocomp").get_active() + mediaref = self.top.get_widget("mediaref").get_active() + localprop = self.top.get_widget("localprop").get_active() + globalprop = self.top.get_widget("globalprop").get_active() + calendar = self.top.get_widget("calendar").get_active() + usevc = self.top.get_widget("use_vc").get_active() + vc_comment = self.top.get_widget("vc_comment").get_active() + uncompress = self.top.get_widget("uncompress").get_active() + id_visible = self.top.get_widget("gid_visible").get_active() + id_edit = self.top.get_widget("gid_edit").get_active() + index_visible = self.top.get_widget("show_child_id").get_active() + hide_altnames = self.top.get_widget("display_altnames").get_active() + paper_obj = self.top.get_widget("paper_size").get_menu().get_active() + output_obj = self.top.get_widget("output_format").get_menu().get_active() + + if self.top.get_widget("stat1").get_active(): + status_bar = 0 + elif self.top.get_widget("stat2").get_active(): + status_bar = 1 + else: + status_bar = 2 + + if self.top.get_widget("tool1").get_active(): + toolbar = 0 + elif self.top.get_widget("tool2").get_active(): + toolbar = 1 + else: + toolbar = 2 + + iprefix = self.top.get_widget("iprefix").get_text() + if iprefix == "": + iprefix = "I" + sprefix = self.top.get_widget("sprefix").get_text() + if sprefix == "": + sprefix = "S" + oprefix = self.top.get_widget("oprefix").get_text() + if oprefix == "": + oprefix = "O" + fprefix = self.top.get_widget("fprefix").get_text() + if fprefix == "": + fprefix = "F" + pprefix = self.top.get_widget("pprefix").get_text() + if pprefix == "": + pprefix = "P" + + dbdir_temp = self.top.get_widget("dbdir").get_full_path(1) + if dbdir_temp != None and os.path.isdir(dbdir_temp): + db_dir = os.path.normpath(dbdir_temp) + os.sep + + repdir_temp = self.top.get_widget("repdir").get_full_path(1) + if repdir_temp != None and os.path.isdir(repdir_temp): + report_dir = os.path.normpath(repdir_temp) + os.sep + + webdir_temp = self.top.get_widget("htmldir").get_full_path(1) + if webdir_temp != None and os.path.isdir(webdir_temp): + web_dir = os.path.normpath(webdir_temp) + os.sep + + paper_preference = paper_obj.get_data(DATA) + output_preference = output_obj.get_data(DATA) + + set_bool("/gramps/config/UseTabs",usetabs) + set_bool("/gramps/config/UseLDS",uselds) + set_bool("/gramps/config/DisableAutoComplete",not autocomp) + set_bool("/gramps/config/MakeReference",mediaref) + set_bool("/gramps/config/DisplayGlobal",globalprop) + set_bool("/gramps/config/DisplayLocal",localprop) + set_bool("/gramps/config/ShowCalendar",calendar) + set_bool("/gramps/config/UseVersionControl",usevc) + set_bool("/gramps/config/UseComment",vc_comment) + set_bool("/gramps/config/DontCompressXML",uncompress) + set_bool("/gramps/config/IdVisible",id_visible) + set_bool("/gramps/config/IdEdit",id_edit) + set_bool("/gramps/config/IndexVisible",index_visible) + set_bool("/gramps/config/ShowDetail",show_detail) + set_int("/gramps/config/StatusBar",status_bar) + set_int("/gramps/config/ToolBar",toolbar+1) + set_bool("/gramps/config/DisplayAttr",display_attr) + set_string("/gramps/config/DisplayAttrName",attr_name) + set_string("/gramps/config/paperPreference",paper_preference) + set_string("/gramps/config/outputPreference",output_preference) + set_bool("/gramps/config/autoLoad",autoload) + set_int("/gramps/config/autoSaveInterval",autosave_int) + + if autosave_int != 0: + utils.enable_autosave(None,autosave_int) + else: + utils.disable_autosave() + + set_bool("/gramps/config/DisplayAltNames",hide_altnames) + set_string("/gramps/config/ReportDirectory",report_dir) + set_string("/gramps/config/WebsiteDirectory",web_dir) + set_string("/gramps/config/DbDirectory",db_dir) + set_string("/gramps/config/iprefix",iprefix) + set_string("/gramps/config/fprefix",fprefix) + set_string("/gramps/config/pprefix",pprefix) + set_string("/gramps/config/oprefix",oprefix) + set_string("/gramps/config/sprefix",sprefix) + + # search for the active date format selection + format_menu = self.top.get_widget("date_format").get_menu() + active = format_menu.get_active().get_data(INDEX) + + set_format_code(active) + set_int("/gramps/config/dateFormat",active) + + format_menu = self.top.get_widget("date_entry_format").get_menu() + entry_active = format_menu.get_active().get_data(INDEX) + + Date.entryCode = entry_active + set_int("/gramps/config/dateEntry",entry_active) + + # get the name format + + format_menu = self.top.get_widget("name_format").get_menu() + active_name = format_menu.get_active().get_data(INDEX) + + name_tuple = _name_format_list[active_name] + nameof = name_tuple[1] + set_int("/gramps/config/nameFormat",active_name) + + format_menu = self.top.get_widget("lastnamegen").get_menu() + lastnamegen = format_menu.get_active().get_data(DATA) + set_int("/gramps/config/surnameGuessing",lastnamegen) + + name = self.top.get_widget("resname").get_text() + addr = self.top.get_widget("resaddr").get_text() + city = self.top.get_widget("rescity").get_text() + state = self.top.get_widget("resstate").get_text() + country = self.top.get_widget("rescountry").get_text() + postal = self.top.get_widget("respostal").get_text() + phone = self.top.get_widget("resphone").get_text() + email = self.top.get_widget("resemail").get_text() + + ListColors.set_enable(self.top.get_widget("enableColors").get_active()) + set_bool("/gramps/color/enableColors",ListColors.get_enable()) + + ListColors.oddfg = self.top.get_widget(ODDFGCOLOR).get_i16() + ListColors.oddbg = self.top.get_widget(ODDBGCOLOR).get_i16() + ListColors.evenfg = self.top.get_widget(EVENFGCOLOR).get_i16() + ListColors.evenbg = self.top.get_widget(EVENBGCOLOR).get_i16() + ListColors.ancestorfg = self.top.get_widget(ANCESTORFGCOLOR).get_i16() + + save_config_color(ODDFGCOLOR,ListColors.oddfg) + save_config_color(ODDBGCOLOR,ListColors.oddbg) + save_config_color(EVENFGCOLOR,ListColors.evenfg) + save_config_color(EVENBGCOLOR,ListColors.evenbg) + save_config_color(ANCESTORFGCOLOR,ListColors.ancestorfg) + + owner.set(name,addr,city,state,country,postal,phone,email) + store_researcher(owner) + + self.db.set_iprefix(iprefix) + self.db.set_fprefix(fprefix) + self.db.set_sprefix(sprefix) + self.db.set_oprefix(oprefix) + self.db.set_pprefix(pprefix) + + # update the config file + + sync() + _callback() + + def on_object_toggled(self,obj): + """Called by the elements on the property box to set the changed flag, + so that the property box knows to set the Apply button""" + self.apply.set_sensitive(1) + + def on_format_toggled(self,obj): + """Called by the elements on the property box to set the changed flag, + so that the property box knows to set the Apply button""" + self.apply.set_sensitive(1) + + def on_color_toggled(self,obj): + """Called by the elements on the property box to set the changed flag, + so that the property box knows to set the Apply button""" + active = self.top.get_widget("enableColors").get_active() + self.top.get_widget(ODDFGCOLOR).set_sensitive(active) + self.top.get_widget(ODDBGCOLOR).set_sensitive(active) + self.top.get_widget(EVENFGCOLOR).set_sensitive(active) + self.top.get_widget(EVENBGCOLOR).set_sensitive(active) + self.top.get_widget(ANCESTORFGCOLOR).set_sensitive(active) + self.apply.set_sensitive(1) + + def on_color_set(self,obj,r,g,b,a): + """Called by the elements on the property box to set the changed flag, + so that the property box knows to set the Apply button""" + self.apply.set_sensitive(1) + #------------------------------------------------------------------------- # # Create the property box, and set the elements off the current values # #------------------------------------------------------------------------- def display_preferences_box(db): - global prefsTop - - prefsTop = libglade.GladeXML(const.configFile,"propertybox") - prefsTop.signal_autoconnect({ - "destroy_passed_object" : utils.destroy_passed_object, - "on_propertybox_apply" : on_propertybox_apply, - "on_propertybox_help" : on_propertybox_help, - "on_color_toggled" : on_color_toggled, - "on_color_set" : on_color_set, - "on_object_toggled" : on_object_toggled - }) - - pbox = prefsTop.get_widget("propertybox") - pbox.set_data("db",db) - auto = prefsTop.get_widget("autoload") - asave_int = prefsTop.get_widget("save_interval") - vis = prefsTop.get_widget("gid_visible") - idedit = prefsTop.get_widget("gid_edit") - index_vis = prefsTop.get_widget("show_child_id") - tabs = prefsTop.get_widget("usetabs") - lds = prefsTop.get_widget("uselds") - ac = prefsTop.get_widget("autocomp") - mr = prefsTop.get_widget("mediaref") - mc = prefsTop.get_widget("mediacopy") - dg = prefsTop.get_widget("globalprop") - dl = prefsTop.get_widget("localprop") - cal = prefsTop.get_widget("calendar") - vc = prefsTop.get_widget("use_vc") - vcom = prefsTop.get_widget("vc_comment") - compress = prefsTop.get_widget("uncompress") - detail = prefsTop.get_widget("showdetail") - display_attr_obj = prefsTop.get_widget("attr_display") - display_altnames = prefsTop.get_widget("display_altnames") - auto.set_active(autoload) - asave_int.set_value(autosave_int) - detail.set_active(show_detail) - tabs.set_active(usetabs) - lds.set_active(uselds) - ac.set_active(autocomp) - if mediaref: - mr.set_active(1) - else: - mc.set_active(1) - dg.set_active(globalprop) - dl.set_active(localprop) - cal.set_active(calendar) - vc.set_active(usevc) - vcom.set_active(vc_comment) - compress.set_active(uncompress) - vis.set_active(id_visible) - idedit.set_active(id_edit) - index_vis.set_active(index_visible) - - prefsTop.get_widget("iprefix").set_text(iprefix) - prefsTop.get_widget("oprefix").set_text(oprefix) - prefsTop.get_widget("fprefix").set_text(fprefix) - prefsTop.get_widget("sprefix").set_text(sprefix) - prefsTop.get_widget("pprefix").set_text(pprefix) - - if status_bar == 0: - prefsTop.get_widget("stat1").set_active(1) - elif status_bar == 1: - prefsTop.get_widget("stat2").set_active(1) - else: - prefsTop.get_widget("stat3").set_active(1) - - if toolbar == 0: - prefsTop.get_widget("tool1").set_active(1) - elif toolbar == 1: - prefsTop.get_widget("tool2").set_active(1) - else: - prefsTop.get_widget("tool3").set_active(1) - - display_attr_obj.set_active(display_attr) - prefsTop.get_widget("attr_name").set_text(attr_name) - - display_altnames.set_active(hide_altnames) - - paper_obj = prefsTop.get_widget("paper_size") - menu = gtk.GtkMenu() - choice = 0 - for index in range(0,len(PaperMenu.paper_sizes)): - name = PaperMenu.paper_sizes[index].get_name() - if name == paper_preference: - choice = index - item = gtk.GtkMenuItem(name) - item.set_data(OBJECT,pbox) - item.set_data(DATA,name) - item.connect("activate", on_format_toggled) - item.show() - menu.append(item) - menu.set_active(choice) - paper_obj.set_menu(menu) - - lastnamegen_obj = prefsTop.get_widget("lastnamegen") - menu = gtk.GtkMenu() - choice = 0 - for index in range(0,len(_surname_styles)): - name = _surname_styles[index] - item = gtk.GtkMenuItem(name) - item.set_data(OBJECT,pbox) - item.set_data(DATA,index) - item.connect("activate", on_format_toggled) - item.show() - menu.append(item) - menu.set_active(lastnamegen) - lastnamegen_obj.set_menu(menu) - - output_obj = prefsTop.get_widget("output_format") - menu = gtk.GtkMenu() - choice = 0 - - choice = 0 - index = 0 - for name in const.output_formats: - if name == output_preference: - choice = index - item = gtk.GtkMenuItem(name) - item.set_data(OBJECT,pbox) - item.set_data(DATA,name) - item.connect("activate", on_format_toggled) - item.show() - menu.append(item) - index = index + 1 - menu.set_active(choice) - output_obj.set_menu(menu) - - date_option = prefsTop.get_widget("date_format") - date_menu = gtk.GtkMenu() - for index in range(0,len(_date_format_list)): - item = gtk.GtkMenuItem(_date_format_list[index]) - item.set_data(INDEX,index) - item.set_data(OBJECT,pbox) - item.connect("activate", on_format_toggled) - item.show() - date_menu.append(item) - date_menu.set_active(get_format_code()) - date_option.set_menu(date_menu) - - date_entry = prefsTop.get_widget("date_entry_format") - date_menu = gtk.GtkMenu() - for index in range(0,len(_date_entry_list)): - item = gtk.GtkMenuItem(_date_entry_list[index]) - item.set_data(INDEX,index) - item.set_data(OBJECT,pbox) - item.connect("activate", on_format_toggled) - item.show() - date_menu.append(item) - date_menu.set_active(Date.entryCode) - date_entry.set_menu(date_menu) - - name_option = prefsTop.get_widget("name_format") - name_menu = gtk.GtkMenu() - for index in range(0,len(_name_format_list)): - name_tuple = _name_format_list[index] - item = gtk.GtkMenuItem(name_tuple[0]) - item.set_data(INDEX,index) - item.set_data(OBJECT,pbox) - item.connect("activate", on_format_toggled) - item.show() - name_menu.append(item) - name_menu.set_active(_name_format) - name_option.set_menu(name_menu) - - prefsTop.get_widget("resname").set_text(owner.getName()) - prefsTop.get_widget("resaddr").set_text(owner.getAddress()) - prefsTop.get_widget("rescity").set_text(owner.getCity()) - prefsTop.get_widget("resstate").set_text(owner.getState()) - prefsTop.get_widget("rescountry").set_text(owner.getCountry()) - prefsTop.get_widget("respostal").set_text(owner.getPostalCode()) - prefsTop.get_widget("resphone").set_text(owner.getPhone()) - prefsTop.get_widget("resemail").set_text(owner.getEmail()) - - cwidget = prefsTop.get_widget(ODDFGCOLOR) - cwidget.set_i16(ListColors.oddfg[0],ListColors.oddfg[1],\ - ListColors.oddfg[2],0xffff) - - cwidget = prefsTop.get_widget(ODDBGCOLOR) - cwidget.set_i16(ListColors.oddbg[0],ListColors.oddbg[1],\ - ListColors.oddbg[2],0xffff) - - cwidget = prefsTop.get_widget(EVENFGCOLOR) - cwidget.set_i16(ListColors.evenfg[0],ListColors.evenfg[1],\ - ListColors.evenfg[2],0xffff) - - cwidget = prefsTop.get_widget(EVENBGCOLOR) - cwidget.set_i16(ListColors.evenbg[0],ListColors.evenbg[1],\ - ListColors.evenbg[2],0xffff) - - cwidget = prefsTop.get_widget(ANCESTORFGCOLOR) - cwidget.set_i16(ListColors.ancestorfg[0],ListColors.ancestorfg[1],\ - ListColors.ancestorfg[2],0xffff) - - prefsTop.get_widget("enableColors").set_active(ListColors.get_enable()) - prefsTop.get_widget(ODDFGCOLOR).set_sensitive(ListColors.get_enable()) - prefsTop.get_widget(ODDBGCOLOR).set_sensitive(ListColors.get_enable()) - prefsTop.get_widget(EVENBGCOLOR).set_sensitive(ListColors.get_enable()) - prefsTop.get_widget(EVENFGCOLOR).set_sensitive(ListColors.get_enable()) - prefsTop.get_widget(ANCESTORFGCOLOR).set_sensitive(ListColors.get_enable()) - - prefsTop.get_widget("dbdir").gtk_entry().set_text(db_dir) - prefsTop.get_widget("repdir").gtk_entry().set_text(report_dir) - prefsTop.get_widget("htmldir").gtk_entry().set_text(web_dir) - - pbox.set_modified(0) - pbox.show() + GrampsPreferences(db) #------------------------------------------------------------------------- # diff --git a/src/const.py b/src/const.py index b56c6281c..160cbec1c 100644 --- a/src/const.py +++ b/src/const.py @@ -73,6 +73,7 @@ bookFile = "%s/bookmarks.glade" % rootDir pluginsFile = "%s/plugins.glade" % rootDir editnoteFile = "%s/editnote.glade" % rootDir configFile = "%s/config.glade" % rootDir +prefsFile = "%s/preferences.glade" % rootDir stylesFile = "%s/styles.glade" % rootDir dialogFile = "%s/dialog.glade" % rootDir revisionFile = "%s/revision.glade" % rootDir diff --git a/src/preferences.glade b/src/preferences.glade new file mode 100644 index 000000000..a4e3f4a52 --- /dev/null +++ b/src/preferences.glade @@ -0,0 +1,3066 @@ + + + + + + src + pixmaps + C + True + True + True + True + newconfig.strings + + + + GnomeDialog + preferences + Preferences - GRAMPS + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + False + False + False + False + False + + + GtkVBox + GnomeDialog:vbox + dialog-vbox2 + False + 8 + + 4 + True + True + + + + GtkHButtonBox + GnomeDialog:action_area + dialog-action_area2 + GTK_BUTTONBOX_END + 0 + 85 + 27 + 5 + 0 + + 0 + False + False + GTK_PACK_END + + + + GtkButton + button4 + True + True + + clicked + on_ok_clicked + Fri, 18 Jan 2002 05:52:55 GMT + + GNOME_STOCK_BUTTON_OK + + + + GtkButton + apply + False + True + True + + clicked + on_apply_clicked + Fri, 18 Jan 2002 05:52:46 GMT + + GNOME_STOCK_BUTTON_APPLY + + + + GtkButton + button6 + True + True + + clicked + on_close_clicked + Fri, 18 Jan 2002 05:52:40 GMT + + GNOME_STOCK_BUTTON_CLOSE + + + + GtkButton + button7 + True + True + + clicked + on_help_clicked + Fri, 18 Jan 2002 05:53:06 GMT + + GNOME_STOCK_BUTTON_HELP + + + + + GtkVBox + vbox42 + False + 0 + + 0 + True + True + + + + GtkHPaned + hpaned1 + 10 + 6 + 0 + + 0 + True + True + + + + GtkTree + tree + 10 + 175 + GTK_SELECTION_SINGLE + GTK_TREE_VIEW_LINE + True + + False + True + + + + + GtkVBox + GnomePropertyBox:notebook + vbox43 + False + 0 + + True + True + + + + GtkLabel + label85 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 5 + False + False + + + + + GtkHSeparator + hseparator1 + + 5 + True + True + + + + + GtkNotebook + GnomePropertyBox:notebook + panel + 450 + 350 + False + False + GTK_POS_TOP + False + 2 + 2 + False + + 0 + True + True + + + + GtkAlignment + alignment1 + 300 + 0.5 + 0.5 + 1 + 1 + + + GtkVBox + vbox21 + False + 0 + + + GnomePixmap + pixmap1 + splash.jpg + + 0 + True + True + + + + + + + GtkLabel + Notebook:tab + label40 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox1 + False + 0 + + + GtkFrame + frame1 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkTable + table1 + 4 + 3 + False + 0 + 0 + + + GtkLabel + label4 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 3 + 4 + 3 + 3 + False + False + False + False + True + False + + + + + GnomeFileEntry + dbdir + dbdir + 10 + Gramps - Select default database directory + True + False + + 1 + 3 + 3 + 4 + 3 + 3 + True + False + False + False + True + False + + + + GtkEntry + GnomeEntry:entry + entry1 + The default directory for storing databases + True + + changed + on_object_toggled + propertybox + Thu, 28 Jun 2001 13:50:08 GMT + + True + True + 0 + + + + + + GtkCheckButton + autoload + True + + toggled + on_object_toggled + propertybox + Sat, 09 Dec 2000 18:11:20 GMT + + + True + True + + 0 + 3 + 0 + 1 + 3 + 3 + False + False + False + False + True + False + + + + + GtkCheckButton + uncompress + True + + toggled + on_object_toggled + propertybox + Sat, 09 Dec 2000 18:11:20 GMT + + + False + True + + 0 + 3 + 1 + 2 + 3 + 3 + False + False + False + False + True + False + + + + + GtkSpinButton + autosave_interval + True + 1 + 0 + False + GTK_UPDATE_ALWAYS + False + False + 0 + 0 + 100 + 1 + 10 + 10 + + 1 + 2 + 2 + 3 + 3 + 3 + True + False + False + False + True + False + + + + + GtkLabel + label5 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 2 + 3 + 3 + 3 + False + False + False + False + True + False + + + + + + + + GtkLabel + Notebook:tab + label6 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox14 + False + 0 + + + GtkFrame + frame4 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkTable + table2 + 2 + 2 + False + 0 + 0 + + + GtkOptionMenu + optionmenu1 + True + RCS + + 0 + + 1 + 2 + 0 + 1 + 5 + 5 + False + False + False + False + True + False + + + + + GtkCheckButton + use_vc + True + + toggled + on_object_toggled + propertybox + Tue, 02 Oct 2001 14:14:35 GMT + + + False + True + + 0 + 1 + 0 + 1 + 3 + 3 + False + False + False + False + True + False + + + + + GtkCheckButton + vc_comment + True + + toggled + on_object_toggled + propertybox + Thu, 04 Oct 2001 13:26:10 GMT + + + False + True + + 0 + 2 + 1 + 2 + 3 + 3 + False + False + False + False + True + False + + + + + + + + GtkLabel + Notebook:tab + label41 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox15 + False + 0 + + + GtkFrame + frame2 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkCheckButton + autocomp + True + + toggled + on_object_toggled + propertybox + Wed, 12 Dec 2001 03:34:00 GMT + + + True + True + + + + + + GtkLabel + Notebook:tab + label44 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox16 + False + 0 + + + GtkFrame + frame3 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkVBox + vbox2 + False + 0 + + + GtkRadioButton + tool1 + True + + toggled + on_object_toggled + propertybox + Wed, 30 May 2001 02:18:01 GMT + + + True + True + toolbar + + 0 + False + False + + + + + GtkRadioButton + tool2 + True + + toggled + on_object_toggled + propertybox + Wed, 30 May 2001 02:18:16 GMT + + + False + True + toolbar + + 0 + False + False + + + + + GtkRadioButton + tool3 + True + + toggled + on_object_toggled + propertybox + Wed, 30 May 2001 02:18:29 GMT + + + False + True + toolbar + + 0 + False + False + + + + + + + GtkFrame + frame6 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkVBox + vbox4 + False + 0 + + + GtkRadioButton + stat1 + True + + toggled + on_object_toggled + propertybox + Wed, 30 May 2001 02:18:01 GMT + + + True + True + status + + 0 + False + False + + + + + GtkRadioButton + stat2 + True + + toggled + on_object_toggled + propertybox + Wed, 30 May 2001 02:18:16 GMT + + + False + True + status + + 0 + False + False + + + + + GtkRadioButton + stat3 + True + + toggled + on_object_toggled + propertybox + Wed, 30 May 2001 02:18:29 GMT + + + False + True + status + + 0 + False + False + + + + + + + + GtkLabel + Notebook:tab + label43 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox20 + False + 0 + + + GtkFrame + frame8 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkVBox + vbox5 + False + 0 + + + GtkCheckButton + usetabs + 3 + True + + toggled + on_object_toggled + propertybox + Thu, 15 Feb 2001 21:32:23 GMT + + + False + True + + 0 + False + False + + + + + GtkCheckButton + uselds + 3 + True + + toggled + on_object_toggled + propertybox + Sun, 30 Dec 2001 00:13:47 GMT + + + False + True + + 0 + False + False + + + + + GtkHBox + hbox1 + 3 + False + 0 + + 0 + False + False + + + + GtkCheckButton + attr_display + True + + toggled + on_object_toggled + propertybox + Thu, 24 May 2001 21:14:10 GMT + + + False + True + + 0 + False + False + + + + + GtkEntry + attr_name + True + + changed + on_object_toggled + propertybox + Thu, 24 May 2001 21:14:30 GMT + + True + True + 0 + + + 5 + True + True + + + + + + + + GtkFrame + frame5 + 4 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkVBox + vbox3 + False + 0 + + + GtkCheckButton + display_altnames + True + + toggled + on_object_toggled + propertybox + Sun, 22 Apr 2001 21:20:17 GMT + + + False + True + + 0 + False + False + + + + + GtkCheckButton + showdetail + True + + toggled + on_object_toggled + propertybox + Sat, 09 Jun 2001 14:12:06 GMT + + + False + True + + 0 + False + False + + + + + GtkCheckButton + show_child_id + True + + toggled + on_object_toggled + propertybox + Mon, 29 Oct 2001 22:58:03 GMT + + + False + True + + 0 + False + False + + + + + GtkCheckButton + gid_visible + True + + toggled + on_object_toggled + propertybox + Thu, 12 Jul 2001 13:42:44 GMT + + + False + True + + 0 + False + False + + + + + + + + GtkLabel + Notebook:tab + label45 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox17 + False + 0 + + + GtkFrame + frame7 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkTable + table4 + 6 + 2 + False + 0 + 0 + + + GnomeColorPicker + oddfg + True + + color_set + on_color_set + propertybox + Sat, 17 Feb 2001 14:14:00 GMT + + True + False + Pick a color + + 1 + 2 + 1 + 2 + 5 + 5 + False + False + False + False + False + False + + + + + GnomeColorPicker + oddbg + True + + color_set + on_color_set + propertybox + Sat, 17 Feb 2001 14:21:31 GMT + + True + False + Pick a color + + 1 + 2 + 2 + 3 + 5 + 5 + False + False + False + False + False + False + + + + + GnomeColorPicker + evenfg + True + + color_set + on_color_set + propertybox + Sat, 17 Feb 2001 14:21:44 GMT + + True + False + Pick a color + + 1 + 2 + 3 + 4 + 5 + 5 + False + False + False + False + False + False + + + + + GnomeColorPicker + evenbg + True + + color_set + on_color_set + propertybox + Sat, 17 Feb 2001 14:21:58 GMT + + True + False + Pick a color + + 1 + 2 + 4 + 5 + 5 + 5 + False + False + False + False + False + False + + + + + GtkLabel + oddfblb + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 1 + 2 + 5 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label8 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 2 + 3 + 5 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label9 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 3 + 4 + 5 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label10 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 4 + 5 + 5 + 0 + False + False + False + False + True + False + + + + + GtkCheckButton + enableColors + True + + toggled + on_color_toggled + propertybox + Sat, 17 Feb 2001 14:19:39 GMT + + + False + True + + 0 + 2 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GnomeColorPicker + ancestorfg + True + + color_set + on_color_set + propertybox + Fri, 02 Nov 2001 05:09:36 GMT + + True + False + Pick a color + + 1 + 2 + 5 + 6 + 5 + 5 + False + False + False + False + False + False + + + + + GtkLabel + label11 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 5 + 6 + 5 + 0 + False + False + False + False + True + False + + + + + + + + GtkLabel + Notebook:tab + label42 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox6 + False + 0 + + + GtkFrame + frame9 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkTable + table5 + 2 + 2 + False + 0 + 0 + + + GtkLabel + label13 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 5 + 5 + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label14 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 5 + 5 + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkOptionMenu + date_format + True + + + 0 + + 1 + 2 + 0 + 1 + 5 + 5 + True + False + False + False + True + False + + + + + GtkOptionMenu + name_format + True + + + 0 + + 1 + 2 + 1 + 2 + 5 + 5 + True + False + False + False + True + False + + + + + + + GtkFrame + frame10 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkTable + table6 + 1 + 2 + False + 0 + 0 + + + GtkLabel + label15 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 5 + 5 + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkOptionMenu + date_entry_format + True + + + 0 + + 1 + 2 + 0 + 1 + 5 + 5 + True + False + False + False + True + False + + + + + + + GtkFrame + frame11 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkVBox + vbox7 + False + 0 + + + GtkCheckButton + calendar + True + + toggled + on_object_toggled + propertybox + Tue, 20 Nov 2001 16:35:48 GMT + + + False + True + + 5 + False + False + + + + + + + + GtkLabel + Notebook:tab + label16 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox18 + False + 0 + + + GtkFrame + frame17 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + True + True + + + + GtkTable + table7 + 8 + 2 + False + 0 + 0 + + + GtkLabel + label17 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 0 + 1 + 5 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label18 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 1 + 2 + 5 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label19 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 2 + 3 + 5 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label20 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 3 + 4 + 5 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label21 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 4 + 5 + 5 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label22 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 5 + 6 + 5 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label23 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 6 + 7 + 5 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label24 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 7 + 8 + 5 + 0 + False + False + False + False + True + False + + + + + GtkEntry + resaddr + True + + changed + on_object_toggled + propertybox + Thu, 14 Jun 2001 14:34:37 GMT + + True + True + 0 + + + 1 + 2 + 1 + 2 + 5 + 3 + True + False + False + False + True + False + + + + + GtkEntry + resname + True + + changed + on_object_toggled + propertybox + Thu, 14 Jun 2001 14:33:49 GMT + + True + True + 0 + + + 1 + 2 + 0 + 1 + 5 + 3 + True + False + False + False + True + False + + + + + GtkEntry + rescity + True + + changed + on_object_toggled + propertybox + Thu, 14 Jun 2001 14:35:00 GMT + + True + True + 0 + + + 1 + 2 + 2 + 3 + 5 + 3 + True + False + False + False + True + False + + + + + GtkEntry + resstate + True + + changed + on_object_toggled + propertybox + Thu, 14 Jun 2001 14:35:18 GMT + + True + True + 0 + + + 1 + 2 + 3 + 4 + 5 + 3 + True + False + False + False + True + False + + + + + GtkEntry + rescountry + True + + changed + on_object_toggled + propertybox + Thu, 14 Jun 2001 14:35:38 GMT + + True + True + 0 + + + 1 + 2 + 4 + 5 + 5 + 3 + True + False + False + False + True + False + + + + + GtkEntry + respostal + True + + changed + on_object_toggled + propertybox + Thu, 14 Jun 2001 14:35:53 GMT + + True + True + 0 + + + 1 + 2 + 5 + 6 + 5 + 3 + True + False + False + False + True + False + + + + + GtkEntry + resphone + True + + changed + on_object_toggled + propertybox + Thu, 14 Jun 2001 14:36:08 GMT + + True + True + 0 + + + 1 + 2 + 6 + 7 + 5 + 3 + True + False + False + False + True + False + + + + + GtkEntry + resemail + True + + changed + on_object_toggled + propertybox + Thu, 14 Jun 2001 14:36:27 GMT + + True + True + 0 + + + 1 + 2 + 7 + 8 + 5 + 3 + True + False + False + False + True + False + + + + + + + + GtkLabel + Notebook:tab + label25 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox19 + False + 0 + + + GtkFrame + frame18 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkTable + table8 + 4 + 3 + False + 0 + 0 + + + GtkLabel + label26 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 0 + 1 + 5 + 5 + False + False + False + False + True + False + + + + + GtkLabel + label27 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 1 + 2 + 5 + 5 + False + False + False + False + True + False + + + + + GtkLabel + label28 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 2 + 3 + 5 + 5 + False + False + False + False + True + False + + + + + GtkLabel + label29 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + 1 + 3 + 4 + 5 + 5 + False + False + False + False + True + False + + + + + GnomeFileEntry + repdir + repdir + 10 + Gramps - Select default report directory + True + False + + 1 + 3 + 2 + 3 + 5 + 5 + True + False + False + False + True + False + + + + GtkEntry + GnomeEntry:entry + entry11 + The default directory for the output of many report generators + True + + changed + on_object_toggled + propertybox + Thu, 28 Jun 2001 13:49:30 GMT + + True + True + 0 + + + + + + GnomeFileEntry + htmldir + webdir + 10 + Gramps - Select default report directory + True + False + + 1 + 3 + 3 + 4 + 5 + 5 + True + False + False + False + True + False + + + + GtkEntry + GnomeEntry:entry + entry12 + The default directory for the output of the Web Site report generators + True + + changed + on_object_toggled + propertybox + Thu, 28 Jun 2001 13:49:30 GMT + + True + True + 0 + + + + + + GtkOptionMenu + output_format + True + OpenOffice +HTML +PDF +AbiWord + + 0 + + 1 + 2 + 0 + 1 + 5 + 5 + False + False + False + False + True + False + + + + + GtkOptionMenu + paper_size + True + Letter +A4 + + 0 + + 1 + 2 + 1 + 2 + 5 + 5 + False + False + False + False + True + False + + + + + + + + GtkLabel + Notebook:tab + label30 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox8 + False + 0 + + + GtkFrame + frame12 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 5 + False + True + + + + GtkVBox + vbox9 + False + 0 + + + GtkRadioButton + mediaref + 5 + True + + toggled + on_object_toggled + propertybox + Fri, 30 Nov 2001 01:29:56 GMT + + + True + True + ref + + 0 + False + False + + + + + GtkRadioButton + mediacopy + 5 + True + + toggled + on_object_toggled + propertybox + Fri, 30 Nov 2001 01:30:09 GMT + + + False + True + ref + + 0 + False + False + + + + + GtkCheckButton + globalprop + 5 + True + + toggled + on_object_toggled + propertybox + Fri, 30 Nov 2001 01:30:24 GMT + + + True + True + + 0 + False + False + + + + + + + GtkFrame + frame13 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkVBox + vbox10 + False + 0 + + + GtkCheckButton + localprop + 5 + True + + toggled + on_object_toggled + propertybox + Fri, 30 Nov 2001 01:30:36 GMT + + + True + True + + 0 + False + False + + + + + + + + GtkLabel + Notebook:tab + label31 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox11 + False + 0 + + + GtkFrame + frame14 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkTable + table9 + 5 + 2 + False + 0 + 0 + + + GtkLabel + label32 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 2 + 2 + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label33 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 2 + 2 + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label34 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 2 + 2 + + 0 + 1 + 2 + 3 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label35 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 2 + 2 + + 0 + 1 + 3 + 4 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label36 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 2 + 2 + + 0 + 1 + 4 + 5 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + iprefix + True + + changed + on_object_toggled + propertybox + Sat, 20 Oct 2001 13:59:28 GMT + + True + True + 0 + I + + 1 + 2 + 0 + 1 + 5 + 5 + True + False + False + False + True + False + + + + + GtkEntry + fprefix + True + + changed + on_object_toggled + propertybox + Sat, 20 Oct 2001 14:00:26 GMT + + True + True + 0 + F + + 1 + 2 + 1 + 2 + 5 + 5 + True + False + False + False + True + False + + + + + GtkEntry + pprefix + True + + changed + on_object_toggled + propertybox + Sat, 20 Oct 2001 14:00:13 GMT + + True + True + 0 + P + + 1 + 2 + 2 + 3 + 5 + 5 + True + False + False + False + True + False + + + + + GtkEntry + sprefix + True + + changed + on_object_toggled + propertybox + Sat, 20 Oct 2001 14:00:46 GMT + + True + True + 0 + S + + 1 + 2 + 3 + 4 + 5 + 5 + True + False + False + False + True + False + + + + + GtkEntry + oprefix + True + + changed + on_object_toggled + propertybox + Sat, 20 Oct 2001 14:01:09 GMT + + True + True + 0 + O + + 1 + 2 + 4 + 5 + 5 + 5 + True + False + False + False + True + False + + + + + + + GtkFrame + frame15 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkVBox + vbox12 + False + 0 + + + GtkCheckButton + gid_edit + 5 + True + + toggled + on_object_toggled + propertybox + Thu, 12 Jul 2001 13:42:44 GMT + + + False + True + + 0 + False + False + + + + + + + + GtkLabel + Notebook:tab + label37 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox13 + False + 0 + + + GtkFrame + frame16 + 5 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkTable + table10 + 1 + 3 + False + 0 + 0 + + + GtkLabel + label38 + + GTK_JUSTIFY_CENTER + False + 0 + 0.5 + 3 + 3 + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkOptionMenu + lastnamegen + True + + + 0 + + 1 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + + + + GtkLabel + Notebook:tab + label39 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + + + + + +