9795: remember the last location of windows [partial: eight more]
This commit is contained in:
@@ -186,12 +186,6 @@ register('geography.use-keypad', True)
|
|||||||
# note that other calls to "register" are done in realtime (when
|
# note that other calls to "register" are done in realtime (when
|
||||||
# needed), for instance to four 'interface.clipboard' variables --
|
# needed), for instance to four 'interface.clipboard' variables --
|
||||||
# so do a recursive grep for "setup_configs" to see all the (base) names
|
# so do a recursive grep for "setup_configs" to see all the (base) names
|
||||||
register('interface.addmedia-height', 500)
|
|
||||||
register('interface.addmedia-width', 700)
|
|
||||||
register('interface.address-height', 450)
|
|
||||||
register('interface.address-width', 650)
|
|
||||||
register('interface.attribute-height', 350)
|
|
||||||
register('interface.attribute-width', 600)
|
|
||||||
register('interface.dont-ask', False)
|
register('interface.dont-ask', False)
|
||||||
register('interface.view-categories',
|
register('interface.view-categories',
|
||||||
["Dashboard", "People", "Relationships", "Families",
|
["Dashboard", "People", "Relationships", "Families",
|
||||||
@@ -203,17 +197,11 @@ register('interface.grampletbar-close', False)
|
|||||||
register('interface.ignore-gexiv2', False)
|
register('interface.ignore-gexiv2', False)
|
||||||
register('interface.ignore-pil', False)
|
register('interface.ignore-pil', False)
|
||||||
register('interface.ignore-osmgpsmap', False)
|
register('interface.ignore-osmgpsmap', False)
|
||||||
register('interface.lds-height', 450)
|
|
||||||
register('interface.lds-width', 600)
|
|
||||||
register('interface.location-height', 250)
|
|
||||||
register('interface.location-width', 600)
|
|
||||||
register('interface.main-window-height', 500)
|
register('interface.main-window-height', 500)
|
||||||
register('interface.main-window-horiz-position', 15)
|
register('interface.main-window-horiz-position', 15)
|
||||||
register('interface.main-window-vert-position', 10)
|
register('interface.main-window-vert-position', 10)
|
||||||
register('interface.main-window-width', 775)
|
register('interface.main-window-width', 775)
|
||||||
register('interface.mapservice', 'OpenStreetMap')
|
register('interface.mapservice', 'OpenStreetMap')
|
||||||
register('interface.name-height', 350)
|
|
||||||
register('interface.name-width', 600)
|
|
||||||
register('interface.open-with-default-viewer', False)
|
register('interface.open-with-default-viewer', False)
|
||||||
register('interface.pedview-layout', 0)
|
register('interface.pedview-layout', 0)
|
||||||
register('interface.pedview-show-images', True)
|
register('interface.pedview-show-images', True)
|
||||||
@@ -223,14 +211,10 @@ register('interface.pedview-tree-direction', 2)
|
|||||||
register('interface.pedview-show-unknown-people', False)
|
register('interface.pedview-show-unknown-people', False)
|
||||||
register('interface.place-name-height', 100)
|
register('interface.place-name-height', 100)
|
||||||
register('interface.place-name-width', 450)
|
register('interface.place-name-width', 450)
|
||||||
register('interface.relcalc-height', 400)
|
|
||||||
register('interface.relcalc-width', 600)
|
|
||||||
register('interface.sidebar-text', True)
|
register('interface.sidebar-text', True)
|
||||||
register('interface.size-checked', False)
|
register('interface.size-checked', False)
|
||||||
register('interface.statusbar', 1)
|
register('interface.statusbar', 1)
|
||||||
register('interface.toolbar-on', True)
|
register('interface.toolbar-on', True)
|
||||||
register('interface.url-height', 150)
|
|
||||||
register('interface.url-width', 600)
|
|
||||||
register('interface.view', True)
|
register('interface.view', True)
|
||||||
register('interface.surname-box-height', 150)
|
register('interface.surname-box-height', 150)
|
||||||
register('interface.treemodel-cache-size', 1000)
|
register('interface.treemodel-cache-size', 1000)
|
||||||
|
@@ -102,9 +102,7 @@ class AddMedia(ManagedWindow):
|
|||||||
self.glade.toplevel,
|
self.glade.toplevel,
|
||||||
self.glade.get_object('title'),
|
self.glade.get_object('title'),
|
||||||
_('Select a media object'))
|
_('Select a media object'))
|
||||||
self.height_key = 'interface.addmedia-height'
|
self.setup_configs('interface.addmedia', 700, 500)
|
||||||
self.width_key = 'interface.addmedia-width'
|
|
||||||
self._set_size()
|
|
||||||
|
|
||||||
self.description = self.glade.get_object("photoDescription")
|
self.description = self.glade.get_object("photoDescription")
|
||||||
self.image = self.glade.get_object("image")
|
self.image = self.glade.get_object("image")
|
||||||
|
@@ -85,13 +85,12 @@ class EditAddress(EditSecondary):
|
|||||||
EditSecondary.__init__(self, dbstate, uistate, track, addr, callback)
|
EditSecondary.__init__(self, dbstate, uistate, track, addr, callback)
|
||||||
|
|
||||||
def _local_init(self):
|
def _local_init(self):
|
||||||
self.width_key = 'interface.address-width'
|
|
||||||
self.height_key = 'interface.address-height'
|
|
||||||
|
|
||||||
self.top = Glade()
|
self.top = Glade()
|
||||||
self.set_window(self.top.toplevel,
|
self.set_window(self.top.toplevel,
|
||||||
self.top.get_object("title"),
|
self.top.get_object("title"),
|
||||||
_('Address Editor'))
|
_('Address Editor'))
|
||||||
|
self.setup_configs('interface.address', 650, 450)
|
||||||
|
|
||||||
def _setup_fields(self):
|
def _setup_fields(self):
|
||||||
self.addr_start = MonitoredDate(
|
self.addr_start = MonitoredDate(
|
||||||
|
@@ -87,13 +87,12 @@ class EditAttributeRoot(EditSecondary):
|
|||||||
EditSecondary.__init__(self, state, uistate, track, attrib, callback)
|
EditSecondary.__init__(self, state, uistate, track, attrib, callback)
|
||||||
|
|
||||||
def _local_init(self):
|
def _local_init(self):
|
||||||
self.width_key = 'interface.attribute-width'
|
|
||||||
self.height_key = 'interface.attribute-height'
|
|
||||||
self.top = Glade('editattribute.glade')
|
self.top = Glade('editattribute.glade')
|
||||||
|
|
||||||
self.set_window(self.top.toplevel,
|
self.set_window(self.top.toplevel,
|
||||||
self.top.get_object('title'),
|
self.top.get_object('title'),
|
||||||
_('Attribute Editor'))
|
_('Attribute Editor'))
|
||||||
|
self.setup_configs('interface.attribute', 600, 350)
|
||||||
|
|
||||||
def _connect_signals(self):
|
def _connect_signals(self):
|
||||||
self.define_cancel_button(self.top.get_object('cancel'))
|
self.define_cancel_button(self.top.get_object('cancel'))
|
||||||
|
@@ -151,13 +151,13 @@ class EditLdsOrd(EditSecondary):
|
|||||||
EditSecondary.__init__(self, state, uistate, track, attrib, callback)
|
EditSecondary.__init__(self, state, uistate, track, attrib, callback)
|
||||||
|
|
||||||
def _local_init(self):
|
def _local_init(self):
|
||||||
self.width_key = 'interface.lds-width'
|
|
||||||
self.height_key = 'interface.lds-height'
|
|
||||||
|
|
||||||
self.top = Glade()
|
self.top = Glade()
|
||||||
self.set_window(self.top.toplevel,
|
self.set_window(self.top.toplevel,
|
||||||
self.top.get_object('title'),
|
self.top.get_object('title'),
|
||||||
_('LDS Ordinance Editor'))
|
_('LDS Ordinance Editor'))
|
||||||
|
self.setup_configs('interface.lds', 600, 450)
|
||||||
|
|
||||||
self.share_btn = self.top.get_object('share_place')
|
self.share_btn = self.top.get_object('share_place')
|
||||||
self.add_del_btn = self.top.get_object('add_del_place')
|
self.add_del_btn = self.top.get_object('add_del_place')
|
||||||
|
|
||||||
|
@@ -43,11 +43,10 @@ class EditLocation(EditSecondary):
|
|||||||
location, callback)
|
location, callback)
|
||||||
|
|
||||||
def _local_init(self):
|
def _local_init(self):
|
||||||
self.width_key = 'interface.location-width'
|
|
||||||
self.height_key = 'interface.location-height'
|
|
||||||
self.top = Glade()
|
self.top = Glade()
|
||||||
self.set_window(self.top.toplevel, None,
|
self.set_window(self.top.toplevel, None,
|
||||||
_('Location Editor'))
|
_('Location Editor'))
|
||||||
|
self.setup_configs('interface.location', 600, 250)
|
||||||
|
|
||||||
def _setup_fields(self):
|
def _setup_fields(self):
|
||||||
self.street = MonitoredEntry(
|
self.street = MonitoredEntry(
|
||||||
|
@@ -114,12 +114,11 @@ class EditName(EditSecondary):
|
|||||||
track, name, callback)
|
track, name, callback)
|
||||||
|
|
||||||
def _local_init(self):
|
def _local_init(self):
|
||||||
self.width_key = 'interface.name-width'
|
|
||||||
self.height_key = 'interface.name-height'
|
|
||||||
|
|
||||||
self.top = Glade()
|
self.top = Glade()
|
||||||
|
|
||||||
self.set_window(self.top.toplevel, None, _("Name Editor"))
|
self.set_window(self.top.toplevel, None, _("Name Editor"))
|
||||||
|
self.setup_configs('interface.name', 600, 350)
|
||||||
|
|
||||||
tblgnam = self.top.get_object('table23')
|
tblgnam = self.top.get_object('table23')
|
||||||
notebook = self.top.get_object('notebook')
|
notebook = self.top.get_object('notebook')
|
||||||
|
@@ -59,8 +59,6 @@ class EditUrl(EditSecondary):
|
|||||||
url, callback)
|
url, callback)
|
||||||
|
|
||||||
def _local_init(self):
|
def _local_init(self):
|
||||||
self.width_key = 'interface.url-width'
|
|
||||||
self.height_key = 'interface.url-height'
|
|
||||||
|
|
||||||
self.top = Glade()
|
self.top = Glade()
|
||||||
self.jump = self.top.get_object('jump')
|
self.jump = self.top.get_object('jump')
|
||||||
@@ -68,6 +66,7 @@ class EditUrl(EditSecondary):
|
|||||||
self.set_window(self.top.toplevel,
|
self.set_window(self.top.toplevel,
|
||||||
self.top.get_object("title"),
|
self.top.get_object("title"),
|
||||||
_('Internet Address Editor'))
|
_('Internet Address Editor'))
|
||||||
|
self.setup_configs('interface.url', 600, 150)
|
||||||
|
|
||||||
def _connect_signals(self):
|
def _connect_signals(self):
|
||||||
self.jump.connect('clicked', self.jump_to)
|
self.jump.connect('clicked', self.jump_to)
|
||||||
|
@@ -23,8 +23,6 @@
|
|||||||
</object>
|
</object>
|
||||||
<object class="GtkDialog" id="editldsord">
|
<object class="GtkDialog" id="editldsord">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="default_width">600</property>
|
|
||||||
<property name="default_height">450</property>
|
|
||||||
<property name="type_hint">dialog</property>
|
<property name="type_hint">dialog</property>
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<object class="GtkBox" id="dialog-vbox9">
|
<object class="GtkBox" id="dialog-vbox9">
|
||||||
|
@@ -5,7 +5,6 @@
|
|||||||
<requires lib="grampswidgets" version="0.0"/>
|
<requires lib="grampswidgets" version="0.0"/>
|
||||||
<object class="GtkDialog" id="editlocation">
|
<object class="GtkDialog" id="editlocation">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="default_width">550</property>
|
|
||||||
<property name="type_hint">dialog</property>
|
<property name="type_hint">dialog</property>
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<object class="GtkBox" id="dialog-vbox19">
|
<object class="GtkBox" id="dialog-vbox19">
|
||||||
|
@@ -5,7 +5,6 @@
|
|||||||
<requires lib="grampswidgets" version="0.0"/>
|
<requires lib="grampswidgets" version="0.0"/>
|
||||||
<object class="GtkDialog" id="editname">
|
<object class="GtkDialog" id="editname">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="default_width">600</property>
|
|
||||||
<property name="type_hint">dialog</property>
|
<property name="type_hint">dialog</property>
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<object class="GtkBox" id="dialog-vbox14">
|
<object class="GtkBox" id="dialog-vbox14">
|
||||||
|
@@ -5,7 +5,6 @@
|
|||||||
<requires lib="grampswidgets" version="0.0"/>
|
<requires lib="grampswidgets" version="0.0"/>
|
||||||
<object class="GtkDialog" id="editurl">
|
<object class="GtkDialog" id="editurl">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="default_width">600</property>
|
|
||||||
<property name="type_hint">dialog</property>
|
<property name="type_hint">dialog</property>
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<object class="GtkBox" id="dialog-vbox29">
|
<object class="GtkBox" id="dialog-vbox29">
|
||||||
|
@@ -111,9 +111,7 @@ class RelCalc(tool.Tool, ManagedWindow):
|
|||||||
_('Relationship to %(person_name)s'
|
_('Relationship to %(person_name)s'
|
||||||
) % {'person_name' : name},
|
) % {'person_name' : name},
|
||||||
self.title)
|
self.title)
|
||||||
self.height_key = 'interface.relcalc-height'
|
self.setup_configs('interface.relcalc', 600, 400)
|
||||||
self.width_key = 'interface.relcalc-width'
|
|
||||||
self._set_size()
|
|
||||||
|
|
||||||
self.tree = self.glade.get_object("peopleList")
|
self.tree = self.glade.get_object("peopleList")
|
||||||
self.text = self.glade.get_object("text1")
|
self.text = self.glade.get_object("text1")
|
||||||
|
Reference in New Issue
Block a user