[GRASS-SVN] r32837 - in grass/branches/develbranch_6: display/d.vect gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 17 09:33:51 EDT 2008


Author: martinl
Date: 2008-08-17 09:33:51 -0400 (Sun, 17 Aug 2008)
New Revision: 32837

Modified:
   grass/branches/develbranch_6/display/d.vect/main.c
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
d.vect: add color opt description, wxGUI menuform fixed

Modified: grass/branches/develbranch_6/display/d.vect/main.c
===================================================================
--- grass/branches/develbranch_6/display/d.vect/main.c	2008-08-17 13:27:35 UTC (rev 32836)
+++ grass/branches/develbranch_6/display/d.vect/main.c	2008-08-17 13:33:51 UTC (rev 32837)
@@ -159,17 +159,21 @@
     color_opt->key = "color";
     color_opt->type = TYPE_STRING;
     color_opt->answer = DEFAULT_FG_COLOR;
-    color_opt->description = _("Line color");
+    color_opt->label = _("Line color");
     color_opt->guisection = _("Colors");
     color_opt->gisprompt = GISPROMPT_COLOR;
+    color_opt->description =
+	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 
     fcolor_opt = G_define_option();
     fcolor_opt->key = "fcolor";
     fcolor_opt->type = TYPE_STRING;
     fcolor_opt->answer = "200:200:200";
-    fcolor_opt->description = _("Area fill color");
+    fcolor_opt->label = _("Area fill color");
     fcolor_opt->guisection = _("Colors");
     fcolor_opt->gisprompt = GISPROMPT_COLOR;
+    fcolor_opt->description =
+	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 
     rgbcol_opt = G_define_standard_option(G_OPT_COLUMN);
     rgbcol_opt->key = "rgb_column";
@@ -244,25 +248,30 @@
     lcolor_opt->key = "lcolor";
     lcolor_opt->type = TYPE_STRING;
     lcolor_opt->answer = "red";
-    lcolor_opt->description = _("Label color");
+    lcolor_opt->label = _("Label color");
     lcolor_opt->guisection = _("Labels");
     lcolor_opt->gisprompt = GISPROMPT_COLOR;
+    lcolor_opt->description = _("Either a standard color name or R:G:B triplet");
 
     bgcolor_opt = G_define_option();
     bgcolor_opt->key = "bgcolor";
     bgcolor_opt->type = TYPE_STRING;
     bgcolor_opt->answer = "none";
     bgcolor_opt->guisection = _("Labels");
-    bgcolor_opt->description = _("Label background color");
+    bgcolor_opt->label = _("Label background color");
     bgcolor_opt->gisprompt = GISPROMPT_COLOR;
+    bgcolor_opt->description =
+	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 
     bcolor_opt = G_define_option();
     bcolor_opt->key = "bcolor";
     bcolor_opt->type = TYPE_STRING;
     bcolor_opt->answer = "none";
     bcolor_opt->guisection = _("Labels");
-    bcolor_opt->description = _("Label border color");
+    bcolor_opt->label = _("Label border color");
     bcolor_opt->gisprompt = GISPROMPT_COLOR;
+    bcolor_opt->description =
+	_("Either a standard GRASS color, R:G:B triplet, or \"none\"");
 
     lsize_opt = G_define_option();
     lsize_opt->key = "lsize";

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2008-08-17 13:27:35 UTC (rev 32836)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2008-08-17 13:33:51 UTC (rev 32837)
@@ -1145,7 +1145,7 @@
                 # color entry
                 elif p.get('prompt','') == 'color':
                     # Heuristic way of finding whether transparent is allowed
-                    handle_transparency =  'none' in title
+                    handle_transparency =  'none' in p.get('description', '')
                     default_color = (200,200,200)
                     label_color = _("Select Color")
                     if p.get('default','') != '':



More information about the grass-commit mailing list