StDialogHandler is a PowerPlant class that is used for creating dialog boxes.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
Refer to The PowerPlant Book for important information about mixing the PowerPlant dialog classes with the Mac OS Toolbox calls.
Source files:
Ancestors:
See also:
Purpose:
The constructor creates an object from the passed-in parameters.
Access:
Prototype:
StDialogHandler( ResIDT inDialogResID,Parameters:
LCommander *inSuper );
The parameters for this constructor are:
Purpose:
The destructor destroys the object.
Access:
Prototype:
virtual ~StDialogHandler();
Purpose:
This method indicates whether removal of subcommanders is allowed. It is an override of AllowSubRemoval() in LCommander.
Purpose:
Handle an event for a dialog box.
Access:
Prototype:
virtual MessageT DoDialog();Parameters:
Return:
If the event triggers a Broadcaster to broadcast a message, the
last such message heard by the DialogHandler is returned. Otherwise,
this function returns msg_Nothing.
Remarks:
Call this function repeatedly to handle events.
Purpose:
This method passes back the status of a command. It is an override of FindCommandStatus() in LCommander.
Purpose:
This is an accessor method for mDialog.
Access:
Prototype:
LWindow* GetDialog();Parameters:
Return:
Returns the pointer mDialog to the window for the dialog box.
Purpose:
This method provides the message processing behavior for an LListener-inherited object. It is an override of ListenToMessage() in LListener.
Purpose:
This method sets the value of the mSleepTime data member.
Access:
Prototype:
void SetSleepTime(SInt32 inSleepTime);Parameters:
SInt32 indicating the sleep time to store in mSleepTime.
Return:
Purpose:
The pointer to the dialog box.
Access:
Prototype:
LWindow *mDialog;
Purpose:
Access:
Prototype:
MessageT mMessage;
Purpose:
Storage for the sleep time parameter.
Access:
Prototype:
SInt32 mSleepTime;