|
Nokia N97 SDK Example Applications Guide |
#include <HierarchyAppUi.h>
Inheritance diagram for CHierarchyAppUi:

Definition at line 32 of file HierarchyAppUi.h.
Public Member Functions |
|
| void | ConstructL () |
| virtual | ~CHierarchyAppUi () |
Private Member Functions |
|
| void | DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane) |
| void | HandleCommandL (TInt aCommand) |
| virtual TKeyResponse | HandleKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
Private Attributes |
|
| CHierarchyContainer * | iAppContainer |
|
|
Destructor. Removes CHierarchyContainer from the control stack and destroys it. Definition at line 58 of file HierarchyAppUi.cpp. References iAppContainer. 00059 { 00060 if ( iAppContainer ) 00061 { 00062 RemoveFromStack( iAppContainer ); 00063 delete iAppContainer; 00064 } 00065 }
|
|
|
Second phase constructor. Creates the CHierarchyContainer and adds it to the control stack. Definition at line 44 of file HierarchyAppUi.cpp. References CHierarchyContainer::ConstructL(), and iAppContainer. 00045 { 00046 BaseConstructL(); 00047 iAppContainer = new (ELeave) CHierarchyContainer; 00048 iAppContainer->SetMopParent(this); 00049 iAppContainer->ConstructL( ClientRect(), this ); 00050 AddToStackL( iAppContainer ); 00051 }
|
|
||||||||||||
|
This method is called by the EIKON framework just before it displays a menu pane. Does nothing in this implemenation. Definition at line 75 of file HierarchyAppUi.cpp.
|
|
|
CEikAppUi method that is used to handle user commands. Handles menu commands and application exit request.
Definition at line 134 of file HierarchyAppUi.cpp. 00135 { 00136 switch ( aCommand ) 00137 { 00138 case EAknSoftkeyBack: 00139 case EEikCmdExit: 00140 { 00141 Exit(); 00142 break; 00143 } 00144 default: 00145 break; 00146 } 00147 }
|
|
||||||||||||
|
CEikAppUi method that is used to handle key events. Does nothing in this implemenation.
Definition at line 85 of file HierarchyAppUi.cpp. References iAppContainer, CHierarchyContainer::iHierarchy, CHierarchy::RotateObjectDown(), CHierarchy::RotateObjectUp(), and CHierarchy::SwitchRotateMode(). 00087 { 00088 if ( aType == EEventKeyDown ) 00089 { 00090 TUint scan = aKeyEvent.iScanCode; 00091 00092 switch ( scan ) 00093 { 00094 case(EStdKeyUpArrow): 00095 iAppContainer->iHierarchy->RotateObjectUp(ETrue); 00096 return EKeyWasConsumed; 00097 case(EStdKeyDownArrow): 00098 iAppContainer->iHierarchy->RotateObjectDown(ETrue); 00099 return EKeyWasConsumed; 00100 case(EStdKeyDevice3): 00101 iAppContainer->iHierarchy->SwitchRotateMode(); 00102 return EKeyWasConsumed; 00103 default: 00104 return EKeyWasNotConsumed; 00105 } 00106 } 00107 else if ( aType == EEventKeyUp ) 00108 { 00109 TUint scan = aKeyEvent.iScanCode; 00110 00111 switch ( scan ) 00112 { 00113 case(EStdKeyUpArrow): 00114 iAppContainer->iHierarchy->RotateObjectUp(EFalse); 00115 return EKeyWasConsumed; 00116 case(EStdKeyDownArrow): 00117 iAppContainer->iHierarchy->RotateObjectDown(EFalse); 00118 return EKeyWasConsumed; 00119 default: 00120 return EKeyWasNotConsumed; 00121 } 00122 } 00123 else 00124 { 00125 return EKeyWasNotConsumed; 00126 } 00127 }
|
|
|
GUI container that resides in this application UI. Definition at line 76 of file HierarchyAppUi.h. Referenced by ConstructL(), HandleKeyEventL(), and ~CHierarchyAppUi(). |
|
© Nokia 2009 |