⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 skinexampleappui.cpp

📁 symbian皮肤
💻 CPP
字号:
/*
* ============================================================================
*  Name     : CSkinExampleAppUi from SkinExampleAppui.cpp
*  Part of  : SkinExample
*  Created  : 18.05.2006 by li yongfei
*  Implementation notes:
*     Initial content was generated by Series 60 Application Wizard.
*  Version  :
*  WebSite: http://www.symbianer.com
*  Copyright: n-office@163.com
* ============================================================================
*/

// INCLUDE FILES
#include "SkinExampleAppui.h"
#include "SkinExampleContainer.h" 
#include <SkinExample.rsg>
#include "SkinExample.hrh"

#include <avkon.hrh>

// ================= MEMBER FUNCTIONS =======================
//
// ----------------------------------------------------------
// CSkinExampleAppUi::ConstructL()
// 
// ----------------------------------------------------------
//
void CSkinExampleAppUi::ConstructL()
{
  BaseConstructL( EAknEnableSkin );

  iAppContainer = new (ELeave) CSkinExampleContainer;
  iAppContainer->SetMopParent( this );
  iAppContainer->ConstructL( ClientRect() );
  AddToStackL( iAppContainer );
}

// ----------------------------------------------------
// CSkinExampleAppUi::~CSkinExampleAppUi()
// Destructor
// Frees reserved resources
// ----------------------------------------------------
//
CSkinExampleAppUi::~CSkinExampleAppUi()
{
  if (iAppContainer)
  {
    RemoveFromStack( iAppContainer );
    delete iAppContainer;
  }
}

// ------------------------------------------------------------------------------
// CSkinExampleAppUi::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
//  This function is called by the EIKON framework just before it displays
//  a menu pane. Its default implementation is empty, and by overriding it,
//  the application can set the state of menu items dynamically according
//  to the state of application data.
// ------------------------------------------------------------------------------
//
void CSkinExampleAppUi::DynInitMenuPaneL(
  TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/)
{
}

// ----------------------------------------------------
// CSkinExampleAppUi::HandleKeyEventL(
//     const TKeyEvent& aKeyEvent,TEventCode /*aType*/)
// takes care of key event handling
// ----------------------------------------------------
//
TKeyResponse CSkinExampleAppUi::HandleKeyEventL(
  const TKeyEvent& /*aKeyEvent*/,TEventCode /*aType*/)
{
  return EKeyWasNotConsumed;
}

// ----------------------------------------------------
// CSkinExampleAppUi::HandleCommandL(TInt aCommand)
// takes care of command handling
// ----------------------------------------------------
//
void CSkinExampleAppUi::HandleCommandL(TInt aCommand)
{
  switch ( aCommand )
  {
  case EAknSoftkeyBack:
  case EEikCmdExit:
    {
      Exit();
      break;
    }


  default:
    break;      
  }
}



// End of File  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -