S60 3rd Edition SDK FP1 for Symbian OS
Example Applications Guide

CSimpleCubeAppUi Class Reference

#include <SimpleCubeAppUi.h>

Inherits CAknAppUi.

Inheritance diagram for CSimpleCubeAppUi:

Inheritance graph
List of all members.

Detailed Description

Application UI class that contains the CSimpleCubeContainer (as required by the Symbian UI application architecture).

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

CSimpleCubeContaineriAppContainer


Constructor & Destructor Documentation

CSimpleCubeAppUi::~CSimpleCubeAppUi  )  [virtual]
 

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 }


Member Function Documentation

void CSimpleCubeAppUi::ConstructL  ) 
 

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     }

void CSimpleCubeAppUi::DynInitMenuPaneL TInt  aResourceId,
CEikMenuPane *  aMenuPane
[private]
 

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.

00062     {
00063     }

void CSimpleCubeAppUi::HandleCommandL TInt  aCommand  )  [private]
 

CEikAppUi method that is used to handle user commands. Handles menu commands and application exit request.

Parameters:
aCommand Command to be handled.

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     }

TKeyResponse CSimpleCubeAppUi::HandleKeyEventL const TKeyEvent &  aKeyEvent,
TEventCode  aType
[private, virtual]
 

CEikAppUi method that is used to handle key events. Does nothing in this implemenation.

Parameters:
aKeyEvent Event to handled (ignored by this implementation).
aType Type of the key event (ignored by this implementation).
Returns:
Response code. Always EKeyWasNotConsumed in this implementation.

Definition at line 71 of file SimpleCubeAppUi.cpp.

00073 {
00074     return EKeyWasNotConsumed;
00075 }


Member Data Documentation

CSimpleCubeContainer* CSimpleCubeAppUi::iAppContainer [private]
 

GUI container that resides in this application UI.

Definition at line 76 of file SimpleCubeAppUi.h.

Referenced by ConstructL(), HandleCommandL(), and ~CSimpleCubeAppUi().


The documentation for this class was generated from the following files:

© Nokia 2006

Back to top