📄 markablelistappui.cpp
字号:
/**
*
* @brief Definition of CMarkableListAppUi
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
// Class include
#include "MarkableListAppUi.h"
// System includes
// User includes
#include "MarkableListContainer.h" // CMarkableListContainer
#include "MarkableList.hrh" // commands
// ================= MEMBER FUNCTIONS =======================
/**
* Symbian OS 2nd phase constructor. Constructs the application's container,
* setting itself as the container's MOP parent, and adds it to the control
* stack.
*/
void CMarkableListAppUi::ConstructL()
{
BaseConstructL();
iAppContainer = CMarkableListContainer::NewL(ClientRect());
iAppContainer->SetMopParent(this);
AddToStackL(iAppContainer);
}
/**
* Destructor.
* Removes the application's container from the stack and deletes it.
*/
CMarkableListAppUi::~CMarkableListAppUi()
{
if (iAppContainer)
{
RemoveFromStack(iAppContainer);
delete iAppContainer;
}
}
/**
* From CEikAppUi, takes care of command handling.
*
* @param aCommand command to be handled
*/
void CMarkableListAppUi::HandleCommandL(TInt aCommand)
{
switch (aCommand)
{
case EMarkableListCmdPlayGame:
{
// play the currently selected saved game
iAppContainer->PlaySelectedGame();
break;
}
case EMarkableListCmdDelete:
{
iAppContainer->DeleteSelectedL();
break;
}
case EAknCmdMark:
case EAknCmdUnmark:
case EAknMarkAll:
case EAknUnmarkAll:
{
iAppContainer->HandleMarkCommandL (aCommand);
break;
}
case EAknSoftkeyBack:
case EEikCmdExit:
{
Exit();
break;
}
default:
break;
}
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -