Переглянути джерело

wxGUI/xml: update GUI tools toolbox items (#1050)

Tomas Zigo 4 роки тому
батько
коміт
091eb21936

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

@@ -591,6 +591,13 @@ class GMFrame(wx.Frame):
         win.CentreOnScreen()
         win.CentreOnScreen()
         win.Show()
         win.Show()
 
 
+    def OnDataCatalog(self, event=None, cmd=None):
+        """Launch Data Catalog"""
+        from datacatalog.frame import DataCatalogFrame
+        win = DataCatalogFrame(parent=self, giface=self._giface)
+        win.CentreOnScreen()
+        win.Show()
+
     def OnDone(self, event):
     def OnDone(self, event):
         """Command execution finished"""
         """Command execution finished"""
         if hasattr(self, "model"):
         if hasattr(self, "model"):

+ 10 - 6
gui/wxpython/xml/toolboxes.xml

@@ -761,8 +761,8 @@
         <label>Raster series aggregation</label>
         <label>Raster series aggregation</label>
       </module-item>
       </module-item>
       <module-item name="r.series.accumulate">
       <module-item name="r.series.accumulate">
-        <label>Raster series accumulation</label> 
-      </module-item> 
+        <label>Raster series accumulation</label>
+      </module-item>
       <separator/>
       <separator/>
       <module-item name="r.stats.zonal">
       <module-item name="r.stats.zonal">
         <label>Statistical overlay</label>
         <label>Statistical overlay</label>
@@ -1067,9 +1067,9 @@
         <label>Regularized spline tension</label>
         <label>Regularized spline tension</label>
       </module-item>
       </module-item>
       <separator/>
       <separator/>
-      <module-item name="r.series.interp"> 
-        <label>Raster series interpolation</label> 
-      </module-item> 
+      <module-item name="r.series.interp">
+        <label>Raster series interpolation</label>
+      </module-item>
       <separator/>
       <separator/>
       <module-item name="r.fillnulls">
       <module-item name="r.fillnulls">
         <label>Fill NULL cells</label>
         <label>Fill NULL cells</label>
@@ -2006,13 +2006,17 @@
         <label>Attribute table manager</label>
         <label>Attribute table manager</label>
       </module-item>
       </module-item>
       <wxgui-item name="CartographicComposer"/>
       <wxgui-item name="CartographicComposer"/>
+      <wxgui-item name="CorrectsScanningDistortions"/>
+      <wxgui-item name="DataCatalog"/>
       <wxgui-item name="Georectify"/>
       <wxgui-item name="Georectify"/>
       <wxgui-item name="GraphicalModeler"/>
       <wxgui-item name="GraphicalModeler"/>
       <wxgui-item name="InteractiveInputForSupervisedClassification"/>
       <wxgui-item name="InteractiveInputForSupervisedClassification"/>
+      <wxgui-item name="ManagingGCPsfor3DCorrection"/>
       <wxgui-item name="MapSwipe"/>
       <wxgui-item name="MapSwipe"/>
+      <wxgui-item name="SetUpSamplingAndAnalysisFramework"/>
       <wxgui-item name="TplotTool"/>
       <wxgui-item name="TplotTool"/>
       <wxgui-item name="TimelineTool"/>
       <wxgui-item name="TimelineTool"/>
+      <wxgui-item name="VDigit"/>
     </items>
     </items>
   </toolbox>
   </toolbox>
 </toolboxes>
 </toolboxes>
-

+ 14 - 0
gui/wxpython/xml/wxgui_items.xml

@@ -346,6 +346,7 @@
   <wxgui-item name="SetUpSamplingAndAnalysisFramework">
   <wxgui-item name="SetUpSamplingAndAnalysisFramework">
     <label>Set up sampling and analysis framework</label>
     <label>Set up sampling and analysis framework</label>
     <handler>OnRLiSetup</handler>
     <handler>OnRLiSetup</handler>
+    <related-module>g.gui.rlisetup</related-module>
     <description>Configuration editor for r.li.'index'</description>
     <description>Configuration editor for r.li.'index'</description>
     <keywords>raster,landscape structure analysis</keywords>
     <keywords>raster,landscape structure analysis</keywords>
   </wxgui-item>
   </wxgui-item>
@@ -399,4 +400,17 @@
     <description>Corrects scanning distortions of a scanned aerial photo.</description>
     <description>Corrects scanning distortions of a scanned aerial photo.</description>
     <keywords>general,gui,imagery,georectification,orthophoto</keywords>
     <keywords>general,gui,imagery,georectification,orthophoto</keywords>
   </wxgui-item>
   </wxgui-item>
+  <wxgui-item name="DataCatalog">
+    <label>Data Catalog</label>
+    <handler>OnDataCatalog</handler>
+    <related-module>g.gui.datacatalog</related-module>
+    <description>Launch Data Catalog.</description>
+    <keywords>general,gui,data,catalog</keywords>
+  </wxgui-item>
+  <wxgui-item name="VDigit">
+    <label>Vector digitizer</label>
+    <command>g.gui.vdigit</command>
+    <description>Interactive editing and digitization of vector maps.</description>
+    <keywords>general,gui,vector,editing,digitizer</keywords>
+  </wxgui-item>
 </wxgui-items>
 </wxgui-items>