[GRASS-SVN] r52639 - in grass/trunk/gui/wxpython: docs swipe

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 12 09:47:10 PDT 2012


Author: annakrat
Date: 2012-08-12 09:47:09 -0700 (Sun, 12 Aug 2012)
New Revision: 52639

Added:
   grass/trunk/gui/wxpython/docs/wxGUI.MapSwipe.html
   grass/trunk/gui/wxpython/docs/wxGUI_map_swipe.jpg
Modified:
   grass/trunk/gui/wxpython/swipe/frame.py
   grass/trunk/gui/wxpython/swipe/toolbars.py
Log:
wxGUI/swipe: added manual page

Added: grass/trunk/gui/wxpython/docs/wxGUI.MapSwipe.html
===================================================================
--- grass/trunk/gui/wxpython/docs/wxGUI.MapSwipe.html	                        (rev 0)
+++ grass/trunk/gui/wxpython/docs/wxGUI.MapSwipe.html	2012-08-12 16:47:09 UTC (rev 52639)
@@ -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>


Property changes on: grass/trunk/gui/wxpython/docs/wxGUI.MapSwipe.html
___________________________________________________________________
Added: svn:keywords:
   + Author Date Id
Added: svn:mime-type
   + text/html
Added: svn:eol-style:
   + native

Added: grass/trunk/gui/wxpython/docs/wxGUI_map_swipe.jpg
===================================================================
(Binary files differ)


Property changes on: grass/trunk/gui/wxpython/docs/wxGUI_map_swipe.jpg
___________________________________________________________________
Added: svn:mime-type:
   + image/jpeg
Added: svn:mime-type
   + application/octet-stream

Modified: grass/trunk/gui/wxpython/swipe/frame.py
===================================================================
--- grass/trunk/gui/wxpython/swipe/frame.py	2012-08-12 14:44:57 UTC (rev 52638)
+++ grass/trunk/gui/wxpython/swipe/frame.py	2012-08-12 16:47:09 UTC (rev 52639)
@@ -9,6 +9,7 @@
 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 @@
 
         return True
 
+    def OnHelp(self, event):
+        RunCommand('g.manual',
+                   quiet = True,
+                   entry = 'wxGUI.MapSwipe')
+
     def OnCloseWindow(self, event):
         self.Destroy()
 

Modified: grass/trunk/gui/wxpython/swipe/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/swipe/toolbars.py	2012-08-12 14:44:57 UTC (rev 52638)
+++ grass/trunk/gui/wxpython/swipe/toolbars.py	2012-08-12 16:47:09 UTC (rev 52639)
@@ -138,6 +138,8 @@
         
     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),
                                      ))



More information about the grass-commit mailing list