[GRASS-dev] Re: [GRASSGUI] changing data for parser
Glynn Clements
glynn at gclements.plus.com
Fri Mar 23 16:29:21 EDT 2007
Hamish wrote:
> I don't understand this:
> char *guisection;
> /* GUI Layout guidance: ';' delimited heirarchical tree position */
>
> so how is ";" used here?? (see lib/gis/gui.tcl)
You can specify nested subsections. AFAICT, the only option which
currently uses this feature is "g.region -g".
gui.tcl creates a separate frame (within the notebook page) for each
subsection. The end result is that any options within the same
subsection will be grouped.
You can see the effect more clearly if you modify the frame's
properties, e.g.:
--- gui.tcl~ 2007-03-23 20:25:13.000000000 +0000
+++ gui.tcl 2007-03-20 17:06:48.000000000 +0000
@@ -369,7 +369,7 @@
set parent_section [lrange $guisection 0 [expr [llength $guisection]-2]]
set parent_frame [layout_get_frame $dlg $parent_section $optn $glabel]
set id [llength [winfo children $parent_frame]]
- set suf [frame $parent_frame.fra$id -relief ridge -borderwidth 5]
+ set suf [frame $parent_frame.fra$id]
pack $suf -side top -fill x
return $suf
}
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list