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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 17 09:50:56 EDT 2008


Author: martinl
Date: 2008-07-17 09:50:56 -0400 (Thu, 17 Jul 2008)
New Revision: 32150

Modified:
   grass/trunk/gui/wxpython/gui_modules/workspace.py
   grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI: fix loading workspace (groups)
show command string in layer manager statusbar


Modified: grass/trunk/gui/wxpython/gui_modules/workspace.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/workspace.py	2008-07-17 13:35:01 UTC (rev 32149)
+++ grass/trunk/gui/wxpython/gui_modules/workspace.py	2008-07-17 13:50:56 UTC (rev 32150)
@@ -111,7 +111,8 @@
                 "opacity" : None,
                 "cmd"     : None,
                 "group"   : self.inTag['group'],
-                "display" : self.displayIndex})
+                "display" : self.displayIndex,
+                "nviz"    : None})
 
         elif name == 'layer':
             self.layerType     = attrs.get('type', None)
@@ -372,7 +373,7 @@
                                (' ' * self.indent, name, checked));
                 self.indent += 4
                 subItem = mapTree.GetFirstChild(item)[0]
-                self.WriteLayer(subItem)
+                self.__writeLayer(mapTree, subItem)
                 self.indent -= 4
                 self.file.write('%s</group>\n' % (' ' * self.indent));
             else:

Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py	2008-07-17 13:35:01 UTC (rev 32149)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py	2008-07-17 13:50:56 UTC (rev 32150)
@@ -925,12 +925,19 @@
         oldlayer = event.GetOldItem()
         layer = event.GetItem()
         self.layer_selected = layer
+        
         try:
             self.RefreshLine(oldlayer)
             self.RefreshLine(layer)
         except:
             pass
 
+        # update statusbar -> show command string
+        if self.GetPyData(layer) and self.GetPyData(layer)[0]['maplayer']:
+            cmd = self.GetPyData(layer)[0]['maplayer'].GetCmd(string=True)
+            if len(cmd) > 0:
+                self.gismgr.SetStatusText(cmd)
+        
         # update nviz tools
         if self.mapdisplay.toolbars['nviz'] and \
                 self.GetPyData(self.layer_selected) is not None:



More information about the grass-commit mailing list