[GRASS-SVN] r56843 - grass/trunk/display/d.barscale

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 20 08:35:37 PDT 2013


Author: hamish
Date: 2013-06-20 08:35:37 -0700 (Thu, 20 Jun 2013)
New Revision: 56843

Modified:
   grass/trunk/display/d.barscale/main.c
Log:
gui sections, set at least one option to required so that module gui popup happens

Modified: grass/trunk/display/d.barscale/main.c
===================================================================
--- grass/trunk/display/d.barscale/main.c	2013-06-20 15:21:19 UTC (rev 56842)
+++ grass/trunk/display/d.barscale/main.c	2013-06-20 15:35:37 UTC (rev 56843)
@@ -66,6 +66,7 @@
     no_text = G_define_flag();
     no_text->key = 't';
     no_text->description = _("Draw the scale bar without text");
+    no_text->guisection = "Text";
 
     barstyle = G_define_option();
     barstyle->key = "style";
@@ -81,7 +82,7 @@
     coords->type = TYPE_DOUBLE;
     coords->answer = "0.0,5.0";
     coords->options = "0-100";
-    coords->required = NO;
+    coords->required = YES;
     coords->label =
 	_("The screen coordinates for top-left corner of label");
     coords->description = _("(0,0) is lower-left of frame");
@@ -89,16 +90,19 @@
     fg_color_opt = G_define_standard_option(G_OPT_C_FG);
     fg_color_opt->key = "color";
     fg_color_opt->label = _("Bar scale, text, and north arrow color");
+    fg_color_opt->guisection = "Colors";
 
     bg_color_opt = G_define_standard_option(G_OPT_C_BG);
     bg_color_opt->key = "background_color";
     bg_color_opt->label = _("Background color (drawn behind the bar)");
+    bg_color_opt->guisection = "Colors";
 
     text_placement = G_define_option();
     text_placement->key = "text_position";
     text_placement->description = _("Text position");
     text_placement->options = "under,over,left,right";
     text_placement->answer = "right";
+    text_placement->guisection = "Text";
 
     fsize = G_define_option();
     fsize->key = "fontsize";
@@ -107,6 +111,7 @@
     fsize->answer = "14";
     fsize->options = "1-72";
     fsize->description = _("Font size");
+    fsize->guisection = "Text";
 
     n_arrow = G_define_option();
     n_arrow->key = "north_arrow";



More information about the grass-commit mailing list