📄 wsexampledialog.cpp
字号:
//
//============================================================================
// Name : CWSExampleDialog from WSExampleDialog.h
// Part of : WSExample
// Created : 10/08/2005 by Forum Nokia
// Implementation notes: Initial content was generated by Series 60 AppWizard.
//
// Version : 1.0
// Copyright: Nokia Corporation
//============================================================================
//
// INCLUDE FILES
#include "WSExampleDialog.h"
#include <avkon.hrh>
#include <aknappui.h>
#include "WSExample.hrh"
// ================= MEMBER FUNCTIONS =======================
// Destructor
CWSExampleDialog::~CWSExampleDialog()
{
}
// ---------------------------------------------------------
// CWSExampleDialog::OkToExitL(TInt aButtonId)
// called by framework when the OK button is pressed
// ---------------------------------------------------------
TBool CWSExampleDialog::OkToExitL(TInt aButtonId)
{
if ( aButtonId == EAknSoftkeyOptions )
{
iAvkonAppUi->ProcessCommandL( EAknSoftkeyOptions );
}
else if ( aButtonId == EAknSoftkeyExit )
{
iAvkonAppUi->ProcessCommandL( EEikCmdExit );
}
return EFalse;
}
// ---------------------------------------------------------
// CWSExampleDialog::PreLayoutDynInitL();
// called by framework before dialog is shown
// ---------------------------------------------------------
void CWSExampleDialog::PreLayoutDynInitL()
{
}
// ---------------------------------------------------------
// CWSExampleDialog::SetListBoxText();
// Set the main dialog listbox texts to aArray
// ---------------------------------------------------------
void CWSExampleDialog::SetListBoxTextL( CDesC16ArrayFlat* aArray )
{
CEikTextListBox* listBox =
static_cast <CEikTextListBox*>(ControlOrNull(EWSExampleDlgList));
CDesCArray* listArray =
static_cast<CDesCArray*>(listBox->Model()->ItemTextArray());
listArray->Reset();
for( TInt c = 0; c < aArray->Count(); c++ )
{
listArray->AppendL( aArray->operator[](c) );
}
listBox->HandleItemAdditionL();
listBox->SetCurrentItemIndexAndDraw( 0 );
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -