📄 aknexsliderappui.cpp
字号:
/* Copyright (c) 2004, Nokia. All rights reserved */
#include "AknExSliderAppUi.h"
#include "AknExSliderView.h"
#include <aknviewappui.h>
#include <avkon.hrh>
// ================= MEMBER FUNCTIONS =========================================
// ----------------------------------------------------------------------------
// CAknExSliderAppUi::CAknExSliderAppUi()
// Default constructor.
// ----------------------------------------------------------------------------
//
CAknExSliderAppUi::CAknExSliderAppUi()
{
}
// ----------------------------------------------------------------------------
// CAknExSliderAppUi::ConstructL()
// Constructor.
// Creates view class object.
// ----------------------------------------------------------------------------
//
void CAknExSliderAppUi::ConstructL()
{
BaseConstructL();
// Creates CAknExSliderView object.
CAknExSliderView* view = new( ELeave ) CAknExSliderView;
CleanupStack::PushL( view ); // Pushes view to clean-up stack.
AddViewL( view ); // Transfers ownership to CAknViewAppUi.
CleanupStack::Pop(); // Pops from clean-up stack. ( view )
ActivateLocalViewL( view->Id() ); // Activates the view.
}
// ----------------------------------------------------------------------------
// CAknExSliderAppUi::~CAknExSliderAppUi()
// Destructor.
// ----------------------------------------------------------------------------
//
CAknExSliderAppUi::~CAknExSliderAppUi()
{
}
// ----------------------------------------------------------------------------
// CAknExSliderAppUi::HandleCommandL()
// Handles the commands.
// ----------------------------------------------------------------------------
//
void CAknExSliderAppUi::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 + -