customctrldlgappui.cpp
来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C++ 代码 · 共 71 行
CPP
71 行
/**
*
* @brief Definition of CCustomCtrlDlgAppUi
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
// Class include
#include "CustomCtrlDlgAppUi.h"
// System includes
#include <CustomCtrlDlg.rsg> // R_CUSTOMCTRLDLG_DIALOG
// User includes
#include "CustomCtrlDlgDialog.h" // CCustomCtrlDlgDialog
#include "CustomCtrlDlgCustomControlDialog.h" // CCustomCtrlDlgCustomDialog
// ================= MEMBER FUNCTIONS =======================
/**
* Symbian OS 2nd phase constructor. Constructs and executes the application's dialog,
* setting itself as the dialog's MOP parent, and adds it to the control
* stack.
*/
void CCustomCtrlDlgAppUi::ConstructL()
{
BaseConstructL();
iAppDialog = new (ELeave) CCustomCtrlDlgDialog;
iAppDialog->SetMopParent(this);
iAppDialog->ExecuteLD(R_CUSTOMCTRLDLG_DIALOG);
AddToStackL(iAppDialog);
}
/**
* Destructor.
* Removes the application's dialog from the stack and deletes it.
*/
CCustomCtrlDlgAppUi::~CCustomCtrlDlgAppUi()
{
if (iAppDialog)
{
RemoveFromStack(iAppDialog);
delete iAppDialog;
}
}
/**
* From CEikAppUi, takes care of command handling.
*
* @param aCommand command to be handled
*/
void CCustomCtrlDlgAppUi::HandleCommandL(TInt aCommand)
{
switch (aCommand)
{
case ECustomCtrlDlgCmdNewGame:
CCustomCtrlDlgCustomControlDialog::RunDlgLD();
break;
case EEikCmdExit:
Exit();
break;
default:
break;
}
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?