Nokia N97 SDK
Example Applications Guide

CMipmappingAppUi Class Reference

#include <Mipmappingappui.h>

Inheritance diagram for CMipmappingAppUi:

List of all members.

Detailed Description

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

Definition at line 32 of file Mipmappingappui.h.


Public Member Functions

void  ConstructL ()
virtual  ~CMipmappingAppUi ()

Private Member Functions

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

Private Attributes

CMipmappingContainer *  iAppContainer


Constructor & Destructor Documentation

CMipmappingAppUi::~CMipmappingAppUi (   )  [virtual]
 

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

Definition at line 41 of file Mipmappingappui.cpp.

References iAppContainer.

00042         {
00043     if ( iAppContainer )
00044                 {
00045         RemoveFromStack( iAppContainer );
00046         delete iAppContainer;
00047                 }
00048         }


Member Function Documentation

void CMipmappingAppUi::ConstructL (   ) 
 

Second phase constructor that can call methods that may leave. Creates the CMipmappingContainer and adds it to the control stack.

Definition at line 27 of file Mipmappingappui.cpp.

References CMipmappingContainer::ConstructL(), and iAppContainer.

00028     {
00029     BaseConstructL();
00030     iAppContainer = new (ELeave) CMipmappingContainer;
00031     iAppContainer->SetMopParent(this);
00032     iAppContainer->ConstructL( ClientRect(), this );
00033     AddToStackL( iAppContainer );
00034     }

void CMipmappingAppUi::DynInitMenuPaneL (  TInt  aResourceId,
CEikMenuPane *  aMenuPane
)  [private]
 

This method is called by the EIKON framework just before it displays a menu pane. Builds the dynamic menuitems for toggling the various options in the example.

Definition at line 58 of file Mipmappingappui.cpp.

00060     {
00061     }

void CMipmappingAppUi::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 78 of file Mipmappingappui.cpp.

References iAppContainer, CMipmappingContainer::iMipmapping, and CMipmapping::SetFilteringMode().

00079     {
00080     switch ( aCommand )
00081         {
00082         case EAknSoftkeyBack:
00083         case EEikCmdExit:
00084             {
00085             Exit();
00086             break;
00087             }
00088         case EMipmappingMipmappedBilinearFiltering:
00089             iAppContainer->iMipmapping->SetFilteringMode( CMipmapping::EMipmappedBilinearFiltering );
00090             break;
00091         case EMipmappingMipmappedTrilinearFiltering:
00092             iAppContainer->iMipmapping->SetFilteringMode( CMipmapping::EMipmappedTrilinearFiltering );
00093             break;
00094         case EMipmappingMipmappedNearestFiltering:
00095             iAppContainer->iMipmapping->SetFilteringMode( CMipmapping::EMipmappedNearestNeighbourFiltering );
00096             break;
00097         case EMipmappingBilinearFiltering:
00098             iAppContainer->iMipmapping->SetFilteringMode( CMipmapping::EBilinearFiltering );
00099             break;
00100         case EMipmappingNearestFiltering:
00101             iAppContainer->iMipmapping->SetFilteringMode( CMipmapping::ENearestNeighbourFiltering );
00102             break;
00103         default:
00104             break;
00105         }
00106     }

TKeyResponse CMipmappingAppUi::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 68 of file Mipmappingappui.cpp.

00070     {
00071     return EKeyWasNotConsumed;
00072     }


Member Data Documentation

CMipmappingContainer* CMipmappingAppUi::iAppContainer [private]
 

GUI container that resides in this application UI.

Definition at line 77 of file Mipmappingappui.h.

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


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

© Nokia 2009

Back to top