[GRASS-SVN] r53782 - grass/trunk/raster/r.colors
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 13 00:40:15 PST 2012
Author: huhabla
Date: 2012-11-13 00:40:14 -0800 (Tue, 13 Nov 2012)
New Revision: 53782
Modified:
grass/trunk/raster/r.colors/edit_colors.c
Log:
Fixed wrong GUI section for map and file options.
Modified: grass/trunk/raster/r.colors/edit_colors.c
===================================================================
--- grass/trunk/raster/r.colors/edit_colors.c 2012-11-12 18:14:04 UTC (rev 53781)
+++ grass/trunk/raster/r.colors/edit_colors.c 2012-11-13 08:40:14 UTC (rev 53782)
@@ -68,12 +68,24 @@
if (type == RASTER3D_TYPE) {
opt.maps = G_define_standard_option(G_OPT_R3_MAPS);
- opt.maps->required = NO;
} else {
opt.maps = G_define_standard_option(G_OPT_R_MAPS);
- opt.maps->required = NO;
}
+ opt.maps->required = NO;
+ opt.maps->guisection = _("Define");
+ opt.file = G_define_standard_option(G_OPT_F_INPUT);
+ opt.file->key = "file";
+ opt.file->required = NO;
+ opt.file->label =
+ _("Input file with one map name per line");
+ opt.file->description =
+ _("Input map names can be defined in an input file in case a large"
+ " amount of maps must be specified. This option is mutual"
+ " exclusive to the map option.");
+ opt.file->required = NO;
+ opt.file->guisection = _("Define");
+
opt.colr = G_define_standard_option(G_OPT_M_COLR);
opt.colr->guisection = _("Define");
@@ -84,12 +96,6 @@
_("Raster map from which to copy color table");
opt.rast->guisection = _("Define");
- opt.file = G_define_standard_option(G_OPT_F_INPUT);
- opt.file->key = "file";
- opt.file->required = NO;
- opt.file->description =
- _("Input file with one map name per line");
-
opt.volume = G_define_standard_option(G_OPT_R3_INPUT);
opt.volume->key = "volume";
opt.volume->required = NO;
More information about the grass-commit
mailing list