S60 3rd Edition SDK FP1 for Symbian OS Example Applications Guide |
#include <SimpleCubeAppUi.h>
Inherits CAknAppUi.
Inheritance diagram for CSimpleCubeAppUi:
Definition at line 32 of file SimpleCubeAppUi.h.
Public Member Functions | |
void | ConstructL () |
virtual | ~CSimpleCubeAppUi () |
Private Member Functions | |
void | DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane) |
void | HandleCommandL (TInt aCommand) |
virtual TKeyResponse | HandleKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
Private Attributes | |
CSimpleCubeContainer * | iAppContainer |
|
Destructor. Removes CSimpleCubeContainer from the control stack and destroys it. Definition at line 43 of file SimpleCubeAppUi.cpp. References iAppContainer. 00044 { 00045 if ( iAppContainer ) 00046 { 00047 RemoveFromStack( iAppContainer ); 00048 delete iAppContainer; 00049 } 00050 }
|
|
Second phase constructor. Creates the CSimpleCubeContainer and adds it to the control stack. Definition at line 28 of file SimpleCubeAppUi.cpp. References CSimpleCubeContainer::ConstructL(), and iAppContainer. 00029 { 00030 BaseConstructL(); 00031 iAppContainer = new (ELeave) CSimpleCubeContainer; 00032 iAppContainer->SetMopParent(this); 00033 iAppContainer->ConstructL( ClientRect() ); 00034 AddToStackL( iAppContainer ); 00035 }
|
|
This method is called by the EIKON framework just before it displays a menu pane. Does nothing in this implemenation. Definition at line 60 of file SimpleCubeAppUi.cpp.
|
|
CEikAppUi method that is used to handle user commands. Handles menu commands and application exit request.
Definition at line 82 of file SimpleCubeAppUi.cpp. References CSimpleCube::FlatShading(), iAppContainer, CSimpleCubeContainer::iSimpleCube, CSimpleCube::SmoothShading(), CSimpleCube::TriangleFanMode(), and CSimpleCube::TriangleMode(). 00083 { 00084 switch ( aCommand ) 00085 { 00086 case EAknSoftkeyBack: 00087 case EEikCmdExit: 00088 { 00089 Exit(); 00090 break; 00091 } 00092 case ESimpleCubeFlat: 00093 iAppContainer->iSimpleCube->FlatShading(); 00094 break; 00095 case ESimpleCubeSmooth: 00096 iAppContainer->iSimpleCube->SmoothShading(); 00097 break; 00098 case ESimpleCubeTriangles: 00099 iAppContainer->iSimpleCube->TriangleMode(); 00100 break; 00101 case ESimpleCubeTriangleFans: 00102 iAppContainer->iSimpleCube->TriangleFanMode(); 00103 break; 00104 default: 00105 break; 00106 } 00107 }
|
|
CEikAppUi method that is used to handle key events. Does nothing in this implemenation.
Definition at line 71 of file SimpleCubeAppUi.cpp.
|
|
GUI container that resides in this application UI. Definition at line 76 of file SimpleCubeAppUi.h. Referenced by ConstructL(), HandleCommandL(), and ~CSimpleCubeAppUi(). |
© Nokia 2006 |