The RTL based option creator is used
to instantiate the template greftools with a
Tk Window. The used creator window must have a
-class
property.
Acceptable Tk Windows are: toplevel for floating windows, and frame for embedded windows.
See the options manual entry for details on the standard options.
window pathName pointing to a Galette window, containing »scripts«.
A menu is created, referring to the items inside the »scriptool«. One, out of this items, can be selected and used as a custom start command for the application.
Tk menu window, path name to the »Tools« menu inside the main menu bar. This menu is modified by the »Tools« page inside the greftools dialog.
The »greftools« command creates a »greftools« window.
»greftools« is used as a preferences page. This page allows the incorporation of external applications. In addition the scripttool is maintained by this page.
Greftools provides the maintainment part for the scripttool and Add-ins inside the tools-menu. –The Jeszra Tools menu is deactivated on default and will be activated after the user has added some tools to it.
The scripttool is always available. It does follow the normal palettes concept –in every respect, except glyphs. The general editing stuff is also present, as a part of this configuration sheet.
A Window created through the greftools command exposes various functions. Using these functions has the following general form:
pathName option ?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:
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the greftools command.
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 greftools command.
Delete the currently selected script from the »-scripttool«.
Display a sub dialog for editing the properties of the current selected script.
Secondary constructor for a tools customization section inside a preferences dialog.
Get the ID of the currently selected entry inside the »tools« rtl_mlistbox.
Create a new entry inside the »-tools« menu and query for the details of this new entry. Revision : 08/31/2009, Roger–use properties-
Delete the currently selected tool from the »-tools« menu.
Retrieve the ID for the given label »reqlabel« for the menu-entry inside the »-tools« menu of this application.
Display a sub dialog for editing details on the selected tool-entry from the »-tools« menu identified via »toolID«.
Query the data from »-scripttool« and »-tools«. In order to redisplay the newly acquired data.