[GRASS-SVN] r32676 - in grass/branches/develbranch_6:
display/d.vect gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 11 05:42:03 EDT 2008
Author: martinl
Date: 2008-08-11 05:41:59 -0400 (Mon, 11 Aug 2008)
New Revision: 32676
Modified:
grass/branches/develbranch_6/display/d.vect/main.c
grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
more standard options in d.vect, fix wx GUI menuform, update r32674
Modified: grass/branches/develbranch_6/display/d.vect/main.c
===================================================================
--- grass/branches/develbranch_6/display/d.vect/main.c 2008-08-11 09:29:51 UTC (rev 32675)
+++ grass/branches/develbranch_6/display/d.vect/main.c 2008-08-11 09:41:59 UTC (rev 32676)
@@ -194,13 +194,11 @@
width_opt->guisection = _("Lines");
width_opt->description = _("Line width");
- wcolumn_opt = G_define_option();
+ wcolumn_opt = G_define_standard_option(G_OPT_COLUMN);
wcolumn_opt->key = "wcolumn";
- wcolumn_opt->type = TYPE_STRING;
wcolumn_opt->guisection = _("Lines");
wcolumn_opt->description =
- _
- ("Name of column for line widths (these values will be scaled by wscale)");
+ _("Name of column for line widths (these values will be scaled by wscale)");
wscale_opt = G_define_option();
wscale_opt->key = "wscale";
@@ -229,10 +227,8 @@
size_opt->description = _("Symbol size");
/* Labels */
- attrcol_opt = G_define_option();
+ attrcol_opt = G_define_standard_option(G_OPT_COLUMN);
attrcol_opt->key = "attrcol";
- attrcol_opt->type = TYPE_STRING;
- attrcol_opt->required = NO;
attrcol_opt->multiple = NO; /* or fix attr.c, around line 102 */
attrcol_opt->guisection = _("Labels");
attrcol_opt->description = _("Name of column to be displayed");
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py 2008-08-11 09:29:51 UTC (rev 32675)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py 2008-08-11 09:41:59 UTC (rev 32676)
@@ -1157,7 +1157,7 @@
p['wxGetValue'] = columns.GetStringSelection
columns.Bind(wx.EVT_ENTER_WINDOW, self.OnDbColumn)
columns.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
- this_sizer.Add(item=columns, proportion=0,
+ which_sizer.Add(item=columns, proportion=0,
flag=wx.ADJUST_MINSIZE | wx.BOTTOM | wx.LEFT, border=5)
# color entry
elif p.get('prompt','') == 'color':
More information about the grass-commit
mailing list