ソースを参照

wxGUI/swipe: added manual page

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52639 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 年 前
コミット
4f13742008

+ 46 - 0
gui/wxpython/docs/wxGUI.MapSwipe.html

@@ -0,0 +1,46 @@
+<!-- meta page description: wxGUI Map Swipe -->
+<!-- meta page index: wxGUI -->
+<h2>DESCRIPTION</h2>
+
+<p>
+The <b>Map Swipe</b> is
+a <em><a href="wxGUI.html">wxGUI</a></em> component which allows the
+user to interactively compare two raster maps of the same area
+by revealing different parts of the raster maps.
+It is useful e.g. for comparing raster maps from different time periods.
+Map Swipe can be launched
+from the menu <tt>File -> Map Swipe</tt>.
+
+<p>
+Map Swipe allows to:
+
+<ul>
+  <li>switch rientation of the swipe line (horizontal or vertical)</li>
+  <li>zooming, panning</li>
+  <li>automatically load maps when opening Map Swipe with two selected raster maps in Layer Manager</li>
+</ul>
+
+<center>
+<br>
+<img src="wxGUI_map_swipe.jpg" border="1" alt="screenshot">
+<br><br>
+</center>
+
+<h2>SEE ALSO</h2>
+
+<em>
+  <a href="wxGUI.html">wxGUI</a><br>
+  <a href="wxGUI.Components.html">wxGUI components</a>
+</em>
+
+<p>
+See also
+user <a href="http://grass.osgeo.org/wiki/WxGUI_Map_Swipe">wiki</a> page.
+
+<h2>AUTHOR</h2>
+
+Anna Kratochvilova,
+<a href="http://www.cvut.cz">Czech Technical University in Prague</a>, Czech Republic
+
+<p>
+<i>$Date: 2012-03-07 13:21:57 +0100 (Wed, 07 Mar 2012) $</i>

BIN
gui/wxpython/docs/wxGUI_map_swipe.jpg


+ 6 - 0
gui/wxpython/swipe/frame.py

@@ -9,6 +9,7 @@ from gui_core.mapdisp   import DoubleMapFrame
 from core.render        import Map
 from mapdisp            import statusbar as sb
 from core.debug         import Debug
+from core.gcmd          import RunCommand
 from mapdisp.statusbar  import EVT_AUTO_RENDER
 
 from swipe.toolbars  import SwipeMapToolbar, SwipeMainToolbar, SwipeMiscToolbar
@@ -357,6 +358,11 @@ class SwipeMapFrame(DoubleMapFrame):
 
         return True
 
+    def OnHelp(self, event):
+        RunCommand('g.manual',
+                   quiet = True,
+                   entry = 'wxGUI.MapSwipe')
+
     def OnCloseWindow(self, event):
         self.Destroy()
 

+ 3 - 1
gui/wxpython/swipe/toolbars.py

@@ -138,6 +138,8 @@ class SwipeMiscToolbar(BaseToolbar):
         
     def _toolbarData(self):
         """!Toolbar data"""
-        return self._getToolbarData((("quit", swipeIcons['quit'],
+        return self._getToolbarData((("help", BaseIcons['help'],
+                                      self.parent.OnHelp),
+                                    ("quit", swipeIcons['quit'],
                                       self.parent.OnCloseWindow),
                                      ))