AFXGuiObjectManager

This is a base class for management of GUI components found in the menubar, toolbar, and toolbox.


AFXGuiObjectManager()

Constructor.


AFXGuiObjectManager(source)

Undefined copy constructor (this class does not have copy semantics).

ArgumentTypeDefaultDescription
sourceAFXGuiObjectManager Object to be copied.


getDialog(widgetAlias)

Returns the dialog box with the specified widget key.

ArgumentTypeDefaultDescription
widgetAliasString Dialog box alias.


getKernelInitializationCommand()

Returns the command that should initialize the corresponding module or toolset in the kernel. Called by the module manager the first time the GUI module is switched into.


getToolbarGroup(name)

Returns the toolbar group specified by the given name argument.

ArgumentTypeDefaultDescription
nameString A String that specifies the toolbar to get.


hide(location)

Hides the GUI components in the menubar, toolbar, and toolbox.

ArgumentTypeDefaultDescription
locationInt Location where GUI components are placed.


registerAndShowDialog(dialog)

Registers the given dialog box and its widget key with the manager and posts the dialog box.

ArgumentTypeDefaultDescription
dialogAFXDialog Dialog box.


registerAndShowModalDialog(dialog)

Registers the given dialog box and its widget key with the manager and posts the dialog box as a modal dialog box.

ArgumentTypeDefaultDescription
dialogAFXDialog Dialog box.


registerShortcutFunction(text, tgt, sel, ic=None, tipText='', displayedName='', typesToDisplay=0)

Registers a shortcut function; this function will be available in the GUI so that users can assign it shortcut keys.

ArgumentTypeDefaultDescription
textString Label used to identify the function in the GUI; To specify a shortcut, separate it from the label using "\t".
tgtFXObject Message target.
selInt Messaged ID.
icFXIconNoneIcon for the shortcut
tipTextString''Text used for buttom tooltip
displayedNameString''Name of the module to which this function belongs.
typesToDisplayInt0Flags specifying the types of objects displayed in the module; see AFXModuleGui.


sendCommandString(command, writeToReplay=True, writeToJournal=False)

Sends the given command string (which can contain multiple commands, separated by command delimiters).

ArgumentTypeDefaultDescription
commandString Command string.
writeToReplayBoolTrueTrue if commands should be written to the replay file; False if not.
writeToJournalBoolFalseTrue if commands should be written to the journal file; False if not.


show(location)

Shows the GUI components in the menubar, toolbar, and toolbox.

ArgumentTypeDefaultDescription
locationInt Location where GUI components are placed.


unregisterDialog(widgetAlias)

Unregisters the dialog box of the given widget key from the manager.

ArgumentTypeDefaultDescription
widgetAliasString Dialog box alias.


Class flags

Message ID's.

ID_DESTROY_DIALOGS

Used to destroy dialogs.


Global flags

Flags for GUI locations.

GUI_IN_NONE

GUI has no components in standard locations.

GUI_IN_MENUBAR

GUI has components in the menubar.

GUI_IN_TOOL_PANE

GUI has components in the Tools pull down pane.

GUI_IN_TOOLBAR

GUI has components in the toolbar.

GUI_IN_TOOLBOX

GUI has components in the toolbox.