|
@@ -32,7 +32,8 @@ import gcmd
|
|
|
import gdialogs
|
|
|
import vdigit
|
|
|
from vdigit import VDigitSettingsDialog as VDigitSettingsDialog
|
|
|
-from vdigit import hasVDigit
|
|
|
+from vdigit import haveVDigit
|
|
|
+from nviz import haveNviz
|
|
|
from debug import Debug as Debug
|
|
|
from icon import Icons as Icons
|
|
|
from preferences import globalSettings as UserSettings
|
|
@@ -162,9 +163,11 @@ class MapToolbar(AbstractToolbar):
|
|
|
|
|
|
# optional tools
|
|
|
self.combo = wx.ComboBox(parent=self.toolbar, id=wx.ID_ANY, value=_('2D view'),
|
|
|
- choices=[_('2D view'), _('3D view')],
|
|
|
+ choices=[_('2D view'), ],
|
|
|
style=wx.CB_READONLY, size=(90, -1))
|
|
|
- if hasVDigit:
|
|
|
+ if haveNviz:
|
|
|
+ self.combo.Append(_('3D view'))
|
|
|
+ if haveVDigit:
|
|
|
self.combo.Append(_('Digitize'))
|
|
|
|
|
|
self.comboid = self.toolbar.AddControl(self.combo)
|