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