// ---------------------------------------------------------------------------- // void CSetupWizardListView::DoActivateL( const TVwsViewId&, TUid, // const TDesC8& ) // Creates the Container class object. // ---------------------------------------------------------------------------- // void CSetupWizardListView::DoActivateL( const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/ ) { // Creates the Container class object. if ( !iContainer ) { iContainer = new( ELeave ) CSetupWizardListContainer( this ); iContainer->SetMopParent(this); iContainer->iPhotosAppUi=iPhotosAppUi; iContainer->ConstructL( ClientRect() ); // Adds Container to View control stack. AppUi()->AddToStackL( *this, iContainer ); iListBox = NULL; switch(iPhotosAppUi->iSettingsScreenValue){ case 0: CreateListBoxL(R_AKNEXSETTINGLIST_SETTING_LIST); break; case 1: CreateListBoxL(R_AKNEXCONTACTSSETTINGLIST_SETTING_LIST); break; case 2: CreateListBoxL(R_AKNEXPHOTOSSETTINGLIST_SETTING_LIST); break; case 3: CreateListBoxL(R_AKNEXSMSSETTINGLIST_SETTING_LIST); break; default: break; } } }
void CMyListBoxAppView::ConstructL(const TRect& aRect) { iIsDoubleLine = 0; CreateWindowL(); CreateListBoxL(); iTitle = CCknAppTitle::NewL(CCknAppTitle::EList); iTitle->SetContainerWindowL(*this); HBufC* text = iCoeEnv->AllocReadResourceLC(R_APP_TITLE); iTitle->SetTextL(*text, CCknAppTitle::EMainTitle); CleanupStack::PopAndDestroy(text); TRect titleRect(1, 1, aRect.Width()-KShadowMargin, iTitle->MinimumSize().iHeight); iTitle->SetRect(titleRect); // Indicate that the control is blank SetBlank(); // Set the control's border //SetBorder(TGulBorder::EFlatContainer); // Set the correct application view (Note: ESkinAppViewWithCbaNoToolband is the default) CknEnv::Skin().SetAppViewType(ESkinAppViewWithCbaNoToolband); SetRect(aRect); ActivateL(); }
// --------------------------------------------------------- // CCertManUIContainerTrust::ConstructL(const TRect& aRect) // EPOC two phased constructor // --------------------------------------------------------- // void CCertManUIContainerTrust::ConstructL(const TRect& aRect) { CERTMANUILOGGER_ENTERFN( " CCertManUIContainerTrust::ConstructL" ); CreateWindowL(); CreateListBoxL(); SetRect(aRect); iTrustedClients = iCoeEnv->ReadDesC16ArrayResourceL( R_CERTMANUI_VIEW_TRUST_SETTINGS_LISTBOX ); iTrustValues = iCoeEnv->ReadDesC16ArrayResourceL( R_CERTMANUI_TRUST_SETTINGS_VALUES ); TRAPD( error, iAppInfoManager = CCertificateAppInfoManager::NewL( iKeeper.iRfs, EFalse ) ); if ( error != KErrNone ) { if ( error == KErrNotSupported || error == KErrCorrupt || error == KErrNotReady || error == KErrArgument || error == KErrNotFound ) { iKeeper.ShowErrorNoteL( error ); User::Exit( KErrNone ); } else { User::Leave( error ); } } CERTMANUILOGGER_LEAVEFN( " CCertManUIContainerTrust::ConstructL" ); }
// ---------------------------------------------------------------------------- // CAknExQueryContainer::PopoutListBoxL() // Create handler. // ---------------------------------------------------------------------------- // void CAknExQueryContainer::PopoutListBoxL() { SetTextToLabelL( R_AKNEXQUERY_OPERATE_MESSAGE ); CreateListBoxL(); iHandler->HandleListBoxEventL( iListBox, MEikListBoxObserver::EEventEnterKeyPressed ); }
// ----------------------------------------------------------------------------- // CLandmarksInfoContainer::ConstructL // Symbian 2nd phase constructor can leave. // ----------------------------------------------------------------------------- // void CLandmarksInfoContainer::ConstructL(const TRect& aRect) { CreateWindowL(); CreateListBoxL(); // Create data model. iModel = new (ELeave) CLandmarksInfoModel(iEngine); SetRect(aRect); ActivateL(); }
// ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // void CMnrpNaviControl::ConstructL( const TRect& aRect, CMnrpEngine& aEngine ) { // Create a window for this application view CreateWindowL(); CreateListBoxL(); // Set the windows size SetRect( aRect ); iModel = CMnrpNaviModel::NewL( *this, aEngine ); // Activate the window, which makes it ready to be drawn ActivateL(); }
/* ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ void CYuccaSettings::ConstructL(TSettingsItem aSettings) { CreateWindowL(); iFileDate.HomeTime(); iAttr = EFalse; iSettings = aSettings; SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect()); CreateListBoxL(iSettings); ActivateL(); DrawNow(); }
/* ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ void CYuccaSettings::ConstructL(TBool aReadOnly,TBool aHidden,TBool aSystem,TTime aTime) { CreateWindowL(); iFileDate = aTime; iReadOnly = aReadOnly; iHidden = aHidden; iSystem = aSystem; iAttr = ETrue; SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect()); CreateListBoxL(iSettings); ActivateL(); DrawNow(); }
// --------------------------------------------------------- // CCertManUIContainerPersonal::ConstructL( // const TRect& aRect, TInt aCurrentPosition, TInt aTopItem) // EPOC two phased constructor // --------------------------------------------------------- // void CCertManUIContainerPersonal::ConstructL( const TRect& aRect, TInt aCurrentPosition, TInt aTopItem ) { CERTMANUILOGGER_ENTERFN( " CCertManUIContainerPersonal::ConstructL" ); CreateWindowL(); CreateListBoxL(); UpdateListBoxL( aCurrentPosition, aTopItem ); if ( iListBox ) { // Creates graphic. iListBox->ItemDrawer()->ColumnData()-> SetIconArray( iIconHandler->CreateIconArrayL() ); } SetRect( aRect ); CERTMANUILOGGER_LEAVEFN( " CCertManUIContainerPersonal::ConstructL" ); }