/*
============================================================================
Name : CMainViewAppUi from MainViewAppui.cpp
Author :
Version :
Copyright : Your copyright notice
Description : CMainViewAppUi implementation
============================================================================
*/
// INCLUDE FILES
#include "MainViewAppui.h"
#include "MainViewView.h"
#include "MainViewView2.h"
#include <MainView.rsg>
#include "MainView.hrh"
#include <avkon.hrh>
// ================= MEMBER FUNCTIONS =======================
//
// ----------------------------------------------------------
// CMainViewAppUi::ConstructL()
//
// ----------------------------------------------------------
//
void CMainViewAppUi::ConstructL()
{
BaseConstructL();
// Show tabs for main views from resources
CMainViewView* view1 = new (ELeave) CMainViewView;
CleanupStack::PushL( view1 );
view1->ConstructL();
AddViewL( view1 ); // transfer ownership to CAknViewAppUi
CleanupStack::Pop(); // view1
CMainViewView2* view2 = new (ELeave) CMainViewView2;
CleanupStack::PushL( view2 );
view2->ConstructL();
AddViewL( view2 ); // transfer ownership to CAknViewAppUi
CleanupStack::Pop(); // view2
SetDefaultViewL(*view1);
}
// ----------------------------------------------------
// CMainViewAppUi::~CMainViewAppUi()
// Destructor
// Frees reserved resources
// ----------------------------------------------------
//
CMainViewAppUi::~CMainViewAppUi()
{
delete iDecoratedTabGroup;
}
// ------------------------------------------------------------------------------
// CMainViewAppUi::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
// This function is called by the EIKON framework just before it displays
// a menu pane. Its default implementation is empty, and by overriding it,
// the application can set the state of menu items dynamically according
// to the state of application data.
// ------------------------------------------------------------------------------
//
void CMainViewAppUi::DynInitMenuPaneL(
TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/)
{
}
// ----------------------------------------------------
// CMainViewAppUi::HandleKeyEventL(
// const TKeyEvent& aKeyEvent,TEventCode /*aType*/)
// takes care of key event handling
// ----------------------------------------------------
//
TKeyResponse CMainViewAppUi::HandleKeyEventL(
const TKeyEvent& aKeyEvent,TEventCode aType)
{
return EKeyWasNotConsumed;
}
// ----------------------------------------------------
// CMainViewAppUi::HandleCommandL(TInt aCommand)
// takes care of command handling
// ----------------------------------------------------
//
void CMainViewAppUi::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EEikCmdExit:
{
Exit();
break;
}
case EMainViewCmdAppTest:
{
iEikonEnv->InfoMsg(_L("test"));
break;
}
// TODO: Add Your command handling code here
default:
break;
}
}
// ----------------------------------------------------
// CMainViewAppUi::TabChangedL(TInt aIndex)
// This method gets called when CAknTabGroup active
// tab has changed.
// ----------------------------------------------------
//
void CMainViewAppUi::TabChangedL(TInt aIndex)
{
ActivateLocalViewL(TUid::Uid(iTabGroup->TabIdFromIndex(aIndex)));
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
分享一个漂亮的Symbian s60 自定义网格(N宫格)控件 (150个子文件)
MainView.mmp.bak 9KB
333_mask.bmp 17KB
304_mask.bmp 17KB
338_mask.bmp 17KB
305_mask.bmp 17KB
325_mask.bmp 17KB
317.bmp 17KB
329_mask.bmp 17KB
354_mask.bmp 17KB
305.bmp 17KB
356.bmp 17KB
301_mask.bmp 17KB
310.bmp 17KB
307_mask.bmp 17KB
352.bmp 17KB
331.bmp 17KB
313_mask.bmp 17KB
327_mask.bmp 17KB
318.bmp 17KB
321.bmp 17KB
318_mask.bmp 17KB
316.bmp 17KB
343.bmp 17KB
314_mask.bmp 17KB
336.bmp 17KB
332.bmp 17KB
344.bmp 17KB
303_mask.bmp 17KB
343_mask.bmp 17KB
334.bmp 17KB
315.bmp 17KB
328_mask.bmp 17KB
354.bmp 17KB
340_mask.bmp 17KB
353_mask.bmp 17KB
353.bmp 17KB
355.bmp 17KB
323.bmp 17KB
315_mask.bmp 17KB
351_mask.bmp 17KB
350_mask.bmp 17KB
319.bmp 17KB
322_mask.bmp 17KB
339_mask.bmp 17KB
308.bmp 17KB
301.bmp 17KB
349_mask.bmp 17KB
322.bmp 17KB
319_mask.bmp 17KB
329.bmp 17KB
307.bmp 17KB
312.bmp 17KB
316_mask.bmp 17KB
326_mask.bmp 17KB
309_mask.bmp 17KB
311_mask.bmp 17KB
344_mask.bmp 17KB
327.bmp 17KB
351.bmp 17KB
311.bmp 17KB
345.bmp 17KB
320.bmp 17KB
346.bmp 17KB
339.bmp 17KB
352_mask.bmp 17KB
314.bmp 17KB
337_mask.bmp 17KB
345_mask.bmp 17KB
317_mask.bmp 17KB
306_mask.bmp 17KB
342_mask.bmp 17KB
309.bmp 17KB
306.bmp 17KB
335_mask.bmp 17KB
304.bmp 17KB
330_mask.bmp 17KB
341.bmp 17KB
356_mask.bmp 17KB
320_mask.bmp 17KB
325.bmp 17KB
312_mask.bmp 17KB
331_mask.bmp 17KB
349.bmp 17KB
332_mask.bmp 17KB
324_mask.bmp 17KB
308_mask.bmp 17KB
342.bmp 17KB
338.bmp 17KB
313.bmp 17KB
337.bmp 17KB
355_mask.bmp 17KB
350.bmp 17KB
302_mask.bmp 17KB
340.bmp 17KB
321_mask.bmp 17KB
341_mask.bmp 17KB
324.bmp 17KB
333.bmp 17KB
334_mask.bmp 17KB
302.bmp 17KB
共 150 条
- 1
- 2
资源评论
roshy
- 粉丝: 211
- 资源: 38
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功