[GRASS-SVN] r31972 - grass/branches/develbranch_6/gui/wxpython/gui_modules

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


Author: martinl
Date: 2008-07-02 10:32:47 -0400 (Wed, 02 Jul 2008)
New Revision: 31972

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI/vdigit: 'copy categories' is implemented only in vedit interface [merged from trunk r31971]


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py	2008-07-02 14:31:31 UTC (rev 31971)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py	2008-07-02 14:32:47 UTC (rev 31972)
@@ -985,7 +985,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/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py	2008-07-02 14:31:31 UTC (rev 31971)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py	2008-07-02 14:32:47 UTC (rev 31972)
@@ -376,7 +376,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