basicdrawingappui.cpp

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C++ 代码 · 共 73 行

CPP
73
字号
/**
 * 
 * @brief Definition of CBasicDrawingAppUi
 *
 * Copyright (c) EMCC Software Ltd 2003
 * @version 1.0
 */

// INCLUDE FILES

// Class includes
#include "BasicDrawingAppUi.h"

// System includes
#include <aknnavi.h>    // CAknNavigationControlContainer
#include <aknnavide.h>    // CAknNavigationDecorator

// User includes
#include "BasicDrawingView.h"    // CBasicDrawingView

// ================= MEMBER FUNCTIONS =======================

/**
 * Symbian OS 2nd phase constructor.  Constructs the application view, 
 * transferring ownership to the AppUi.
 */    
void CBasicDrawingAppUi::ConstructL()
{
    BaseConstructL();

    // Show tabs for main views from resources
    CEikStatusPane* sp = StatusPane();

    // Fetch pointer to the default navi pane control
    iNaviPane = (CAknNavigationControlContainer*)sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi));

    CBasicDrawingView* basicView = CBasicDrawingView::NewLC();
    AddViewL(basicView);      // transfer ownership to CAknViewAppUi
    CleanupStack::Pop(basicView);    

    SetDefaultViewL(*basicView);
}

/**
 * Destructor
 */
CBasicDrawingAppUi::~CBasicDrawingAppUi()
{
    delete iDecoratedTabGroup;
}

/**
 * From CEikAppUi, takes care of command handling for the BasicDrawing
 * application, which in this case is just exiting the application.
 *
 * @param aCommand command to be handled
 */
void CBasicDrawingAppUi::HandleCommandL(TInt aCommand)
{
    switch (aCommand)
    {
        case EEikCmdExit:
        {
            Exit();
            break;
        }
        default:
            break;      
    }
}

// End of File  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?