[GRASS-dev] wxGUI: add color selector drop-down list to Settings?

Hi,

in wxGUI -> Settings -> Preferences -> Layer tab
there is the "Default color table" text color list, could this be
switched to the nice graphical one as used/generated here:

    case G_OPT_M_COLR:
        Opt->key = "color";
        Opt->key_desc = "style";
        Opt->type = TYPE_STRING;
        Opt->required = NO;
        Opt->options = G_color_rules_options();
        Opt->description = _("Name of color table");
        Opt->descriptions = G_color_rules_descriptions();
        Opt->gisprompt = "old,colortable,colortable";
        break;

(used in r.colors/v.colors)

thanks
Markus

Hi,

···

On Mon, Feb 10, 2014 at 12:56 PM, Markus Neteler <neteler@osgeo.org> wrote:

Hi,

in wxGUI → Settings → Preferences → Layer tab
there is the “Default color table” text color list, could this be
switched to the nice graphical one as used/generated here:

case G_OPT_M_COLR:
Opt->key = “color”;
Opt->key_desc = “style”;
Opt->type = TYPE_STRING;
Opt->required = NO;
Opt->options = G_color_rules_options();
Opt->description = _(“Name of color table”);
Opt->descriptions = G_color_rules_descriptions();
Opt->gisprompt = “old,colortable,colortable”;
break;

(used in r.colors/v.colors)

done in r58981

Anna

thanks
Markus


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Mon, Feb 10, 2014 at 10:56 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

Hi,
On Mon, Feb 10, 2014 at 12:56 PM, Markus Neteler <neteler@osgeo.org> wrote:

in wxGUI -> Settings -> Preferences -> Layer tab
there is the "Default color table" text color list, could this be
switched to the nice graphical one as used/generated here:

    case G_OPT_M_COLR:
        Opt->key = "color";
        Opt->key_desc = "style";
        Opt->type = TYPE_STRING;
        Opt->required = NO;
        Opt->options = G_color_rules_options();
        Opt->description = _("Name of color table");
        Opt->descriptions = G_color_rules_descriptions();
        Opt->gisprompt = "old,colortable,colortable";
        break;

(used in r.colors/v.colors)

done in r58981

Wonderful, works nicely.
Thanks for the real-time enhancement, Anna.

Markus