📄 yellowview.cpp
字号:
/* Copyright (c) 2007, Nokia. All rights reserved */
#include <gulicon.h>
#include <eikseced.h>
#include <eikccpu.h>
#include <coemain.h>
#include <aknnotewrappers.h>
#include <eikspane.h>
#include <akntitle.h>
#include "YellowView.h"
#include "YellowContainer.h"
#include "Ldmti_12AppUi.h"
CYellowView* CYellowView::NewL()
{
CYellowView* self = NewLC();
CleanupStack::Pop(self);
return self;
}
CYellowView* CYellowView::NewLC()
{
CYellowView* self = new (ELeave) CYellowView();
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
void CYellowView::ConstructL()
{
BaseConstructL();
}
CYellowView::CYellowView()
{
m_pAppContainer = NULL;
}
CYellowView::~CYellowView()
{
}
TUid CYellowView::Id() const
{
return TUid::Uid(3);
}
void CYellowView::HandleCommandL(TInt aCommand)
{
}
void CYellowView::HandleClientRectChange()
{
if(m_pAppContainer)
{
m_pAppContainer->SetRect(ClientRect());
}
}
void CYellowView::DoActivateL(const TVwsViewId&, TUid, const TDesC8&)
{
m_pAppContainer = new( ELeave ) CYellowContainer();
m_pAppContainer->SetMopParent(this);
// TRect rc;
// rc.SetRect(ClientRect().iTl, TSize(SCREEN_WIDTH, SCREEN_BOTTON_Y-ClientRect().iTl.iY));
m_pAppContainer->ConstructL( ClientRect() );
AppUi()->AddToStackL( *this, m_pAppContainer );
}
void CYellowView::DoDeactivate()
{
if(m_pAppContainer)
{
AppUi()->RemoveFromStack( m_pAppContainer );
delete m_pAppContainer;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -