graphicsdocument.cpp
来自「Symbian -画图程序 graphics-vc.rar」· C++ 代码 · 共 79 行
CPP
79 行
/* Copyright (c) 2004, Nokia. All rights reserved */
// INCLUDE FILES
#include "GraphicsAppUi.h"
#include "GraphicsDocument.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CGraphicsDocument::CGraphicsDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CGraphicsDocument::CGraphicsDocument( CEikApplication& aApp ) : CEikDocument
( aApp )
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CGraphicsDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CGraphicsDocument* CGraphicsDocument::NewL( CEikApplication& aApp )
{
CGraphicsDocument* self = NewLC( aApp );
CleanupStack::Pop();
return self;
}
// -----------------------------------------------------------------------------
// CGraphicsDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CGraphicsDocument* CGraphicsDocument::NewLC( CEikApplication& aApp )
{
CGraphicsDocument* self = new ( ELeave ) CGraphicsDocument( aApp );
CleanupStack::PushL( self );
self->ConstructL();
return self;
}
// -----------------------------------------------------------------------------
// CGraphicsDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CGraphicsDocument::ConstructL()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CGraphicsDocument::~CGraphicsDocument()
// Destructor.
// -----------------------------------------------------------------------------
//
CGraphicsDocument::~CGraphicsDocument()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CGraphicsDocument::CreateAppUiL()
// Constructs CreateAppUi.
// -----------------------------------------------------------------------------
//
CEikAppUi* CGraphicsDocument::CreateAppUiL()
{
// Create the application user interface, and return a pointer to it;
// the framework takes ownership of this object
return ( static_cast<CEikAppUi*>( new ( ELeave ) CGraphicsAppUi) );
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?