[GRASS-SVN] r41699 - grass/trunk/display/d.rast.arrow

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 4 06:28:47 EDT 2010


Author: martinl
Date: 2010-04-04 06:28:46 -0400 (Sun, 04 Apr 2010)
New Revision: 41699

Modified:
   grass/trunk/display/d.rast.arrow/main.c
Log:
d.rast.arrow: more gui sections


Modified: grass/trunk/display/d.rast.arrow/main.c
===================================================================
--- grass/trunk/display/d.rast.arrow/main.c	2010-04-03 22:40:40 UTC (rev 41698)
+++ grass/trunk/display/d.rast.arrow/main.c	2010-04-04 10:28:46 UTC (rev 41699)
@@ -4,7 +4,7 @@
  * MODULE:       d.rast.arrow
  * AUTHOR(S):    Chris Rewerts, Agricultural Engineering, Purdue University
  * PURPOSE:      Draw arrows on slope/aspect maps. 
- * COPYRIGHT:    (C) 2000 by the GRASS Development Team
+ * COPYRIGHT:    (C) 2000, 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
@@ -97,12 +97,7 @@
 	_("Draws arrows representing cell aspect direction "
 	  "for a raster map containing aspect data.");
 
-    opt1 = G_define_option();
-    opt1->key = "map";
-    opt1->type = TYPE_STRING;
-    opt1->required = YES;
-    opt1->multiple = NO;
-    opt1->gisprompt = "old,cell,raster";
+    opt1 = G_define_standard_option(G_OPT_R_MAP);
     opt1->description = _("Name of raster aspect map to be displayed");
 
     opt2 = G_define_option();
@@ -112,6 +107,7 @@
     opt2->answer = "grass";
     opt2->options = "grass,compass,agnps,answers";
     opt2->description = _("Type of existing raster aspect map");
+    opt2->guisection = _("Shape");
 
     opt3 = G_define_option();
     opt3->key = "arrow_color";
@@ -120,14 +116,16 @@
     opt3->answer = "green";
     opt3->gisprompt = "old_color,color,color";
     opt3->description = _("Color for drawing arrows");
-
+    opt3->guisection = _("Colors");
+    
     opt4 = G_define_option();
     opt4->key = "grid_color";
     opt4->type = TYPE_STRING;
     opt4->required = NO;
     opt4->answer = "gray";
     opt4->gisprompt = "old_color,color,color_none";
-    opt4->description = _("Color for drawing grid or \"none\"");
+    opt4->description = _("Color for drawing grid");
+    opt4->guisection = _("Colors");
 
     opt5 = G_define_option();
     opt5->key = "x_color";
@@ -135,7 +133,8 @@
     opt5->required = NO;
     opt5->answer = DEFAULT_FG_COLOR;
     opt5->gisprompt = "old_color,color,color_none";
-    opt5->description = _("Color for drawing X's (Null values)");
+    opt5->description = _("Color for drawing X's (null values)");
+    opt5->guisection = _("Colors");
 
     opt6 = G_define_option();
     opt6->key = "unknown_color";
@@ -144,6 +143,7 @@
     opt6->answer = "red";
     opt6->gisprompt = "old_color,color,color_none";
     opt6->description = _("Color for showing unknown information");
+    opt6->guisection = _("Colors");
 
     opt9 = G_define_option();
     opt9->key = "skip";
@@ -160,6 +160,7 @@
     opt7->gisprompt = "old,cell,raster";
     opt7->description =
 	_("Raster map containing values used for arrow length");
+    opt7->guisection = _("Shape");
 
     opt8 = G_define_option();
     opt8->key = "scale";
@@ -167,6 +168,7 @@
     opt8->required = NO;
     opt8->answer = "1.0";
     opt8->description = _("Scale factor for arrows (magnitude map)");
+    opt8->guisection = _("Shape");
 
     align = G_define_flag();
     align->key = 'a';



More information about the grass-commit mailing list