[GRASS-SVN] r42016 - grass-addons/gui/wxpython/data_catalog
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 24 07:54:58 EDT 2010
Author: rashadkm
Date: 2010-04-24 07:54:57 -0400 (Sat, 24 Apr 2010)
New Revision: 42016
Modified:
grass-addons/gui/wxpython/data_catalog/LayerTree.py
grass-addons/gui/wxpython/data_catalog/mapdisplay.py
Log:
added layer select and deselect
Modified: grass-addons/gui/wxpython/data_catalog/LayerTree.py
===================================================================
--- grass-addons/gui/wxpython/data_catalog/LayerTree.py 2010-04-24 11:19:54 UTC (rev 42015)
+++ grass-addons/gui/wxpython/data_catalog/LayerTree.py 2010-04-24 11:54:57 UTC (rev 42016)
@@ -1,3 +1,24 @@
+"""
+ at package LayerTree.py
+
+GRASS LayerTree.
+
+ at breif A MapTree to display maps based on the selected location and mapset
+MapTree provides functionss such as view,copy,rename and delete mapset
+
+Classes:
+ - DataCatalog
+ - CatalogApp
+
+(C) 2007 by the GRASS Development Team
+This program is free software under the GNU General Public
+License (>=v2). Read the file COPYING that comes with GRASS
+for details.
+
+ at author Mohammed Rashad K.M <rashadkm at gmail dot com>
+
+"""
+
import os
import sys
import wx
Modified: grass-addons/gui/wxpython/data_catalog/mapdisplay.py
===================================================================
--- grass-addons/gui/wxpython/data_catalog/mapdisplay.py 2010-04-24 11:19:54 UTC (rev 42015)
+++ grass-addons/gui/wxpython/data_catalog/mapdisplay.py 2010-04-24 11:54:57 UTC (rev 42016)
@@ -5,14 +5,13 @@
management functions, and additional toolbars (vector digitizer, 3d
view).
-Can be used either from Layer Manager or as p.mon backend.
Classes:
+- Command
+- MapWindow
+- BufferedWindow
- MapFrame
-- MapApp
-Usage:
-python mapdisp.py monitor-identifier /path/to/command/file
(C) 2006-2009 by the GRASS Development Team
This program is free software under the GNU General Public
@@ -4574,47 +4573,4 @@
# end of class MapFrame
-class MapApp(wx.App):
- """
- MapApp class
- """
- def OnInit(self):
-
- wx.InitAllImageHandlers()
- if __name__ == "__main__":
- Map = render.Map() # instance of Map class to render GRASS display output to PPM file
- else:
- Map = None
-
- self.mapFrm = MapFrame(parent=None, id=wx.ID_ANY, Map=Map,
- size=globalvar.MAP_WINDOW_SIZE)
- #self.SetTopWindow(Map)
- self.mapFrm.Show()
-
- if __name__ == "__main__":
- # redraw map, if new command appears
- self.redraw = False
-
-
- return 1
-
-
-# end of class MapApp
-
-if __name__ == "__main__":
-
- ###### SET command variable
-
-
- title = "title"
- cmdfilename = "cmdfilename"
-
-
-
- gm_map = MapApp(0)
- # set title
- gm_map.mapFrm.SetTitle(_("GRASS GIS Map Display: " + title + " - Location: " + grass.gisenv()["LOCATION_NAME"]))
-
- gm_map.MainLoop()
- sys.exit(0)
More information about the grass-commit
mailing list