Переглянути джерело

wxGUI/vdigit: 'copy categories' is implemented only in vedit interface

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31971 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 роки тому
батько
коміт
b9500f5289

+ 1 - 1
gui/wxpython/gui_modules/preferences.py

@@ -1073,7 +1073,7 @@ class PreferencesDialog(wx.Dialog):
         # digitization interface
         #
         gridSizer.Add(item=wx.StaticText(parent=panel, id=wx.ID_ANY,
-                                         label=_("Digitization interface:")),
+                                         label=_("Vector digitizer interface:")),
                        flag=wx.ALIGN_LEFT |
                        wx.ALIGN_CENTER_VERTICAL,
                        pos=(row, 0))

+ 5 - 1
gui/wxpython/gui_modules/toolbars.py

@@ -395,7 +395,11 @@ class VDigitToolbar(AbstractToolbar):
         
         # toogle to pointer by default
         self.OnTool(None)
-        
+
+        if UserSettings.Get(group='advanced', key='digitInterface', subkey='type') == 'vdigit':
+            self.toolbar[0].EnableTool(self.copyCats, False) # not implemented (TODO)
+            self.toolbar[0].SetToolShortHelp(self.copyCats, _("Not implemented yet"))
+            
     def ToolbarData(self, row=None):
         """
         Toolbar data