Просмотр исходного кода

add rlisetup to gui

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54046 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 12 лет назад
Родитель
Сommit
bbf2a946ee
2 измененных файлов с 9 добавлено и 2 удалено
  1. 8 0
      gui/wxpython/lmgr/frame.py
  2. 1 2
      gui/wxpython/xml/menudata.xml

+ 8 - 0
gui/wxpython/lmgr/frame.py

@@ -73,6 +73,7 @@ from gui_core.forms        import GUI
 from gcp.manager           import GCPWizard
 from nviz.main             import haveNviz
 from mapswipe.frame        import SwipeMapFrame
+from rlisetup.frame        import RLiSetupFrame
 
 class GMFrame(wx.Frame):
     """!Layer Manager frame with notebook widget for controlling GRASS
@@ -447,6 +448,13 @@ class GMFrame(wx.Frame):
         win.CentreOnScreen()
         win.Show()
 
+    def OnRLiSetup(self, event):
+        """!Launch r.li Setup"""
+        win = RLiSetupFrame(parent = self)
+        win.CentreOnScreen()
+        
+        win.Show()
+
     def OnDone(self, cmd, returncode):
         """Command execution finised"""
         if hasattr(self, "model"):

+ 1 - 2
gui/wxpython/xml/menudata.xml

@@ -1547,8 +1547,7 @@
               <label>Set up sampling and analysis framework</label>
               <help>Configuration editor for r.li.'index'</help>
               <keywords>raster,landscape structure analysis</keywords>
-              <handler>OnMenuCmd</handler>
-              <command>r.li.setup</command>
+              <handler>OnRLiSetup</handler>
             </menuitem>
             <separator />
             <menuitem>