?? simplegridappui.cpp
字號:
/**
*
* @brief Definition of CSimpleGridAppUi
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
// Class include
#include "SimpleGridAppUi.h"
// System includes
#include <eikmenup.h> // CEikMenuPane
// User includes
#include "SimpleGridContainer.h" // CSimpleGridContainer
#include "SimpleGrid.hrh" // commands
#include "SimpleGrid.rsg"
// ================= 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 CSimpleGridAppUi::ConstructL()
{
BaseConstructL();
// Construct the container. N.B. Do not use a NewL function as the scroll bars
// will not work. You must set MOP parent BEFORE calling ConstructL
iAppContainer = new (ELeave) CSimpleGridContainer();
iAppContainer->SetMopParent(this);
iAppContainer->ConstructL(ClientRect());
AddToStackL(iAppContainer);
}
/**
* Destructor.
* Removes the application's container from the stack and deletes it.
*/
CSimpleGridAppUi::~CSimpleGridAppUi()
{
if (iAppContainer)
{
RemoveFromStack(iAppContainer);
delete iAppContainer;
}
}
/**
* From CEikAppUi, takes care of command handling.
*
* @param aCommand command to be handled
*/
void CSimpleGridAppUi::HandleCommandL(TInt aCommand)
{
switch (aCommand)
{
case ESimpleGridCmdPlayGame:
{
// play the currently selected saved game
break;
}
case EAknSoftkeyBack:
case EEikCmdExit:
{
Exit();
break;
}
default:
break;
}
}
// End of File
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -