Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

CP_SignalSlot_Application Class Reference

Application class for the SignalSlot demo.

List of all members.

Public Member Functions

Constructor / Destructor
 CP_SignalSlot_Application ()
 Constructor.
virtual ~CP_SignalSlot_Application () throw ()
 Destructor.

Protected Member Functions

AboutBox
virtual CPLAT::CP_String GetAboutBoxDescription () const
Commands
virtual void HandleOpenApplication ()
virtual void HandleNewUpdateCommandStatusCommand (CPLAT::CP_CommandStatus &inOutCommandStatus, bool &, CPLAT::CP_CommandNo &)
virtual void HandleNewCommand (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)

Protected Attributes

CPLAT::CP_Window * fWindow

Private Types

typedef CPLAT::CP_Application<
CPLAT::CP_DocumentPolicy_None,
CPLAT::CP_PrintPolicy_None,
CPLAT::CP_UndoPolicy_None > 
inherited

Private Member Functions

Slots
void ControlClicked (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &inOutStatus)
void HandleReturn (CPLAT::CP_DataValueHolder &inDataValue, CPLAT::OSStatus &inOutOSStatus)


Member Typedef Documentation

typedef CPLAT::CP_Application<CPLAT::CP_DocumentPolicy_None, CPLAT::CP_PrintPolicy_None, CPLAT::CP_UndoPolicy_None> CP_SignalSlot_Application::inherited [private]
 


Constructor & Destructor Documentation

CP_SignalSlot_Application::CP_SignalSlot_Application  ) 
 

Constructor.

Exceptions:
none 

CP_SignalSlot_Application::~CP_SignalSlot_Application  )  throw () [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

CPLAT::CP_String CP_SignalSlot_Application::GetAboutBoxDescription  )  const [protected, virtual]
 

Return the string that describes the purpose of the application in the AboutBox.

Exceptions:
none 
Returns:
CP_String const The description, displayed in the about box.

void CP_SignalSlot_Application::HandleOpenApplication  )  [protected, virtual]
 

Called when the application is starting up. We take this opportunity to create our initial window and views. In this demo, we create several views and show how to interconnect them using signals and slots.

Exceptions:
none 
Returns:
void

virtual void CP_SignalSlot_Application::HandleNewUpdateCommandStatusCommand CPLAT::CP_CommandStatus &  inOutCommandStatus,
bool &  ,
CPLAT::CP_CommandNo
[protected, virtual]
 

Handles the menu/command update status handler for the CP_CMD_New command. We always enable the command, so many windows can be created if desired.

Parameters:
inOutCommandStatuss Loccation to return the enabled status result in.
inOutWasHandled Not used.
inCommandNo Not used.
Exceptions:
none 
Returns:
void

void CP_SignalSlot_Application::HandleNewCommand CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[protected, virtual]
 

Override the New command handler to create new windows. Since this application is using a NULL document policy, we don't normally have the New menu item enabled.

Returns:
inOutStatus Return the OSStatus of this operation here.

inCommandNo The command being executed, in this case CP_CMD_New.

Exceptions:
none 
Returns:
void

void CP_SignalSlot_Application::ControlClicked CPLAT::CP_DataValueHolder &  inValue,
CPLAT::OSStatus &  inOutStatus
[private]
 

Slot called when the user clicks on the click me button. This will post an alert to acknowledge that the signal has been handled.

Returns:
inValue Holds a CP_S_ControlClickedInfo structure that describes information about the sending control and value from the control that was clicked.

inOutStatus Not used.

Exceptions:
none 
Returns:
void

void CP_SignalSlot_Application::HandleReturn CPLAT::CP_DataValueHolder &  inDataValue,
CPLAT::OSStatus &  inOutOSStatus
[private]
 

Slot called when the user presses return.

Returns:
inValue Not used

inOutStatus Set to CP_noErr.

Exceptions:
none 
Returns:
void


Member Data Documentation

CPLAT::CP_Window* CP_SignalSlot_Application::fWindow [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:28:01 2005 for CPLAT_MacOS by  doxygen 1.4.0