瀏覽代碼

add g.gui.dbmgr (Attribute Table Manager)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54239 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父節點
當前提交
4fbc1ca25c

+ 1 - 1
gui/wxpython/Makefile

@@ -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

+ 1 - 0
gui/wxpython/animation/g.gui.animation.html

@@ -54,6 +54,7 @@ To display 3D view animation follow these steps:
 <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>,

+ 11 - 1
gui/wxpython/docs/wxGUI.Attribute_Table_Manager.html

@@ -44,11 +44,21 @@
 </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>
 
-<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>
 Jachym Cepicky
 

+ 3 - 34
gui/wxpython/dbmgr/manager.py

@@ -9,10 +9,6 @@ Tutorial' on wxPython WIKI pages.
 It also uses some functions at
 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/426407
 
-@code
-python dbm.py vector@mapset
-@endcode
-
 List of classes:
  - manager::AttributeManager
 
@@ -23,19 +19,18 @@ This program is free software under the GNU General Public License
 
 @author Jachym Cepicky <jachym.cepicky gmail.com>
 @author Martin Landa <landa.martin gmail.com>
-@author Refactoring by Stepan Turek <stepan.turek seznam.cz> (GSoC 2012, mentor: Martin Landa)"""
+@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 @@ class AttributeManager(wx.Frame, DbMgrBase):
         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()

+ 2 - 1
gui/wxpython/docs/wxGUI.Components.html

@@ -5,7 +5,8 @@ List of <em><a href="wxGUI.html">wxGUI</a></em> components:
 
 <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>

+ 2 - 2
gui/wxpython/docs/wxGUI.html

@@ -267,7 +267,7 @@ d.text text=Population\ density
   
   <dt><img src="icons/table.png" alt="icon">&nbsp;
     <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">&nbsp;
     <em>Import raster or vector data</em></dt>
@@ -637,7 +637,7 @@ wxGUI Tutorial</a>.
 
 <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>

+ 1 - 0
gui/wxpython/gmodeler/g.gui.gmodeler.html

@@ -43,6 +43,7 @@ The modeler currently allows to:
 <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>

+ 1 - 0
gui/wxpython/mapswipe/g.gui.mapswipe.html

@@ -44,6 +44,7 @@ Source: <a href="http://earthobservatory.nasa.gov/NaturalHazards/view.php?id=496
 <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>

+ 1 - 0
gui/wxpython/psmap/g.gui.psmap.html

@@ -199,6 +199,7 @@ See also <a href="http://grass.osgeo.org/wiki/WxGUI_Cartographic_Composer">wiki<
 <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>

+ 1 - 0
gui/wxpython/rlisetup/g.gui.rlisetup.html

@@ -17,6 +17,7 @@ for <em>r.li</em> modules.
 <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>