Description

Figure 5.2. gelplines


The »gelplines« command creates a gelpline window.

This is the Jeszra help line editor. Help lines can be defined for both directions horizontal and vertical. The help lines editor does also allow the storage of a help line layout. The functionality is located underneath the drawer.

In the top area a rtl_combobox is used to display the current hierarchy of the project. Thus the help line editor can switch between different windows of the same project.

Window Command

A Window created through the gelplines command exposes various functions. Using these functions has the following general form:

(option object ?arg arg ...?)

PathName is the same as the window path name. Option and the args determine the exact behavior of the command. The following commands are possible for this window:

(cget object :option)

Returns the current value of the configuration option given by option. Option may have any of the values accepted by the gelplines command.

(configure object ?:option? ?value option value ...?)

Query or modify the configuration options of the window. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given window option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the gelplines command.

(openFile object )

Read a prior saved help lines definition from the computer disk.

(traverse object )

Walks through a window hierarchy defined by by the »-traversefcn« property. The result of this traversion is stored inside the select combobox.

(init object )

Secondary window construction, this procedure »stripes« the help line window and makes it a transient dialog.

Rewritten : 05/23/2008, Roger

(collect object )

Gather the help lines from the selected window. The »-collectfcn« is used for collecting the help line data.

(saveFile object )

Store the present help lines definition on the computer disk. This definition can later be reused with »openFile«.

(eval object arg )

Evaluates the command »arg« inside the defined Tcl-Interpreter »-interp«, if »-interp« is undefined, then »arg« is executed inside the same interpreter, wherein the »gelpline« window was created.

(window object )

The »combobox« selection.

(getFile object action )

Internal used from »openFile« and »saveFile«. This procedure does display the file browser according to the »action« either as »tk_getSaveFile« or as »tk_getOpenFile«.

(hide object )

Remove the help lines present inside window »-window«. The »-updatefcn« is used for hiding the help lines.

(update object )

Uses »-updatefcn« to refresh the helplines in window »-window«.

(refresh object ?notifier? )

Sync the content of the orientation listboxes from the help lines present inside the selected window.