📄 customctrldlgappui.cpp
字号:
/**
*
* @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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -