?? basicdrawview3.cpp
字號:
/*
* ============================================================================
* Name : CBasicDrawView3 from BasicDrawView3.h
* Part of : BasicDraw
* Created : 3006-4-15 by Hewei
* Implementation notes:
* Initial content was generated by Series 60 AppWizard.
* Version :
* Copyright: Myself
* ============================================================================
*/
// INCLUDE FILES
#include <aknviewappui.h>
#include <avkon.hrh>
#include <BasicDraw.rsg>
#include "BasicDrawView3.h"
#include "BasicDrawContainer3.h"
// ================= MEMBER FUNCTIONS =======================
// ---------------------------------------------------------
// CBasicDrawView3::ConstructL(const TRect& aRect)
// EPOC two-phased constructor
// ---------------------------------------------------------
//
void CBasicDrawView3::ConstructL()
{
BaseConstructL( R_BASICDRAW_VIEW3 );
}
// ---------------------------------------------------------
// CBasicDrawView3::~CBasicDrawView3()
// destructor
// ---------------------------------------------------------
//
CBasicDrawView3::~CBasicDrawView3()
{
if ( iContainer )
{
AppUi()->RemoveFromViewStack( *this, iContainer );
}
delete iContainer;
}
// ---------------------------------------------------------
// TUid CBasicDrawView3::Id()
//
// ---------------------------------------------------------
//
TUid CBasicDrawView3::Id() const
{
return KView3Id;
}
// ---------------------------------------------------------
// CBasicDrawView3::HandleCommandL(TInt aCommand)
// takes care of view command handling
// ---------------------------------------------------------
//
void CBasicDrawView3::HandleCommandL(TInt aCommand)
{
AppUi()->HandleCommandL( aCommand );
}
// ---------------------------------------------------------
// CBasicDrawView3::HandleClientRectChange()
// ---------------------------------------------------------
//
void CBasicDrawView3::HandleClientRectChange()
{
if ( iContainer )
{
iContainer->SetRect( ClientRect() );
}
}
// ---------------------------------------------------------
// CBasicDrawView3::DoActivateL(...)
//
// ---------------------------------------------------------
//
void CBasicDrawView3::DoActivateL(
const TVwsViewId& /*aPrevViewId*/,TUid /*aCustomMessageId*/,
const TDesC8& /*aCustomMessage*/)
{
if (!iContainer)
{
iContainer = new (ELeave) CBasicDrawContainer3;
iContainer->SetMopParent(this);
iContainer->ConstructL( ClientRect() );
AppUi()->AddToStackL( *this, iContainer );
}
}
// ---------------------------------------------------------
// CBasicDrawView3::DoDeactivate()
//
// ---------------------------------------------------------
//
void CBasicDrawView3::DoDeactivate()
{
if ( iContainer )
{
AppUi()->RemoveFromViewStack( *this, iContainer );
}
delete iContainer;
iContainer = NULL;
}
// End of File
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -