[GRASS-SVN] r46793 - in grass/trunk/gui/wxpython: gui_modules xml
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jun 26 14:30:13 EDT 2011
Author: martinl
Date: 2011-06-26 11:30:12 -0700 (Sun, 26 Jun 2011)
New Revision: 46793
Modified:
grass/trunk/gui/wxpython/gui_modules/psmap.py
grass/trunk/gui/wxpython/xml/menudata.xml
grass/trunk/gui/wxpython/xml/menudata_psmap.xml
Log:
wx.psmap: simplify related menu items
Modified: grass/trunk/gui/wxpython/gui_modules/psmap.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/psmap.py 2011-06-26 17:23:31 UTC (rev 46792)
+++ grass/trunk/gui/wxpython/gui_modules/psmap.py 2011-06-26 18:30:12 UTC (rev 46793)
@@ -40,6 +40,7 @@
from toolbars import PsMapToolbar
from icon import Icons, MetaIcon, iconSet
from gcmd import RunCommand, GError, GMessage
+from menuform import GUI
from psmap_dialogs import *
import wx
@@ -210,7 +211,11 @@
if filename:
self.PSFile(filename)
-
+ def OnPsMapDialog(self, event):
+ """!Launch ps.map dialog
+ """
+ GUI(parent = self).ParseCommand(cmd = ['ps.map'])
+
def OnPDFFile(self, event):
"""!Generate PDF from PS with ps2pdf if available"""
try:
Modified: grass/trunk/gui/wxpython/xml/menudata.xml
===================================================================
--- grass/trunk/gui/wxpython/xml/menudata.xml 2011-06-26 17:23:31 UTC (rev 46792)
+++ grass/trunk/gui/wxpython/xml/menudata.xml 2011-06-26 18:30:12 UTC (rev 46793)
@@ -730,13 +730,6 @@
<handler>OnPsMap</handler>
<command>ps.map</command>
</menuitem>
- <menuitem>
- <label>Postscript plot</label>
- <help>Produces hardcopy PostScript map output.</help>
- <keywords>postscript,map,printing</keywords>
- <handler>OnMenuCmd</handler>
- <command>ps.map</command>
- </menuitem>
<separator />
<menu>
<label>GSoC testing</label>
Modified: grass/trunk/gui/wxpython/xml/menudata_psmap.xml
===================================================================
--- grass/trunk/gui/wxpython/xml/menudata_psmap.xml 2011-06-26 17:23:31 UTC (rev 46792)
+++ grass/trunk/gui/wxpython/xml/menudata_psmap.xml 2011-06-26 18:30:12 UTC (rev 46793)
@@ -36,6 +36,12 @@
</menuitem>
<separator/>
<menuitem>
+ <label>Launch ps.map dialog</label>
+ <help>Launch ps.map dialog</help>
+ <handler>OnPsMapDialog</handler>
+ </menuitem>
+ <separator/>
+ <menuitem>
<label>Quit</label>
<help>Close Hardcopy Map Output Utility</help>
<handler>OnCloseWindow</handler>
More information about the grass-commit
mailing list