?? simpledialog.cpp
字號:
/*
* ============================================================================
* Name : CDlgDialog from DlgDialog.h
* Part of : dlg
* Created : 2006-1-8 by
* Implementation notes:
* Initial content was generated by Series 60 AppWizard.
* Version :
* Copyright:
* ============================================================================
*/
// INCLUDE FILES
#include "SimpleDialog.h"
#include <eiklabel.h> // for example label control
#include <avkon.hrh>
#include <aknappui.h>
#include <eikedwin.h>
#include <stringloader.h>
#include "dialog.hrh"
#include <dialog.rsg>
// ================= MEMBER FUNCTIONS =======================
// Destructor
CSimpleDialog::~CSimpleDialog()
{
}
//constructor
CSimpleDialog::CSimpleDialog()
{
}
// ---------------------------------------------------------
// CDlgDialog::OkToExitL(TInt aButtonId)
// called by framework when the softkey is pressed
// ---------------------------------------------------------
//
TBool CSimpleDialog::OkToExitL(TInt aButtonId)
{
// Translate the button presses into commands for the appui & current
// view to handle
if ( aButtonId == EAknSoftkeyOk )
{
CEikEdwin* editor=static_cast<CEikEdwin*>(ControlOrNull(EConfirmaionNoteDlgCIdEditor));
if(editor)
{
editor->GetText(iName);
}
}
return ETrue;
}
// ---------------------------------------------------------
// CDlgDialog::PreLayoutDynInitL();
// called by framework before dialog is shown
// ---------------------------------------------------------
//
void CSimpleDialog::PreLayoutDynInitL()
{
CEikLabel* label=static_cast<CEikLabel*>(ControlOrNull(EConfirmationNoteDlgCIdFileName));
if(label)
{
HBufC* labelText=StringLoader::LoadLC(R_LABEL_TEXT);
label->SetTextL(*labelText);
CleanupStack::PopAndDestroy(labelText);
}
}
TBool CSimpleDialog::RunDlgLD()
{
CSimpleDialog* dialog=new(ELeave) CSimpleDialog();
return dialog->ExecuteLD(R_DIALOG_EDIT_DIALOG);
// return dialog->ExecuteLD(R_DIALOG_MUTIPLE_DLG);
// return ETrue;
}
// End of File
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -