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

CP_NibXML_Application Class Reference

Application class for the NibXML demo. More...

List of all members.

Public Member Functions

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

Protected Member Functions

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

Private Member Functions

Slots
void HandlePopupCommand (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)


Detailed Description

This demo demonstrate the use of converting a MacOS Nib file, using the CPLAT NibToXML tool to convert the file to a form of XML that is used by the CPLAT framework. By converting the XML file into XML resources the nibs UI can be used with the Windows and Linux versions of CPLAT.


Constructor & Destructor Documentation

CP_NibXML_Application::CP_NibXML_Application  ) 
 

Constructor.

Exceptions:
none 

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

Destructor.

Exceptions:
none 


Member Function Documentation

CPLAT::CP_String CP_NibXML_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_NibXML_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 the window from an XML resource.

Exceptions:
none 
Returns:
void

virtual void CP_NibXML_Application::HandleNewUpdateCommandStatus CPLAT::CP_CommandStatus &  inOutCommandStatus,
bool &  ,
CPLAT::CP_CommandNo
[protected, virtual]
 

void CP_NibXML_Application::HandleNew CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[protected, virtual]
 

Handle the new menu command. This will call the HandleOpenApplication() method to create the main window.

Parameters:
inOutStatus Returns CP_noErr.
inCommandNo Not used.
Exceptions:
none 
Returns:
void

void CP_NibXML_Application::HandlePopupCommand CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

Call when the user selects an item from one of the popup menus. In this demo we will show an alert with the message "Popup menu selected" and then the command number.

Returns:
inOutStatus Not used.

inCommandNo The command number associated with the selected item.

Exceptions:
none 
Returns:
void


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