[GRASS-SVN] r41383 - grass/trunk/vector/v.db.connect

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 11 16:51:28 EST 2010


Author: martinl
Date: 2010-03-11 16:51:26 -0500 (Thu, 11 Mar 2010)
New Revision: 41383

Modified:
   grass/trunk/vector/v.db.connect/main.c
Log:
v.db.connect: more GUI sections


Modified: grass/trunk/vector/v.db.connect/main.c
===================================================================
--- grass/trunk/vector/v.db.connect/main.c	2010-03-11 20:15:13 UTC (rev 41382)
+++ grass/trunk/vector/v.db.connect/main.c	2010-03-11 21:51:26 UTC (rev 41383)
@@ -7,12 +7,11 @@
  *               
  * PURPOSE:      sets/prints DB connection for a given vector map
  *               
- * COPYRIGHT:    (C) 2002-2009 by the GRASS Development Team
+ * COPYRIGHT:    (C) 2002-2010 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.
+ *               This program is free software under the GNU General
+ *               Public License (>=v2).  Read the file COPYING that
+ *               comes with GRASS for details.
  *
  * TODO: - fix -o flag (needs fix in Vect lib)
  *
@@ -58,9 +57,11 @@
     dbdriver = G_define_standard_option(G_OPT_DB_DRIVER);
     dbdriver->options = db_list_drivers();
     dbdriver->answer = G_store(db_get_default_driver_name());
+    dbdriver->guisection = _("Settings");
 
     dbdatabase = G_define_standard_option(G_OPT_DB_DATABASE);
     dbdatabase->answer = G_store(db_get_default_database_name());
+    dbdatabase->guisection = _("Settings");
 
     dbtable = G_define_standard_option(G_OPT_DB_TABLE);
 
@@ -75,10 +76,13 @@
     field_opt->gisprompt = "new_layer,layer,layer";
 
     sep_opt = G_define_standard_option(G_OPT_F_SEP);
+    sep_opt->description = _("Field separator for shell script style output");
+    sep_opt->guisection = _("Print");
 
     print = G_define_flag();
     print->key = 'p';
     print->description = _("Print all map connection parameters and exit");
+    print->guisection = _("Print");
 
     shell_print = G_define_flag();
     shell_print->key = 'g';
@@ -86,12 +90,14 @@
 			   "in shell script style");
     shell_print->description =
 	_("Format: layer[/layer name] table key database driver");
+    shell_print->guisection = _("Print");
 
     columns = G_define_flag();
     columns->key = 'c';
     columns->description =
 	_("Print types/names of table columns for specified "
 	  "layer and exit");
+    columns->guisection = _("Print");
 
     overwrite = G_define_flag();
     overwrite->key = 'o';



More information about the grass-commit mailing list