[GRASS-SVN] r54239 - in grass/trunk/gui/wxpython: . animation dbmgr docs gmodeler mapswipe psmap rlisetup

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 7 14:27:03 PST 2012


Author: martinl
Date: 2012-12-07 14:27:03 -0800 (Fri, 07 Dec 2012)
New Revision: 54239

Added:
   grass/trunk/gui/wxpython/dbmgr/g.gui.dbmgr.html
Removed:
   grass/trunk/gui/wxpython/docs/wxGUI.Attribute_Table_Manager.html
Modified:
   grass/trunk/gui/wxpython/Makefile
   grass/trunk/gui/wxpython/animation/g.gui.animation.html
   grass/trunk/gui/wxpython/dbmgr/manager.py
   grass/trunk/gui/wxpython/docs/wxGUI.Components.html
   grass/trunk/gui/wxpython/docs/wxGUI.html
   grass/trunk/gui/wxpython/gmodeler/g.gui.gmodeler.html
   grass/trunk/gui/wxpython/mapswipe/g.gui.mapswipe.html
   grass/trunk/gui/wxpython/psmap/g.gui.psmap.html
   grass/trunk/gui/wxpython/rlisetup/g.gui.rlisetup.html
Log:
add g.gui.dbmgr (Attribute Table Manager)


Modified: grass/trunk/gui/wxpython/Makefile
===================================================================
--- grass/trunk/gui/wxpython/Makefile	2012-12-07 21:53:25 UTC (rev 54238)
+++ grass/trunk/gui/wxpython/Makefile	2012-12-07 22:27:03 UTC (rev 54239)
@@ -1,6 +1,6 @@
 MODULE_TOPDIR = ../..
 
-SUBDIRS = docs animation mapswipe gmodeler rlisetup psmap
+SUBDIRS = docs animation mapswipe gmodeler rlisetup psmap dbmgr
 EXTRA_CLEAN_FILES = menustrings.py build_ext.pyc
 
 include $(MODULE_TOPDIR)/include/Make/Dir.make

Modified: grass/trunk/gui/wxpython/animation/g.gui.animation.html
===================================================================
--- grass/trunk/gui/wxpython/animation/g.gui.animation.html	2012-12-07 21:53:25 UTC (rev 54238)
+++ grass/trunk/gui/wxpython/animation/g.gui.animation.html	2012-12-07 22:27:03 UTC (rev 54239)
@@ -54,6 +54,7 @@
 <p>
 <em>
   <a href="g.gui.html">g.gui</a>,
+  <a href="g.gui.dbmgr.html">g.gui.dbmgr</a>,
   <a href="g.gui.gmodeler.html">g.gui.gmodeler</a>,
   <a href="g.gui.mapswipe.html">g.gui.mapswipe</a>,
   <a href="g.gui.psmap.html">g.gui.psmap</a>,

