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

📄 askonestationdialog.cpp

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

// INCLUDE FILES

// Class include
#include "AskOneStationDialog.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 CAskOneStationDialog::OkToExitL(TInt aButtonId)
	{
//	RFs fs;
//	fs.Connect();
//	RFileWriteStream ws;
//	ws.Open(fs,_L("C:\\Nokia\\Installs\\3.log"),EFileWrite);
//	ws.WriteL(_L("Begin"));
//	ws.CommitL();
	
				
	if (aButtonId == EAknSoftkeyOk)
	{
//		ws.WriteL(_L("1"));
//		ws.CommitL();
		iAppUi->ProcessCommandL( EAskOneStationOk );
//		ws.WriteL(_L("2"));
//		ws.CommitL();
	}else if (aButtonId == EAknSoftkeyCancel) {
		iAppUi->ProcessCommandL( EAskOneStationCancel);
	}
//	ws.WriteL(_L("3"));
//		ws.CommitL();
//	ws.Close();
//	fs.Close();
	return EFalse;
}

/**
* Called by the framework before the dialog is sized and laid out. 
* Initialises the control values.
*/
void CAskOneStationDialog::PreLayoutDynInitL()
	{
	CEikLabel* label = static_cast<CEikLabel*>(ControlOrNull(EAskOneStationDlgCIdName));
	if (label)
		{
		HBufC* labelText = StringLoader::LoadLC(R_ENTER_STATION_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 CAskOneStationDialog::RunDlgLD (TDes& aTrainName,CTrainAppUi* aAppUi)
	{
		CAskOneStationDialog* askTrainNameDialog = new (ELeave) CAskOneStationDialog(aTrainName);
		askTrainNameDialog->SetMopParent(aAppUi);
		return askTrainNameDialog->ExecuteLD(R_ASK_TRAIN_DIALOG);
	}
	*/
// End of File

⌨️ 快捷键说明

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