[GRASS-SVN] r31971 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 2 10:31:31 EDT 2008


Author: martinl
Date: 2008-07-02 10:31:31 -0400 (Wed, 02 Jul 2008)
New Revision: 31971

Modified:
   grass/trunk/gui/wxpython/gui_modules/preferences.py
   grass/trunk/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI/vdigit: 'copy categories' is implemented only in vedit interface


Modified: grass/trunk/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/preferences.py	2008-07-02 14:02:47 UTC (rev 31970)
+++ grass/trunk/gui/wxpython/gui_modules/preferences.py	2008-07-02 14:31:31 UTC (rev 31971)
@@ -1073,7 +1073,7 @@
         # 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))

Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py	2008-07-02 14:02:47 UTC (rev 31970)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py	2008-07-02 14:31:31 UTC (rev 31971)
@@ -395,7 +395,11 @@
         
         # 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



More information about the grass-commit mailing list