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

📄 asktraindialog.cpp

📁 SYMBIAN S60 2ND列车时刻表软件
💻 CPP
字号:
/**
* 
* @brief Definition of CAskTrainDialog
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

// INCLUDE FILES

// Class include
#include "AskTrainDialog.h"

// System includes
#include <avkon.hrh> // EAknSoftkeyOk
#include <Train.rsg>
#include <eikedwin.h> // CEikEdwin
#include <eiklabel.h> // CEikLabel
#include <stringloader.h> // StringLoader

// User includes
#include "MagicTrain.hrh" // dialog lines

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

/**
* Called by the framework when a soft key is pressed.
* Saves the dialog data back to the model
* @param aButtonId The soft key which was pressed
*/

TBool CAskTrainDialog::OkToExitL(TInt aButtonId)
	{
	if (aButtonId == EAknSoftkeyOk)
	{
		iAppUi->ProcessCommandL( EAskTrainOk );
	}else if (aButtonId == EAknSoftkeyCancel) {
		iAppUi->ProcessCommandL( EAskTrainCancel);
	}
	return EFalse;
}

/**
* Called by the framework before the dialog is sized and laid out. 
* Initialises the control values.
*/
void CAskTrainDialog::PreLayoutDynInitL()
	{
	CEikLabel* label = static_cast<CEikLabel*>(ControlOrNull(EAsktrainDlgCIdName));
	if (label)
		{
		HBufC* labelText = StringLoader::LoadLC(R_ENTER_TRAIN_NAME_TEXT);
		label->SetTextL(*labelText);
		CleanupStack::PopAndDestroy(labelText);
		}
	}


/**
* Static construction and execution of the dialog. 
* @param aPlayerName the name which this dialog will edit
* @return ETrue if the dialog is dismissed with a positive action, EFalse otherwise
*/
/*
TBool CAskTrainDialog::RunDlgLD (TDes& aTrainName,CTrainAppUi* aAppUi)
	{
		CAskTrainDialog* askTrainNameDialog = new (ELeave) CAskTrainDialog(aTrainName);
		askTrainNameDialog->SetMopParent(aAppUi);
		return askTrainNameDialog->ExecuteLD(R_ASK_TRAIN_DIALOG);
	}
	*/
// End of File

⌨️ 快捷键说明

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