Window-specific Options

Command-Line Name: -goolbar, Database Name: goolbar, Database Class; -

The »goolbar« property accepts the pathName to a Goolbar or Zoolbar window. These window will be manipulated by the Gooleditor

Command-Line Name: -displayed, Database Name: displayed, Database Class; -

The »displayed« property controls what part of a toolbar item is shown. Possible values are language dependent and do resemble the English terms:"Text Only", "Icon Only" and "Icon and Text". These property is used from inside the Gooleditor via ???.

Command-Line Name: -invokable, Database Name: invokable, Database Class; -

Turns a Gooleditor into a preference-like navigation page.

Command-Line Name: -custom, Database Name: custom, Database Class; -

The »custom« property accepts a procedure, which will create a custom dialog inside the gooleditor itself. The custom dialog is placed right to the »Show« menubutton.

Description

Figure 4.4. Gooleditor


Figure 4.4, “Gooleditor” displays a »galette« window, with »glyphs« and »vector« icons. The »Rectangle« item is being dragged into the toolbar. The toolbar items will be rearrange after the »Rectangle« was dropped into it.

The gooleditor is a toolbar customization dialog. The implementation follows the AQUA® Human User Interface Guidelines, when technically feasible.

Limitations are related to Drag'n'Drop, which does not work cross-window inside of Tcl/Tk.

The gooleditor has additional features, too. It uses: images, background and foreground bitmaps, glyph based vector icons and fully vectorized icons. Using vectors makes gooleditor »resolution independent« .

Since Drag'n'Drop is an gooleditor internal function, A »System Preferences« like design is also implemented in the gooleditor.

To-Do:

Toolbar add : Add a mark for disallowing remove from toolbar. Required for the preference panes. A customer should not being able to disable his entry points. The preference pane must be investigated further, such as: where to place the user interfaces ...

Revision : 05/19/2009, Roger Version 1.1

Allows semi-transparent drag images. These icons use the active color pair, works by-the-way very nicely for TkPath text glyphs –they are two-colored this way. See also : goolbar.tcl

Window Command

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

object.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:

object.cget(option)

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

object.configure(?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 gooleditor command.

object.setup()

Prepares the goolbareditor. This something similar to a secondary constructor.

object.moveTo( index x y )

Don't use it unconditional if the move operation has been started the following code should be deactivated ...

object.moveInactive()

Undocumented.

object.centerInactive()

Align the inactive items in the center of the editor. The inactive items are the resources of of the toolbar.

object.init()

Secondary constructor, geometry management for the »base« gooleditor. In addition, secondary controls are striped.

Tkpath 0.3 portability issue, caché must exist inside the stripes window and also destroyed when no longer needed (see.➊.

object.done()

Apply changes and destroy the gooleditor »base«.

object.apply()

Figure out what text icon configuration was chosen set the -show attribute in the original toolbar destroy the editor window.

object.removeSeparator( number )

Cleanses a certain separator from the »show« property of the given toolbar. Separators are identified by there position inside the »show« property –they aren’t identifiable.

object.displayed( text )

Changes the explanation inside the editor.

object.destroy()

Needed for tkpath 0.3, clean the gstripes local caché created inside »init ➊«.

object.invoke( index x y )

Execute an item inside the editor. If action performing is allowed, call the associated command inside the item. This is usually disallowed, except the current dialog is are preferences.

object.redrawShown()

Redraw the active items inside toolbar section of the editor.

object.drop( index x y )

Main manipulation function. An »item« was dragged to the point »x, y«, if x and y are inside of the drop target a new entry is created for the edited toolbar. »index« might be rearranged as a side-effect.