AFXDataDialog

This class is the base class for all data dialogs, which collect data from the user and typically collaborate with modes to process the data.


AFXDataDialog(mode, title, actionButtonIds=0, opts=DIALOG_NORMAL, x=0, y=0, w=0, h=0)

Constructor that creates a dialog box that occludes the main window.

ArgumentTypeDefaultDescription
modeAFXGuiMode Host mode.
titleString Title string.
actionButtonIdsInt0ID's of action buttons to be created.
optsIntDIALOG_NORMALOptions and hints.
xInt0X coordinate of origin.
yInt0Y coordinate of origin.
wInt0Width of the widget.
hInt0Height of the widget.


AFXDataDialog(mode, owner, title, actionButtonIds=0, opts=DIALOG_NORMAL, x=0, y=0, w=0, h=0)

Constructor that creates a dialog box that occludes its owner widget.

ArgumentTypeDefaultDescription
modeAFXGuiMode Host mode.
ownerFXWindow Owner widget.
titleString Title string.
actionButtonIdsInt0ID's of action buttons to be created.
optsIntDIALOG_NORMALOptions and hints.
xInt0X coordinate of origin.
yInt0Y coordinate of origin.
wInt0Width of the widget.
hInt0Height of the widget.


addTransition(target, op, value, tgt, sel, ptr=None)

Adds a finite state transition to the dialog box. When the expression "target.getValue() op value" evaluates to True, an sel message will be sent to the tgt object.

ArgumentTypeDefaultDescription
targetAFXIntTarget Target.
opAFXTransition::Operator Operator type.
valueInt Reference value.
tgtFXObject Message target.
selInt Message selector.
ptrStringNoneMessage data.


addTransition(target, op, value, tgt, sel, ptr=None)

Adds a finite state transition to the dialog box. When the expression "target.getValue() op value" evaluates to True, an sel message will be sent to the tgt object.

ArgumentTypeDefaultDescription
targetAFXFloatTarget Target.
opAFXTransition::Operator Operator type.
valueFloat Reference value.
tgtFXObject Message target.
selInt Message selector.
ptrStringNoneMessage data.


addTransition(keyword, op, value, tgt, sel, ptr=None)

Adds a finite state transition to the dialog box. When the expression "keyword.getValue() op value" evaluates to True, an sel message will be sent to the tgt object.

ArgumentTypeDefaultDescription
keywordAFXTogglableKeyword Keyword.
opAFXTransition::Operator Operator type.
valueInt Reference value.
tgtFXObject Message target.
selInt Message selector.
ptrStringNoneMessage data.


addTransition(keyword, op, value, tgt, sel, ptr=None)

Adds a finite state transition to the dialog box. When the expression "keyword.getValue() op value" evaluates to True, an sel message will be sent to the tgt object.

ArgumentTypeDefaultDescription
keywordAFXIntKeyword Keyword.
opAFXTransition::Operator Operator type.
valueInt Reference value.
tgtFXObject Message target.
selInt Message selector.
ptrStringNoneMessage data.


addTransition(keyword, op, value, tgt, sel, ptr=None)

Adds a finite state transition to the dialog box. When the expression "keyword.getValue() op value" evaluates to True, an sel message will be sent to the tgt object.

ArgumentTypeDefaultDescription
keywordAFXFloatKeyword Keyword.
opAFXTransition::Operator Operator type.
valueFloat Reference value.
tgtFXObject Message target.
selInt Message selector.
ptrStringNoneMessage data.


addTransition(keyword, op, value, tgt, sel, ptr=None)

Adds a finite state transition to the dialog box. When the expression "keyword.getValue() op value" evaluates to True, an sel message will be sent to the tgt object.

ArgumentTypeDefaultDescription
keywordAFXBoolKeyword Keyword.
opAFXTransition::Operator Operator type.
valueBool Reference value.
tgtFXObject Message target.
selInt Message selector.
ptrStringNoneMessage data.


bailout()

Performs checks to determine whether it is OK to cancel the dialog box. The implementaton of this class always returns True, and the derived class should reimplement this method to perform specific checks.

Reimplemented from AFXDialog.


getMode()

Returns the dialog box's host mode.


onKeywordError(kwd)

Handles the error that occurs when the given keyword or target contains invalid contents. This method will select the contents of the widget that is set for the keyword or target (with setWidgetForKeyword()). If no such widget is specified explicitly, it will select the contents of the widget that has the keyword or target as its message target.

ArgumentTypeDefaultDescription
kwdFXObject Object that contains invalid contents.


onTableError(tableKwd, row, col)

Handles the error that occurs when the given table keyword or target contains an invalid element. This method will select the contents of the widget that is set for the element of the keyword or target (with setWidgetForKeyword()). If no such widget is specified explicitly, it will select the contents of the widget that has the keyword or target as its message target.

ArgumentTypeDefaultDescription
tableKwdFXObject Object that contains invalid element.
rowInt Row index.
colInt Column index.


onTupleError(tupleKwd, index)

Handles the error that occurs when the given tuple keyword or target contains an invalid element. This method will select the contents of the widget that is set for the element of the keyword or target (with setWidgetForKeyword()). If no such widget is specified explicitly, it will select the contents of the widget that has the keyword or target as its message target.

ArgumentTypeDefaultDescription
tupleKwdFXObject Object that contains invalid element.
indexInt Element index.


processUpdates()

Performs state processing during the GUI update cycles. This class provides an empty implementation of this method, and the derived class should redefine the method if it needs to process state updating.


Class flags

Message ID's.

ID_UPDATE_STATE

Used to update the state.


Global flags

Flags for data dialog box options.

DATADIALOG_BAILOUT

Perform bailout checks when the Cancel button is clicked.