Public Member Functions | |
Constructor / Destructor | |
CP_UIClasses_Application () | |
Constructor. | |
virtual | ~CP_UIClasses_Application () throw () |
Destructor. | |
Protected Member Functions | |
AboutBox | |
virtual CPLAT::CP_String | GetAboutBoxDescription () const |
Commands | |
virtual void | HandleNewUpdateCommandStatusCommand (CPLAT::CP_CommandStatus &inOutCommandStatus, bool &, CPLAT::CP_CommandNo &) |
virtual void | HandleNewCommand (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo) |
virtual void | HandleOpenApplication () |
Private Types | |
typedef CPLAT::CP_Application< CPLAT::CP_DocumentPolicy_None, CPLAT::CP_PrintPolicy_None, CPLAT::CP_UndoPolicy_None > | inherited |
Private Member Functions | |
Command Handlers | |
void | CreateMainWindow (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo) |
Views | |
CPLAT::CP_View * | CreateButtonView (CPLAT::CP_View *inSuperview) |
CPLAT::CP_View * | CreateTracksView (CPLAT::CP_View *inSuperview) |
CPLAT::CP_View * | CreateGroupsView (CPLAT::CP_View *inSuperview) |
CPLAT::CP_View * | CreateMiscView (CPLAT::CP_View *inSuperview) |
PopupMenus | |
void | InitPopupMenuCommands () |
void | HandlePopupCommand (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo) |
Slots | |
void | ControlClicked (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &inOutStatus) |
|
|
|
Constructor.
|
|
Destructor.
|
|
Return the string that describes the purpose of the application in the AboutBox.
|
|
|
|
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.
|
|
Called when the application is starting up. We take this opportunity to create our initial window and views. In this demo, we will open the buttons window.
|
|
Called when the application opens andn we choose New. This will create the main window that contains a tab view to show the various UI elements
|
|
This is used to create a CP_View that serves as the root or container view for the buttons tab.
|
|
This is used to create a CP_View that serves as the root or container view for the tabs window, tracker / progresss type controls.
|
|
This is used to create a CP_View that serves as the root or container view for the tabs window, group view.
|
|
This is used to create a CP_View that serves as the root or container view for the tabs window, misc elemennts.
|
|
Initialize the popup menus by populating the menu with the commands numbers they will respond to. In this demo we use 2000 as the base of the command numbers, and increment by the items index. These will be the commands sent when the user selects an item from one of these popup menus.
|
|
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.
|
|
Generic slot that gets called when controls are clicked. This will post an alert that displies the value of the control, along with the command that the sending control used when calling this slot.
|