Copied: grass/trunk/gui/wxpython/dbmgr/g.gui.dbmgr.html (from rev 54237, grass/trunk/gui/wxpython/docs/wxGUI.Attribute_Table_Manager.html)
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/g.gui.dbmgr.html	                        (rev 0)
+++ grass/trunk/gui/wxpython/dbmgr/g.gui.dbmgr.html	2012-12-07 22:27:03 UTC (rev 54239)
@@ -0,0 +1,66 @@
+<!-- meta page description: wxGUI Attribute Table Manager -->
+<!-- meta page index: wxGUI -->
+<h2>DESCRIPTION</h2>
+
+<em>Attribute table manager</em> allows to:
+
+<ul>
+  <li>Browse attribute data of vector map, perform SQL select
+  statements</li>
+  <li>Modify attribute data, insert new records to attribute table,
+  delete existing records</li>
+  <li>Highlight selected items in the Map Display Window</li>
+  <li>Extract selected items into a new vector map</li>
+  <li>Modify attribute table - add, drop, rename columns</li>
+  <li>Modify vector map DB connection settings - add, remove or
+  modify layers</li>
+</ul>
+
+<h2>SEE ALSO</h2>
+
+<em>
+  <a href="wxGUI.html">wxGUI</a><br>
+  <a href="wxGUI.Components.html">wxGUI components</a>
+</em>
+
+<p>
+<em>
+<a href="db.columns.html">db.columns</a>,
+<a href="db.connect.html">db.connect</a>,
+<a href="db.describe.html">db.describe</a>,
+<a href="db.drivers.html">db.drivers</a>,
+<a href="db.execute.html">db.execute</a>,
+<a href="db.select.html">db.select</a>,
+<a href="db.tables.html">db.tables</a>
+</em>
+
+<p>
+<em>
+<a href="v.db.addcolumn.html">v.db.addcolumn</a>,
+<a href="v.db.connect.html">v.db.connect</a>,
+<a href="v.db.dropcolumn.html">v.db.dropcolumn</a>,
+<a href="v.db.renamecolumn.html">v.db.renamecolumn</a>,
+<a href="v.what.html">v.what</a>
+</em>
+
+<p>
+<em>
+  <a href="g.gui.html">g.gui</a>,
+  <a href="g.gui.animation.html">g.gui.animation</a>,
+  <a href="g.gui.gmodeler.html">g.gui.gmodeler</a>,
+  <a href="g.gui.mapswipe.html">g.gui.mapswipe</a>,
+  <a href="g.gui.psmap.html">g.gui.psmap</a>,
+  <a href="g.gui.rlisetup.html">g.gui.rlisetup</a>
+</em>
+
+<p>
+See also <a href="http://grass.osgeo.org/wiki/WxPython-based_GUI_for_GRASS#Attribute_table_manager">wiki</a> page.
+
+<h2>AUTHORS</h2>
+
+Martin Landa, <a href="http://www.fbk.eu">FBK-irst</a> (2007-2008), Trento, Italy, and <a href="http://www.cvut.cz">Czech Technical University in Prague</a>, Czech Republic<br>
+Michael Barton, Arizona State University, USA<br>
+Jachym Cepicky
+
+<p>
+<i>$Date$</i>

Modified: grass/trunk/gui/wxpython/dbmgr/manager.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/manager.py	2012-12-07 21:53:25 UTC (rev 54238)
+++ grass/trunk/gui/wxpython/dbmgr/manager.py	2012-12-07 22:27:03 UTC (rev 54239)
@@ -9,10 +9,6 @@
 It also uses some functions at
 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/426407
 
- at code
-python dbm.py vector at mapset
- at endcode
-
 List of classes:
  - manager::AttributeManager
 
@@ -23,19 +19,18 @@
 
 @author Jachym Cepicky <jachym.cepicky gmail.com>
 @author Martin Landa <landa.martin gmail.com>
- at author Refactoring by Stepan Turek <stepan.turek seznam.cz> (GSoC 2012, mentor: Martin Landa)"""
+ at author Refactoring by Stepan Turek <stepan.turek seznam.cz> (GSoC 2012, mentor: Martin Landa)
+"""
 
 import sys
 import os
 
-if __name__ == "__main__":
-    sys.path.append(os.path.join(os.getenv('GISBASE'), 'etc', 'gui', 'wxpython'))
-from core import globalvar
 import wx
 import wx.lib.flatnotebook    as FN
 
 import grass.script as grass
 
+from core             import globalvar
 from core.gcmd        import GMessage
 from core.debug       import Debug
 from dbmgr.base       import DbMgrBase
@@ -198,29 +193,3 @@
         DbMgrBase.UpdateDialog(self, layer = layer)
         # set current page selection
         self.notebook.SetSelectionByName('layers') 
-
-def main(argv = None):
-    import gettext
-    gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode = True)
-    
-    if argv is None:
-        argv = sys.argv
-    
-    if len(argv) != 2:
-        print >> sys.stderr, __doc__
-        sys.exit()
-    
-    #some applications might require image handlers
-    wx.InitAllImageHandlers()
-    
-    app = wx.PySimpleApp()
-    f = AttributeManager(parent = None, id = wx.ID_ANY,
-                         title = "%s - <%s>" % (_("GRASS GIS Attribute Table Manager"),
-                                              argv[1]),
-                         size = (900,600), vectorName = argv[1])
-    f.Show()
-    
-    app.MainLoop()
-    
-if __name__ == '__main__':
-    main()

