S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CSimpleCubePixmapAppUi Class Reference

#include <SimpleCubePixmapAppUi.h>

List of all members.

Public Member Functions

void ConstructL ()
virtual ~CSimpleCubePixmapAppUi ()

Private Member Functions

void DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)
void HandleCommandL (TInt aCommand)
virtual TKeyResponse HandleKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType)

Private Attributes

CSimpleCubePixmapContainer * iAppContainer


Detailed Description

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

Definition at line 36 of file SimpleCubePixmapAppUi.h.


Constructor & Destructor Documentation

CSimpleCubePixmapAppUi::~CSimpleCubePixmapAppUi (   )  [virtual]
 

Destructor. Removes CSimpleCubePixmapContainer from the control stack and destroys it.

Definition at line 48 of file SimpleCubePixmapAppUi.cpp.

References iAppContainer.

00049     {
00050     if ( iAppContainer )
00051         {
00052         RemoveFromStack( iAppContainer );
00053         delete iAppContainer;
00054         }
00055    }


Member Function Documentation

void CSimpleCubePixmapAppUi::ConstructL (   ) 
 

Second phase constructor. Creates the CSimpleCubePixmapContainer and adds it to the control stack.

Definition at line 32 of file SimpleCubePixmapAppUi.cpp.

References CSimpleCubePixmapContainer::ConstructL(), and iAppContainer.

00033     {
00034     BaseConstructL();
00035 
00036     iAppContainer = new (ELeave) CSimpleCubePixmapContainer;
00037     iAppContainer->SetMopParent( this );
00038     iAppContainer->ConstructL( ClientRect() );
00039     AddToStackL( iAppContainer );
00040     }

void CSimpleCubePixmapAppUi::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 65 of file SimpleCubePixmapAppUi.cpp.

00067     {
00068     }

void CSimpleCubePixmapAppUi::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 86 of file SimpleCubePixmapAppUi.cpp.

References CSimpleCubePixmap::FlatShading(), iAppContainer, CSimpleCubePixmapContainer::iSimpleCubePixmap, and CSimpleCubePixmap::SmoothShading().

00087     {
00088     switch ( aCommand )
00089         {
00090         case EAknSoftkeyBack:
00091         case EEikCmdExit:
00092             {
00093             Exit();
00094             break;
00095             }
00096         case ESimpleCubeFlat:
00097                 iAppContainer->iSimpleCubePixmap->FlatShading();
00098                 break; 
00099         case ESimpleCubeSmooth:
00100                 iAppContainer->iSimpleCubePixmap->SmoothShading();
00101                 break;
00102         default:
00103             break;      
00104         }
00105     }

TKeyResponse CSimpleCubePixmapAppUi::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 75 of file SimpleCubePixmapAppUi.cpp.

00077     {
00078     return EKeyWasNotConsumed;
00079     }


Member Data Documentation

CSimpleCubePixmapContainer* CSimpleCubePixmapAppUi::iAppContainer [private]
 

GUI container that resides in this application UI.

Definition at line 80 of file SimpleCubePixmapAppUi.h.


© Nokia 2006

Back to top