📄 allmlistsview3.cpp
字号:
/*
* ============================================================================
* Name : CAllMListsView3 from AllMListsView3.h
* Part of : AllMLists
* Created : 16.03.3006 by ToBeReplacedByAuthor
* Implementation notes:
* Initial content was generated by Series 60 Application Wizard.
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
// INCLUDE FILES
#include <aknviewappui.h>
#include <avkon.hrh>
#include <AllMLists.rsg>
#include "AllMLists.hrh"
#include "AllMListsView3.h"
#include "AllMListsContainer3.h"
// ================= MEMBER FUNCTIONS =======================
// ---------------------------------------------------------
// CAllMListsView3::ConstructL(const TRect& aRect)
// EPOC two-phased constructor
// ---------------------------------------------------------
//
void CAllMListsView3::ConstructL()
{
BaseConstructL( R_ALLMLISTS_VIEW3 );
}
// ---------------------------------------------------------
// CAllMListsView3::~CAllMListsView3()
// destructor
// ---------------------------------------------------------
//
CAllMListsView3::~CAllMListsView3()
{
if ( iContainer )
{
AppUi()->RemoveFromViewStack( *this, iContainer );
}
delete iContainer;
}
// ---------------------------------------------------------
// TUid CAllMListsView3::Id()
//
// ---------------------------------------------------------
//
TUid CAllMListsView3::Id() const
{
return KView3Id;
}
// ---------------------------------------------------------
// CAllMListsView3::HandleCommandL(TInt aCommand)
// takes care of view command handling
// ---------------------------------------------------------
//
void CAllMListsView3::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EAllMListsCmdSetting:
case EAllMListsCmdSettingNumber:
{
TInt id = aCommand - EAllMListsCmdSetting + R_ALLMLISTS_SETTING_LISTBOX;
iContainer->ShowListBoxL(id);
break;
}
case EAknCmdMark:
case EAknCmdUnmark:
case EAknMarkAll:
case EAknUnmarkAll:
{
iContainer->HandleMarkCommandL(aCommand);
break;
}
case EAknSoftkeyBack:
{
AppUi()->HandleCommandL(EEikCmdExit);
break;
}
default:
{
AppUi()->HandleCommandL( aCommand );
break;
}
}
}
// ---------------------------------------------------------
// CAllMListsView3::HandleClientRectChange()
// ---------------------------------------------------------
//
void CAllMListsView3::HandleClientRectChange()
{
if ( iContainer )
{
iContainer->SetRect( ClientRect() );
}
}
// ---------------------------------------------------------
// CAllMListsView3::DoActivateL(...)
//
// ---------------------------------------------------------
//
void CAllMListsView3::DoActivateL(
const TVwsViewId& /*aPrevViewId*/,TUid /*aCustomMessageId*/,
const TDesC8& /*aCustomMessage*/)
{
if (!iContainer)
{
iContainer = new (ELeave) CAllMListsContainer3;
iContainer->SetMopParent(this);
iContainer->ConstructL( ClientRect() );
AppUi()->AddToStackL( *this, iContainer );
}
}
// ---------------------------------------------------------
// CAllMListsView3::DoDeactivate()
//
// ---------------------------------------------------------
//
void CAllMListsView3::DoDeactivate()
{
if ( iContainer )
{
AppUi()->RemoveFromViewStack( *this, iContainer );
}
delete iContainer;
iContainer = NULL;
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -