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

CP_HelloWorld_Application Class Reference

Application class for the HelloWorld demo.

List of all members.

Public Member Functions

Constructor / Destructor
 CP_HelloWorld_Application ()
 Constructor.
virtual ~CP_HelloWorld_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


Member Typedef Documentation

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


Constructor & Destructor Documentation

CP_HelloWorld_Application::CP_HelloWorld_Application  ) 
 

Constructor.

Exceptions:
none 

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

Destructor.

Exceptions:
none 


Member Function Documentation

CPLAT::CP_String CP_HelloWorld_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_HelloWorld_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 a single view, CP_HelloWorld_View that displays our single line of text.

Exceptions:
none 
Returns:
void

virtual void CP_HelloWorld_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_HelloWorld_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


Member Data Documentation

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


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