소스 검색

wx.psmap: simplify related menu items

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46793 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 년 전
부모
커밋
753c6dd32e
3개의 변경된 파일12개의 추가작업 그리고 8개의 파일을 삭제
  1. 6 1
      gui/wxpython/gui_modules/psmap.py
  2. 0 7
      gui/wxpython/xml/menudata.xml
  3. 6 0
      gui/wxpython/xml/menudata_psmap.xml

+ 6 - 1
gui/wxpython/gui_modules/psmap.py

@@ -40,6 +40,7 @@ from   menudata   import PsMapData
 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 @@ class PsMapFrame(wx.Frame):
         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:

+ 0 - 7
gui/wxpython/xml/menudata.xml

@@ -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>

+ 6 - 0
gui/wxpython/xml/menudata_psmap.xml

@@ -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>