Bug fixes, new child/parent relationship handling, remembering places
svn: r241
This commit is contained in:
@@ -68,12 +68,16 @@ _date_format_list = [
|
||||
_("DD-MM-YYYY"),
|
||||
_("MM.DD.YYYY"),
|
||||
_("DD.MM.YYYY"),
|
||||
_("DD. Month Year")
|
||||
_("DD. Month Year"),
|
||||
_("YYYY/MM/DD"),
|
||||
_("YYYY-MM-DD"),
|
||||
_("YYYY.MM.DD"),
|
||||
]
|
||||
|
||||
_date_entry_list = [
|
||||
_("MM/DD/YYYY, MM.DD.YYYY, or MM-DD-YYYY"),
|
||||
_("DD/MM/YYYY, DD.MM.YYYY, or DD-MM-YYYY")
|
||||
_("DD/MM/YYYY, DD.MM.YYYY, or DD-MM-YYYY"),
|
||||
_("YYYY/MM/DD, YYYY.MM.DD, or YYYY-MM-DD"),
|
||||
]
|
||||
|
||||
_name_format_list = [
|
||||
@@ -102,6 +106,7 @@ output_preference = None
|
||||
report_dir = "./"
|
||||
web_dir = "./"
|
||||
db_dir = "./"
|
||||
id_visible = 0
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -142,6 +147,7 @@ def loadConfig(call):
|
||||
global autoload
|
||||
global owner
|
||||
global usetabs
|
||||
global id_visible
|
||||
global show_detail
|
||||
global hide_altnames
|
||||
global lastfile
|
||||
@@ -161,6 +167,7 @@ def loadConfig(call):
|
||||
_callback = call
|
||||
lastfile = gnome.config.get_string("/gramps/data/LastFile")
|
||||
usetabs = gnome.config.get_bool("/gramps/config/UseTabs")
|
||||
id_visible = gnome.config.get_bool("/gramps/config/IdVisible")
|
||||
show_detail = gnome.config.get_bool("/gramps/config/ShowDetail")
|
||||
status_bar = gnome.config.get_int("/gramps/config/StatusBar")
|
||||
display_attr = gnome.config.get_bool("/gramps/config/DisplayAttr")
|
||||
@@ -229,6 +236,8 @@ def loadConfig(call):
|
||||
autoload = 1
|
||||
if usetabs == None:
|
||||
usetabs = 0
|
||||
if id_visible == None:
|
||||
id_visible = 0
|
||||
if show_detail == None:
|
||||
show_detail = 0
|
||||
if status_bar == None:
|
||||
@@ -318,6 +327,7 @@ def on_propertybox_apply(obj,page):
|
||||
global nameof
|
||||
global owner
|
||||
global usetabs
|
||||
global id_visible
|
||||
global status_bar
|
||||
global display_attr
|
||||
global attr_name
|
||||
@@ -337,6 +347,7 @@ def on_propertybox_apply(obj,page):
|
||||
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()
|
||||
id_visible = prefsTop.get_widget("gid_visible").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()
|
||||
@@ -364,6 +375,7 @@ def on_propertybox_apply(obj,page):
|
||||
output_preference = output_obj.get_data("d")
|
||||
|
||||
gnome.config.set_bool("/gramps/config/UseTabs",usetabs)
|
||||
gnome.config.set_bool("/gramps/config/IdVisible",id_visible)
|
||||
gnome.config.set_bool("/gramps/config/ShowDetail",show_detail)
|
||||
gnome.config.set_int("/gramps/config/StatusBar",status_bar)
|
||||
gnome.config.set_bool("/gramps/config/DisplayAttr",display_attr)
|
||||
@@ -499,6 +511,7 @@ def display_preferences_box():
|
||||
|
||||
pbox = prefsTop.get_widget("propertybox")
|
||||
auto = prefsTop.get_widget("autoload")
|
||||
vis = prefsTop.get_widget("gid_visible")
|
||||
tabs = prefsTop.get_widget("usetabs")
|
||||
detail = prefsTop.get_widget("showdetail")
|
||||
display_attr_obj = prefsTop.get_widget("attr_display")
|
||||
@@ -506,6 +519,7 @@ def display_preferences_box():
|
||||
auto.set_active(autoload)
|
||||
detail.set_active(show_detail)
|
||||
tabs.set_active(usetabs)
|
||||
vis.set_active(id_visible)
|
||||
|
||||
if status_bar == 0:
|
||||
prefsTop.get_widget("stat1").set_active(1)
|
||||
|
Reference in New Issue
Block a user