[GRASS-SVN] r30193 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 16 18:15:02 EST 2008


Author: cmbarton
Date: 2008-02-16 18:15:02 -0500 (Sat, 16 Feb 2008)
New Revision: 30193

Modified:
   grass/trunk/gui/wxpython/wxgui.py
Log:
Added map calculator

Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2008-02-16 19:27:16 UTC (rev 30192)
+++ grass/trunk/gui/wxpython/wxgui.py	2008-02-16 23:15:02 UTC (rev 30193)
@@ -74,6 +74,7 @@
 import gui_modules.histogram as histogram
 import gui_modules.profile as profile
 import gui_modules.rules as rules
+import gui_modules.mcalc_builder as mapcalculator
 import gui_modules.gcmd as gcmd
 import gui_modules.georect as georect
 import gui_modules.dbm as dbm
@@ -88,8 +89,7 @@
     GRASS GIS. Includes command console page for typing GRASS
     (and other) commands, tree widget page for managing GIS map layers.
     """
-    def __init__(self, parent, id=wx.ID_ANY,
-                 title=_("GRASS GIS Layer Manager"),
+    def __init__(self, parent, id=wx.ID_ANY, title=_("GRASS GIS Layer Manager"),
                  workspace=None):
         self.parent    = parent
         self.baseTitle = title
@@ -867,6 +867,13 @@
         self.profile.Show()
         self.profile.Refresh()
         self.profile.Update()
+        
+    def DispMapCalculator(self, event):
+        """
+        Init map calculator for interactive creation of mapcalc statements
+        """
+        
+        self.mapcalculator = mapcalculator.MapCalcFrame(self, wx.ID_ANY, title='')
 
 
     def AddToolbarButton(self, toolbar, label, icon, help, handler):
@@ -1307,7 +1314,7 @@
 
         # create and show main frame
         mainframe = GMFrame(parent=None, id=wx.ID_ANY,
-                            title=_("GRASS GIS Layer Manager (Experimental Prototype)"),
+                            title=_("GRASS GIS Layer Manager"),
                             workspace = self.workspaceFile)
 
         mainframe.Show()



More information about the grass-commit mailing list