[GRASS-SVN] r58087 - in grass/trunk/gui/wxpython: gui_core lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 21 19:21:13 PDT 2013


Author: annakrat
Date: 2013-10-21 19:21:13 -0700 (Mon, 21 Oct 2013)
New Revision: 58087

Modified:
   grass/trunk/gui/wxpython/gui_core/goutput.py
   grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: change notification for setting comp region from selected map (do not switch tab); add docstring

Modified: grass/trunk/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/goutput.py	2013-10-22 02:12:20 UTC (rev 58086)
+++ grass/trunk/gui/wxpython/gui_core/goutput.py	2013-10-22 02:21:13 UTC (rev 58087)
@@ -305,8 +305,10 @@
     def WriteLog(self, text, style=None, wrap=None,
                  notification=Notification.HIGHLIGHT):
         """!Generic method for writing log message in 
-        given style
+        given style. 
 
+        Emits contentChanged signal.
+
         @param line text line
         @param style text style (see GStc)
         @param stdout write to stdout or stderr
@@ -421,7 +423,9 @@
             self.cmdOutput.Unbind(stc.EVT_STC_PAINTED)
 
     def OnCmdOutput(self, event):
-        """!Print command output
+        """!Prints command output.
+
+        Emits contentChanged signal.
         """
         message = event.text
         type  = event.type

Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2013-10-22 02:12:20 UTC (rev 58086)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2013-10-22 02:21:13 UTC (rev 58087)
@@ -48,6 +48,7 @@
 from web_services.dialogs import SaveWMSLayerDialog
 from gui_core.widgets import GenericValidator
 from lmgr.giface import LayerManagerGrassInterfaceForMapDisplay
+from core.giface import Notification
 
 TREE_ITEM_HEIGHT = 25
 
@@ -642,7 +643,7 @@
                'zoom=%s' % mapLayer.GetName()]
         
         # print output to command log area
-        self._giface.RunCmd(cmd)
+        self._giface.RunCmd(cmd, notification=Notification.HIGHLIGHT)
         
         # re-render map display
         self._giface.GetMapWindow().UpdateMap(render=True)
@@ -680,7 +681,8 @@
             cmd.append('-p')
             if mltype == '3d-raster':
                 cmd.append('-3')
-            self._giface.RunCmd(cmd, compReg = False)
+            self._giface.RunCmd(cmd, compReg = False,
+                                notification=Notification.HIGHLIGHT)
         
         # re-render map display
         self._giface.GetMapWindow().UpdateMap(render=True)



More information about the grass-commit mailing list