[GRASS-SVN] r54332 - grass-addons/grass7/gui/wxpython/wx.rdigit

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 18 05:32:38 PST 2012


Author: rashadkm
Date: 2012-12-18 05:32:38 -0800 (Tue, 18 Dec 2012)
New Revision: 54332

Modified:
   grass-addons/grass7/gui/wxpython/wx.rdigit/frame.py
   grass-addons/grass7/gui/wxpython/wx.rdigit/toolbars.py
Log:
Added wxGUI Raster Digitizer

Modified: grass-addons/grass7/gui/wxpython/wx.rdigit/frame.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.rdigit/frame.py	2012-12-18 13:26:25 UTC (rev 54331)
+++ grass-addons/grass7/gui/wxpython/wx.rdigit/frame.py	2012-12-18 13:32:38 UTC (rev 54332)
@@ -35,6 +35,7 @@
 from gui_core.mapdisp   import SingleMapFrame
 from core.render        import Map, MapLayer
 from core.gcmd          import RunCommand, GMessage
+from iclass.dialogs     import IClassMapDialog
 
 from toolbars    import RDigitMapToolbar,      RDigitMapManagerToolbar
 

Modified: grass-addons/grass7/gui/wxpython/wx.rdigit/toolbars.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.rdigit/toolbars.py	2012-12-18 13:26:25 UTC (rev 54331)
+++ grass-addons/grass7/gui/wxpython/wx.rdigit/toolbars.py	2012-12-18 13:32:38 UTC (rev 54332)
@@ -21,6 +21,7 @@
 
 from gui_core.toolbars import BaseToolbar, BaseIcons
 from icons.icon import MetaIcon
+from iclass.dialogs     import IClassMapDialog as MDialog
 
 import grass.script as grass
 
@@ -136,7 +137,7 @@
         self.mapManager.SelectLayer(name = layer)
         
     def OnAddRast(self, event):
-        dlg = IClassMapDialog(self, title = _("Add raster map"), element = 'raster')
+        dlg = MDialog(self, title = _("Add raster map"), element = 'raster')
         if dlg.ShowModal() == wx.ID_OK:
             raster = grass.find_file(name = dlg.GetMap(), element = 'cell')
             if raster['fullname']:



More information about the grass-commit mailing list