⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uiqappui.cpp

📁 symbian下开发软件时
💻 CPP
字号:
// uiqappui.cpp
// Copyright Symbian Ltd, John Pagonis 2005-2006, Symbian Developer Network

#include "projectAppUi.h" //includes the Qikon headers

void CProjectAppUi::ConstructUiVariantL()
    {
    // CQikAppUi::ConstructL completes the UI framework's
	// construction of the App UI.
	CQikAppUi::ConstructL();
    }

/**
    This method may be called by HandlecommandL(TInt aCommand) for GUI Variant
    specific command handling.
 */
void CProjectAppUi::VariantHandleCommandL(TInt /*aCommand*/)
    {
    /* you know what to do here

    switch(aCommand)
        {
        default:
            break;
        }
    */
    }

void CProjectAppUi::VariantDimButtons()
	{
	iButtonGroup = iEikonEnv->AppUiFactory()->ToolBar();
	iButtonGroup->DimCommand(EProjectAppCmdDoStuffCancel,ETrue);
	}

void CProjectAppUi::DimOption()
	{
	iButtonGroup->DimCommand(EProjectAppCmdDoStuffCancel,EFalse);
	iButtonGroup->DimCommand(EProjectAppCmdDoStuff,ETrue);
	iButtonGroup->DrawDeferred();
	}

void CProjectAppUi::DimCancelOption()
	{
	iButtonGroup->DimCommand(EProjectAppCmdDoStuffCancel,ETrue);
	iButtonGroup->DimCommand(EProjectAppCmdDoStuff,EFalse);
	iButtonGroup->DrawDeferred();
	}

/**
	This method may be called by DynInitMenuPaneL(TInt aMenuId,CEikMenuPane* aMenuPane),
	for GUI Variant specific command handling.
*/
void CProjectAppUi::VariantDynInitMenuPaneL(TInt aMenuId, CEikMenuPane* aMenuPane)
	{
	if(aMenuId == R_ACTIONS_MENU)
  		{
  		CEikMenuPaneItem::SData itemData;
  		itemData.iText=_L("Close (Debug)");
  		itemData.iCommandId=EEikCmdExit;
  		itemData.iFlags=0;
  		itemData.iCascadeId=0;
  		aMenuPane->AddMenuItemL(itemData);
  		}
	}


CProjectDocument::CProjectDocument(CEikApplication& aApp)
    : CQikDocument(aApp)
    {
    }

⌨️ 快捷键说明

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