Inheritance diagram for CP_StDialog:
Public Types | |
enum | { kCP_StDialog_DismissOK = 1, kCP_StDialog_DismissCancel = 2 } |
Public Member Functions | |
void | disconnect_all () |
void | signal_connect (CP_Signal *inSender) |
void | signal_disconnect (CP_Signal *inSender) |
Constructor / Destructor | |
CP_StDialog (CP_XMLDocument &inXMLDoc, UInt32 inOKButtonID, UInt32 inCancelButtonID) | |
Constructor. | |
CP_StDialog (SInt16 inXMLResID, UInt32 inOKButtonID, UInt32 inCancelButtonID) | |
CP_StDialog (const CP_String &inNibName, const CP_String &inWindowName, UInt32 inOKButtonID, UInt32 inCancelButtonID) | |
virtual | ~CP_StDialog () throw () |
Destructor. | |
Getters | |
CP_Window * | GetDialogWindow () |
SInt16 | GetDismissResult () |
Events | |
void | Run () |
void | Run (SInt32 inDuration) |
Protected Member Functions | |
Initialization | |
virtual void | CommonInit (UInt32 inOKButtonID, UInt32 inCancelButtonID) |
Protected Attributes | |
CP_Window * | fDialogWindow |
CP_DialogModality * | fDialogModality |
SInt16 | fDismissResult |
CP_TimedTask * | fDurationTimer |
sender_set | fSenders |
Private Member Functions | |
Slots | |
void | HandleDismiss (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &inOutStatus) |
void | HandleCancel (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &inOutStatus) |
void | HandleTimer (CPLAT::CP_DataValueHolder &inDataValue, CPLAT::OSStatus &inOSStatus) |
|
|
|
|
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Returns the window object used to display the dialog.
|
|
Returns the result of the user dismissing the dialog.
|
|
Runs the event loop for this dialog. This will cause the dialog to be displayed and continue to handle events for the dialog window, until the user dismisses the dialog.
|
|
Runs the event loop for this dialog. This will cause the dialog to be displayed and continue to handle events for the dialog window, until the user dismisses the dialog, or the time elapsed in the passed in inDuration field has expired.
|
|
Common initialization routine used in the constructor to finish initializing the dialog.
|
|
Slot to handle the user clicking on the dismiss button of the dialog. This will set the result of the dialog to kCP_StDialog_DismissOK and get rid of the dialogs window.
|
|
Slot to handle the user clicking on the cancel button of the dialog. This will set the result of the dialog to kCP_StDialog_DismissCancel and get rid of the dialogs window.
|
|
Slot to handle the timer. This is used when the user has requested a dialog to be displayed for a fixed length of time.
|
|
|
|
|
|
|
|
|
|
Dialog window. |
|
Modality of dialog. |
|
Result of user dismissing dialog, |
|
|