[GRASS-SVN] r54631 - grass/trunk/display/d.grid
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 14 14:52:40 PST 2013
Author: martinl
Date: 2013-01-14 14:52:39 -0800 (Mon, 14 Jan 2013)
New Revision: 54631
Modified:
grass/trunk/display/d.grid/main.c
Log:
d.grid: more guisection, use standardized options
Modified: grass/trunk/display/d.grid/main.c
===================================================================
--- grass/trunk/display/d.grid/main.c 2013-01-14 22:45:30 UTC (rev 54630)
+++ grass/trunk/display/d.grid/main.c 2013-01-14 22:52:39 UTC (rev 54631)
@@ -8,12 +8,11 @@
* PURPOSE: Draw the coordinate grid the user wants displayed on
* top of the current image
*
- * COPYRIGHT: (C) 1999-2008 by the GRASS Development Team
+ * COPYRIGHT: (C) 1999-2008, 2013 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.
*
**************************************************************/
@@ -59,14 +58,13 @@
opt2->key_desc = "value";
opt2->type = TYPE_STRING;
opt2->required = YES;
- opt2->label = _("Size of grid to be drawn (0: north-south resolution of the current region)");
- opt2->description = _("In map units or DDD:MM:SS format. "
+ opt2->label = _("Size of grid to be drawn (in map units)");
+ opt2->description = _("0 for north-south resolution of the current region. "
+ "In map units or DDD:MM:SS format. "
"Example: \"1000\" or \"0:10\"");
- opt3 = G_define_option();
+ opt3 = G_define_standard_option(G_OPT_M_COORDS);
opt3->key = "origin";
- opt3->type = TYPE_STRING;
- opt3->key_desc = "easting,northing";
opt3->answer = "0,0";
opt3->multiple = NO;
opt3->description = _("Lines of the grid pass through this coordinate");
@@ -109,24 +107,29 @@
geogrid->key = 'g';
geogrid->description =
_("Draw geographic grid (referenced to current ellipsoid)");
+ geogrid->guisection = _("Draw");
wgs84 = G_define_flag();
wgs84->key = 'w';
wgs84->description =
_("Draw geographic grid (referenced to WGS84 ellipsoid)");
+ wgs84->guisection = _("Draw");
cross = G_define_flag();
cross->key = 'c';
cross->description = _("Draw '+' marks instead of grid lines");
+ cross->guisection = _("Draw");
dot = G_define_flag();
dot->key = 'd';
dot->description = _("Draw '.' marks instead of grid lines");
+ dot->guisection = _("Draw");
fiducial = G_define_flag();
fiducial->key = 'f';
fiducial->description = _("Draw fiducial marks instead of grid lines");
-
+ fiducial->guisection = _("Draw");
+
nogrid = G_define_flag();
nogrid->key = 'n';
nogrid->description = _("Disable grid drawing");
More information about the grass-commit
mailing list