* src/DataViews/_MapView.py: use config value to determine if online
maps should be used * src/GrampsCfg.py: online map config value * src/Config/_GrampsCOnfigKeys.py: online map config value * daa/gramps.schema.in: online map config value svn: r6728
This commit is contained in:
parent
116e75ffda
commit
b59b9b0e04
@ -1,5 +1,10 @@
|
|||||||
2006-05-19 Don Allingham <don@gramps-project.org>
|
2006-05-19 Don Allingham <don@gramps-project.org>
|
||||||
* src/GrampsDb/_GrampsDbBase.py: repository does not have a media_list
|
* src/GrampsDb/_GrampsDbBase.py: repository does not have a media_list
|
||||||
|
* src/DataViews/_MapView.py: use config value to determine if online
|
||||||
|
maps should be used
|
||||||
|
* src/GrampsCfg.py: online map config value
|
||||||
|
* src/Config/_GrampsCOnfigKeys.py: online map config value
|
||||||
|
* daa/gramps.schema.in: online map config value
|
||||||
|
|
||||||
2006-05-19 Alex Roitman <shura@gramps-project.org>
|
2006-05-19 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/GrampsDb/_DbUtils.py (db_copy): Copy custom types.
|
* src/GrampsDb/_DbUtils.py (db_copy): Copy custom types.
|
||||||
|
@ -3,6 +3,18 @@
|
|||||||
<gconfschemafile>
|
<gconfschemafile>
|
||||||
<schemalist>
|
<schemalist>
|
||||||
|
|
||||||
|
<schema>
|
||||||
|
<key>/schemas/apps/gramps/preferences/online-maps</key>
|
||||||
|
<applyto>/apps/gramps/preferences/online-maps</applyto>
|
||||||
|
<owner>gramps</owner>
|
||||||
|
<type>bool</type>
|
||||||
|
<default>0</default>
|
||||||
|
<locale name="C">
|
||||||
|
<short>Use online maps</short>
|
||||||
|
<long>If True, the Map View will connect to OpenGIS servers to download maps.</long>
|
||||||
|
</locale>
|
||||||
|
</schema>
|
||||||
|
|
||||||
<schema>
|
<schema>
|
||||||
<key>/schemas/apps/gramps/preferences/family-details</key>
|
<key>/schemas/apps/gramps/preferences/family-details</key>
|
||||||
<applyto>/apps/gramps/preferences/family-details</applyto>
|
<applyto>/apps/gramps/preferences/family-details</applyto>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
ONLINE_MAPS = ('preferences','online-maps', 0)
|
||||||
FAMILY_DETAILS = ('preferences','family-details', 0)
|
FAMILY_DETAILS = ('preferences','family-details', 0)
|
||||||
COMPLETE_COLOR = ('preferences','complete-color', 2)
|
COMPLETE_COLOR = ('preferences','complete-color', 2)
|
||||||
TODO_COLOR = ('preferences','todo-color', 2)
|
TODO_COLOR = ('preferences','todo-color', 2)
|
||||||
@ -52,10 +53,11 @@ WEBSITE_DIRECTORY = ('paths','website-directory', 2)
|
|||||||
|
|
||||||
|
|
||||||
default_value = {
|
default_value = {
|
||||||
|
ONLINE_MAPS : False,
|
||||||
FAMILY_DETAILS : True,
|
FAMILY_DETAILS : True,
|
||||||
COMPLETE_COLOR : '#FF0000',
|
COMPLETE_COLOR : '#008b00',
|
||||||
TODO_COLOR : '#FF0000',
|
TODO_COLOR : '#ff0000',
|
||||||
CUSTOM_MARKER_COLOR : '#00FF00',
|
CUSTOM_MARKER_COLOR : '#8b008b',
|
||||||
FAMILY_WARN : True,
|
FAMILY_WARN : True,
|
||||||
HIDE_EP_MSG : False,
|
HIDE_EP_MSG : False,
|
||||||
LAST_VIEW : 0,
|
LAST_VIEW : 0,
|
||||||
|
@ -35,8 +35,6 @@ import urllib2
|
|||||||
import tempfile
|
import tempfile
|
||||||
from xml.dom.minidom import parseString as xmlStringParser
|
from xml.dom.minidom import parseString as xmlStringParser
|
||||||
|
|
||||||
use_online_map = False
|
|
||||||
|
|
||||||
log = logging.getLogger(".")
|
log = logging.getLogger(".")
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
@ -54,8 +52,11 @@ import gtk.gdk
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import PageView
|
import PageView
|
||||||
|
import Config
|
||||||
import const
|
import const
|
||||||
|
|
||||||
|
use_online_map = Config.get(Config.ONLINE_MAPS)
|
||||||
|
|
||||||
# Some initial places for debugging
|
# Some initial places for debugging
|
||||||
glob_loc_data = [ # (Name, longitude, latitude)
|
glob_loc_data = [ # (Name, longitude, latitude)
|
||||||
("_Center", 0,0),
|
("_Center", 0,0),
|
||||||
|
@ -268,6 +268,7 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
|
|||||||
self.add_checkbox(table, _('Automatically load last database'), 0, Config.AUTOLOAD)
|
self.add_checkbox(table, _('Automatically load last database'), 0, Config.AUTOLOAD)
|
||||||
self.add_checkbox(table, _('Enable spelling checker'), 1, Config.SPELLCHECK)
|
self.add_checkbox(table, _('Enable spelling checker'), 1, Config.SPELLCHECK)
|
||||||
self.add_checkbox(table, _('Display Tip of the Day'), 2, Config.USE_TIPS)
|
self.add_checkbox(table, _('Display Tip of the Day'), 2, Config.USE_TIPS)
|
||||||
|
self.add_checkbox(table, _('Download maps online'), 3, Config.ONLINE_MAPS)
|
||||||
|
|
||||||
return table
|
return table
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user