Deleted: grass/trunk/gui/wxpython/docs/wxGUI.Attribute_Table_Manager.html
===================================================================
--- grass/trunk/gui/wxpython/docs/wxGUI.Attribute_Table_Manager.html	2012-12-07 21:53:25 UTC (rev 54238)
+++ grass/trunk/gui/wxpython/docs/wxGUI.Attribute_Table_Manager.html	2012-12-07 22:27:03 UTC (rev 54239)
@@ -1,56 +0,0 @@
-<!-- meta page description: wxGUI Attribute Table Manager -->
-<!-- meta page index: wxGUI -->
-<h2>DESCRIPTION</h2>
-
-<em>Attribute table manager</em> allows to:
-
-<ul>
-  <li>Browse attribute data of vector map, perform SQL select
-  statements</li>
-  <li>Modify attribute data, insert new records to attribute table,
-  delete existing records</li>
-  <li>Highlight selected items in the Map Display Window</li>
-  <li>Extract selected items into a new vector map</li>
-  <li>Modify attribute table - add, drop, rename columns</li>
-  <li>Modify vector map DB connection settings - add, remove or
-  modify layers</li>
-</ul>
-
-<h2>SEE ALSO</h2>
-
-<em>
-  <a href="wxGUI.html">wxGUI</a><br>
-  <a href="wxGUI.Components.html">wxGUI components</a>
-</em>
-
-<p>
-<em>
-<a href="db.columns.html">db.columns</a>,
-<a href="db.connect.html">db.connect</a>,
-<a href="db.describe.html">db.describe</a>,
-<a href="db.drivers.html">db.drivers</a>,
-<a href="db.execute.html">db.execute</a>,
-<a href="db.select.html">db.select</a>,
-<a href="db.tables.html">db.tables</a>
-</em>
-
-<p>
-<em>
-<a href="v.db.addcolumn.html">v.db.addcolumn</a>,
-<a href="v.db.connect.html">v.db.connect</a>,
-<a href="v.db.dropcolumn.html">v.db.dropcolumn</a>,
-<a href="v.db.renamecolumn.html">v.db.renamecolumn</a>,
-<a href="v.what.html">v.what</a>
-</em>
-
-<p>
-See also <a href="http://grass.osgeo.org/wiki/WxPython-based_GUI_for_GRASS#Attribute_table_manager">wiki</a> page.
-
-<h2>AUTHORS</h2>
-
-<a href="http://geo.fsv.cvut.cz/gwiki/Landa">Martin Landa</a>, <a href="http://www.fbk.eu">FBK-irst</a> (2007-2008), Trento, Italy, and <a href="http://www.cvut.cz">Czech Technical University in Prague</a>, Czech Republic<br>
-Michael Barton, Arizona State University, USA<br>
-Jachym Cepicky
-
-<p>
-<i>$Date$</i>

Modified: grass/trunk/gui/wxpython/docs/wxGUI.Components.html
===================================================================
--- grass/trunk/gui/wxpython/docs/wxGUI.Components.html	2012-12-07 21:53:25 UTC (rev 54238)
+++ grass/trunk/gui/wxpython/docs/wxGUI.Components.html	2012-12-07 22:27:03 UTC (rev 54239)
@@ -5,7 +5,8 @@
 
 <ul>
   <li><a href="wxGUI.Nviz.html">3D Viewer</a></li>
-  <li><a href="wxGUI.Attribute_Table_Manager.html">Attribute Table Manager</a></li>
+  <li><a href="wxGUI.dbmgr.html">Attribute Table Manager</a>
+    - <em><a href="g.gui.dbmgr.html">g.gui.dbmgr</a></em></li>
   <li><a href="wxGUI.psmap.html">Cartographic Composer</a>
     - <em><a href="g.gui.psmap.html">g.gui.psmap</a></em></li>
   <li><a href="wxGUI.gmodeler.html">Graphical Modeler</a>

Modified: grass/trunk/gui/wxpython/docs/wxGUI.html
===================================================================
--- grass/trunk/gui/wxpython/docs/wxGUI.html	2012-12-07 21:53:25 UTC (rev 54238)
+++ grass/trunk/gui/wxpython/docs/wxGUI.html	2012-12-07 22:27:03 UTC (rev 54239)
@@ -267,7 +267,7 @@
   
   <dt><img src="icons/table.png" alt="icon"> 
     <em>Show attribute table</em></dt>
-  <dd>Opens <em><a href="wxGUI.Attribute_Table_Manager.html">attribute table manager</a></em> for selected vector map.</dd>
+  <dd>Opens <em><a href="wxGUI.dbmgr.html">attribute table manager</a></em> for selected vector map.</dd>
   
   <dt><img src="icons/layer-open.png" alt="icon"> 
     <em>Import raster or vector data</em></dt>
