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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 27 02:07:18 EDT 2008


Author: cmbarton
Date: 2008-08-27 02:07:17 -0400 (Wed, 27 Aug 2008)
New Revision: 33109

Modified:
   grass/trunk/gui/wxpython/gui_modules/profile.py
   grass/trunk/gui/wxpython/gui_modules/toolbars.py
Log:
Moved profile toolbar back to profile window. All buttons except transect pertain to profile window, not to map display window.

Modified: grass/trunk/gui/wxpython/gui_modules/profile.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/profile.py	2008-08-27 06:06:32 UTC (rev 33108)
+++ grass/trunk/gui/wxpython/gui_modules/profile.py	2008-08-27 06:07:17 UTC (rev 33109)
@@ -89,8 +89,8 @@
         #
         # Add toolbar
         #
-        toolbar = toolbars.ProfileToolbar(parent=self, mapdisplay=self.mapwin, map=self.Map).GetToolbar()
-        self.SetToolBar(toolbar)
+        self.toolbar = toolbars.ProfileToolbar(parent=self, tbframe=self).GetToolbar()
+        self.SetToolBar(self.toolbar)
         
         #
         # Set the size & cursor

Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py	2008-08-27 06:06:32 UTC (rev 33108)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py	2008-08-27 06:07:17 UTC (rev 33109)
@@ -1100,18 +1100,17 @@
 class ProfileToolbar(AbstractToolbar):
     """
     Toolbar for profiling raster map
-    """
-    def __init__(self, parent, mapdisplay, map):
-        self.parent     = parent
-        self.mapcontent = map
-        self.mapdisplay = mapdisplay
+    """ 
+    def __init__(self, parent, tbframe):
+        self.parent  = parent # GCP
+        self.tbframe = tbframe
 
-        self.toolbar = wx.ToolBar(parent=self.mapdisplay, id=wx.ID_ANY)
+        self.toolbar = wx.ToolBar(parent=self.tbframe, id=wx.ID_ANY)
 
         # self.SetToolBar(self.toolbar)
         self.toolbar.SetToolBitmapSize(globalvar.toolbarSize)
 
-        self.InitToolbar(self.mapdisplay, self.toolbar, self.ToolbarData())
+        self.InitToolbar(self.tbframe, self.toolbar, self.ToolbarData())
 
         # realize the toolbar
         self.toolbar.Realize()



More information about the grass-commit mailing list