geography : add preferences for animation in geoperson.
svn: r17406
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user