@@ -637,7 +637,7 @@
 
 <h2>AUTHORS</h2>
 
-<a href="http://geo.fsv.cvut.cz/gwiki/Landa">Martin Landa</a>, <a href="http://www.fbk.eu">FBK-irst</a> (2007-2008), Trento, Italy, and <a href="http://www.cvut.cz">Czech Technical University in Prague</a>, Czech Republic<br>
+Martin Landa, <a href="http://www.fbk.eu">FBK-irst</a> (2007-2008), Trento, Italy, and <a href="http://www.cvut.cz">Czech Technical University in Prague</a>, Czech Republic<br>
 Michael Barton, Arizona State University, USA<br>
 Daniel Calvelo Aros<br>
 Jachym Cepicky<br>

Modified: grass/trunk/gui/wxpython/gmodeler/g.gui.gmodeler.html
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/g.gui.gmodeler.html	2012-12-07 21:53:25 UTC (rev 54238)
+++ grass/trunk/gui/wxpython/gmodeler/g.gui.gmodeler.html	2012-12-07 22:27:03 UTC (rev 54239)
@@ -43,6 +43,7 @@
 <em>
   <a href="g.gui.html">g.gui</a>,
   <a href="g.gui.animation.html">g.gui.animation</a>,
+  <a href="g.gui.dbmgr.html">g.gui.dbmgr</a>,
   <a href="g.gui.mapswipe.html">g.gui.mapswipe</a>,
   <a href="g.gui.psmap.html">g.gui.psmap</a>,
   <a href="g.gui.rlisetup.html">g.gui.rlisetup</a>

Modified: grass/trunk/gui/wxpython/mapswipe/g.gui.mapswipe.html
===================================================================
--- grass/trunk/gui/wxpython/mapswipe/g.gui.mapswipe.html	2012-12-07 21:53:25 UTC (rev 54238)
+++ grass/trunk/gui/wxpython/mapswipe/g.gui.mapswipe.html	2012-12-07 22:27:03 UTC (rev 54239)
@@ -44,6 +44,7 @@
 <em>
   <a href="g.gui.html">g.gui</a>,
   <a href="g.gui.animation.html">g.gui.animation</a>,
+  <a href="g.gui.dbmgr.html">g.gui.dbmgr</a>,
   <a href="g.gui.gmodeler.html">g.gui.gmodeler</a>,
   <a href="g.gui.psmap.html">g.gui.psmap</a>,
   <a href="g.gui.rlisetup.html">g.gui.rlisetup</a>

Modified: grass/trunk/gui/wxpython/psmap/g.gui.psmap.html
===================================================================
--- grass/trunk/gui/wxpython/psmap/g.gui.psmap.html	2012-12-07 21:53:25 UTC (rev 54238)
+++ grass/trunk/gui/wxpython/psmap/g.gui.psmap.html	2012-12-07 22:27:03 UTC (rev 54239)
@@ -199,6 +199,7 @@
 <em>
   <a href="g.gui.html">g.gui</a>,
   <a href="g.gui.animation.html">g.gui.animation</a>,
+  <a href="g.gui.dbmgr.html">g.gui.dbmgr</a>,
   <a href="g.gui.gmodeler.html">g.gui.gmodeler</a>,
   <a href="g.gui.mapswipe.html">g.gui.mapswipe</a>,
   <a href="g.gui.rlisetup.html">g.gui.rlisetup</a>

Modified: grass/trunk/gui/wxpython/rlisetup/g.gui.rlisetup.html
===================================================================
--- grass/trunk/gui/wxpython/rlisetup/g.gui.rlisetup.html	2012-12-07 21:53:25 UTC (rev 54238)
+++ grass/trunk/gui/wxpython/rlisetup/g.gui.rlisetup.html	2012-12-07 22:27:03 UTC (rev 54239)
@@ -17,6 +17,7 @@
 <em>
   <a href="g.gui.html">g.gui</a>,
   <a href="g.gui.animation.html">g.gui.animation</a>,
+  <a href="g.gui.dbmgr.html">g.gui.dbmgr</a>,
   <a href="g.gui.gmodeler.html">g.gui.gmodeler</a>,
   <a href="g.gui.mapswipe.html">g.gui.mapswipe</a>,
   <a href="g.gui.psmap.html">g.gui.psmap</a>



More information about the grass-commit mailing list