Przeglądaj źródła

wxGUI: change notification for setting comp region from selected map (do not switch tab); add docstring

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58087 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 lat temu
rodzic
commit
be4d2ab116

+ 6 - 2
gui/wxpython/gui_core/goutput.py

@@ -305,7 +305,9 @@ class GConsoleWindow(wx.SplitterWindow):
     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)
@@ -421,7 +423,9 @@ class GConsoleWindow(wx.SplitterWindow):
             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

+ 4 - 2
gui/wxpython/lmgr/layertree.py

@@ -48,6 +48,7 @@ from icons.icon           import MetaIcon
 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 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
                '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 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
             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)