?? indicatoriconexview2.cpp
字號:
/*
============================================================================
Name : CIndicatorIconExView2 from IndicatorIconExView2.h
Author :
Version :
Copyright : Copyright (c) 1999 - 2006 Vinsofts Inc.
(http://cc.1asphost.com/vinsofts/)
Description : CIndicatorIconExView2 implementation
============================================================================
*/
// INCLUDE FILES
#include <aknviewappui.h>
#include <avkon.hrh>
#include <IndicatorIconEx.rsg>
#include "IndicatorIconExView2.h"
#include "IndicatorIconExContainer2.h"
// ================= MEMBER FUNCTIONS =======================
// ---------------------------------------------------------
// CIndicatorIconExView2::ConstructL(const TRect& aRect)
// EPOC two-phased constructor
// ---------------------------------------------------------
//
void CIndicatorIconExView2::ConstructL()
{
BaseConstructL( R_INDICATORICONEX_VIEW2 );
}
// ---------------------------------------------------------
// CIndicatorIconExView2::~CIndicatorIconExView2()
// destructor
// ---------------------------------------------------------
//
CIndicatorIconExView2::~CIndicatorIconExView2()
{
if ( iContainer )
{
AppUi()->RemoveFromViewStack( *this, iContainer );
}
delete iContainer;
}
// ---------------------------------------------------------
// TUid CIndicatorIconExView2::Id()
//
// ---------------------------------------------------------
//
TUid CIndicatorIconExView2::Id() const
{
return KView2Id;
}
// ---------------------------------------------------------
// CIndicatorIconExView2::HandleCommandL(TInt aCommand)
// takes care of view command handling
// ---------------------------------------------------------
//
void CIndicatorIconExView2::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EAknSoftkeyOk:
{
iEikonEnv->InfoMsg( _L("view2 ok") );
break;
}
case EAknSoftkeyBack:
{
AppUi()->HandleCommandL(EEikCmdExit);
break;
}
default:
{
AppUi()->HandleCommandL( aCommand );
break;
}
}
}
// ---------------------------------------------------------
// CIndicatorIconExView2::HandleClientRectChange()
// ---------------------------------------------------------
//
void CIndicatorIconExView2::HandleClientRectChange()
{
if ( iContainer )
{
iContainer->SetRect( ClientRect() );
}
}
// ---------------------------------------------------------
// CIndicatorIconExView2::DoActivateL(...)
//
// ---------------------------------------------------------
//
void CIndicatorIconExView2::DoActivateL(
const TVwsViewId& /*aPrevViewId*/,TUid /*aCustomMessageId*/,
const TDesC8& /*aCustomMessage*/)
{
if (!iContainer)
{
iContainer = new (ELeave) CIndicatorIconExContainer2;
iContainer->SetMopParent(this);
iContainer->ConstructL( ClientRect() );
AppUi()->AddToStackL( *this, iContainer );
}
}
// ---------------------------------------------------------
// CIndicatorIconExView2::DoDeactivate()
//
// ---------------------------------------------------------
//
void CIndicatorIconExView2::DoDeactivate()
{
if ( iContainer )
{
AppUi()->RemoveFromViewStack( *this, iContainer );
}
delete iContainer;
iContainer = NULL;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -