geography : add preferences for animation in geoperson.

svn: r17406
This commit is contained in:
Serge Noiraud
2011-05-04 19:02:08 +00:00
parent 75d144e6b5
commit 299bef1c74
3 changed files with 82 additions and 18 deletions

View File

@@ -68,13 +68,6 @@ from config import config
from gui.editors import EditPlace, EditEvent, EditFamily, EditPerson
from gui.selectors.selectplace import SelectPlace
#-------------------------------------------------------------------------
#
# Constants
#
#-------------------------------------------------------------------------
GEOGRAPHY_PATH = os.path.join(const.HOME_DIR, "maps")
#-------------------------------------------------------------------------
#
# Functions
@@ -692,7 +685,7 @@ class GeoGraphyView(osmGpsMap, NavigationView):
"""
The function which is used to create the configuration window.
"""
return [self.map_options]
return [self.map_options, self.specific_options]
def config_zoom_and_position(self, client, cnxn_id, entry, data):
"""
@@ -717,6 +710,18 @@ class GeoGraphyView(osmGpsMap, NavigationView):
self.set_crosshair(config.get("geography.show_cross"))
pass
def specific_options(self, configdialog):
"""
Add specific entry to the preference menu.
Must be done in the associated view.
"""
table = gtk.Table(2, 2)
table.set_border_width(12)
table.set_col_spacings(6)
table.set_row_spacings(6)
configdialog.add_text(table, _('Nothing for this view.'), 1)
return _('Specific parameters'), table
def map_options(self, configdialog):
"""
Function that builds the widget in the configuration dialog