[GRASS-SVN] r70449 - in grass/trunk/gui/wxpython: docs lmgr xml
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 28 18:57:21 PST 2017
Author: wenzeslaus
Date: 2017-01-28 18:57:21 -0800 (Sat, 28 Jan 2017)
New Revision: 70449
Modified:
grass/trunk/gui/wxpython/docs/wxGUI.html
grass/trunk/gui/wxpython/lmgr/frame.py
grass/trunk/gui/wxpython/xml/toolboxes.xml
grass/trunk/gui/wxpython/xml/wxgui_items.xml
Log:
wxGUI: menu item and shortcut to re-render all map displays
Modified: grass/trunk/gui/wxpython/docs/wxGUI.html
===================================================================
--- grass/trunk/gui/wxpython/docs/wxGUI.html 2017-01-29 02:35:13 UTC (rev 70448)
+++ grass/trunk/gui/wxpython/docs/wxGUI.html 2017-01-29 02:57:21 UTC (rev 70449)
@@ -573,6 +573,8 @@
<dd>Switch 'Layers' and 'Console' tab</dd>
<dt>Ctrl+Q</dt>
<dd>Quit</dd>
+ <dt>Ctrl+R</dt>
+ <dd>Render map in all map displays</dd>
</dl>
<b>Workspace</b>
Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py 2017-01-29 02:35:13 UTC (rev 70448)
+++ grass/trunk/gui/wxpython/lmgr/frame.py 2017-01-29 02:57:21 UTC (rev 70449)
@@ -840,6 +840,10 @@
return mlist
+ def GetAllMapDisplays(self):
+ """Get all (open) map displays"""
+ return self.GetMapDisplay(onlyCurrent=False)
+
def GetLogWindow(self):
"""Gets console for command output and messages"""
return self._gconsole
@@ -1686,6 +1690,10 @@
for display in self.GetMapDisplay(onlyCurrent=False):
display.OnCloseWindow(event)
+ def OnRenderAllMapDisplays(self, event=None):
+ for display in self.GetAllMapDisplays():
+ display.OnRender(None)
+
def OnRenameDisplay(self, event):
"""Change Map Display name"""
name = self.notebookLayers.GetPageText(self.currentPageNum)
Modified: grass/trunk/gui/wxpython/xml/toolboxes.xml
===================================================================
--- grass/trunk/gui/wxpython/xml/toolboxes.xml 2017-01-29 02:35:13 UTC (rev 70448)
+++ grass/trunk/gui/wxpython/xml/toolboxes.xml 2017-01-29 02:57:21 UTC (rev 70449)
@@ -228,6 +228,7 @@
<wxgui-item name="AddWebServiceLayer"/>
<separator/>
<wxgui-item name="NewMapDisplayWindow"/>
+ <wxgui-item name="RenderAllMapDisplays"/>
<wxgui-item name="CloseCurrentMapDisplayWindow"/>
<wxgui-item name="CloseAllOpenMapDisplayWindows"/>
</items>
Modified: grass/trunk/gui/wxpython/xml/wxgui_items.xml
===================================================================
--- grass/trunk/gui/wxpython/xml/wxgui_items.xml 2017-01-29 02:35:13 UTC (rev 70448)
+++ grass/trunk/gui/wxpython/xml/wxgui_items.xml 2017-01-29 02:57:21 UTC (rev 70449)
@@ -194,6 +194,12 @@
<handler>OnNewDisplay</handler>
<description>Open new map display window</description>
</wxgui-item>
+ <wxgui-item name="RenderAllMapDisplays">
+ <label>Render all map displays</label>
+ <handler>OnRenderAllMapDisplays</handler>
+ <description>Re-render maps in all open map display windows</description>
+ <shortcut>Ctrl+R</shortcut>
+ </wxgui-item>
<wxgui-item name="CloseCurrentMapDisplayWindow">
<label>Close current map display window</label>
<handler>OnDisplayClose</handler>
More information about the grass-commit
mailing list