equal
deleted
inserted
replaced
133 SetOwnershipType( ELbmDoesNotOwnItemArray ); |
133 SetOwnershipType( ELbmDoesNotOwnItemArray ); |
134 SetIconArrayL( iIcons ); |
134 SetIconArrayL( iIcons ); |
135 |
135 |
136 STATIC_CAST( CEikServAppUi*, |
136 STATIC_CAST( CEikServAppUi*, |
137 CCoeEnv::Static()->AppUi() )->SuppressAppSwitching( ETrue ); |
137 CCoeEnv::Static()->AppUi() )->SuppressAppSwitching( ETrue ); |
|
138 |
|
139 // Hide Options button if single-click enabled |
|
140 // |
|
141 if ( static_cast< CAknAppUi* >( iCoeEnv->AppUi() )->IsSingleClickCompatible() ) |
|
142 { |
|
143 CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current(); |
|
144 cba->MakeCommandVisible( EAknSoftkeyOptions, EFalse ); |
|
145 cba->DrawDeferred(); |
|
146 } |
138 |
147 |
139 iExpiryTimer = CExpiryTimer::NewL( *this ); |
148 iExpiryTimer = CExpiryTimer::NewL( *this ); |
140 iExpiryTimer->Start(); |
149 iExpiryTimer->Start(); |
141 |
150 |
142 CLOG_LEAVEFN( "CSelectConnectionDialog::PreLayoutDynInitL " ); |
151 CLOG_LEAVEFN( "CSelectConnectionDialog::PreLayoutDynInitL " ); |
175 completeCode = KErrCancel; |
184 completeCode = KErrCancel; |
176 result = ETrue; |
185 result = ETrue; |
177 } |
186 } |
178 else if ( aButtonId == EAknSoftkeyOptions ) |
187 else if ( aButtonId == EAknSoftkeyOptions ) |
179 { |
188 { |
180 if ( !( ListBox()->View()->ItemDrawer()->Flags() |
189 DisplayMenuL(); |
181 & CListItemDrawer::EDisableHighlight ) ) |
|
182 { |
|
183 DisplayMenuL(); |
|
184 } |
|
185 else |
|
186 { |
|
187 ListBox()->View()->ItemDrawer()->ClearFlags( |
|
188 CListItemDrawer::EDisableHighlight ); |
|
189 DrawNow(); |
|
190 } |
|
191 } |
190 } |
192 |
191 |
193 if ( result ) |
192 if ( result ) |
194 { |
193 { |
195 iFromOkToExit = ETrue; |
194 iFromOkToExit = ETrue; |
445 cba.SetCommandL( EAknSoftkeyDone, label->Des() ); |
444 cba.SetCommandL( EAknSoftkeyDone, label->Des() ); |
446 CleanupStack::PopAndDestroy(); // label |
445 CleanupStack::PopAndDestroy(); // label |
447 cba.DrawDeferred(); |
446 cba.DrawDeferred(); |
448 } |
447 } |
449 |
448 |
|
449 // Show Options button if some listbox row gets highlighted |
|
450 // |
|
451 if ( static_cast< CAknAppUi* >( iCoeEnv->AppUi() )->IsSingleClickCompatible() ) |
|
452 { |
|
453 CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current(); |
|
454 |
|
455 if ( ( ListBox()->View()->ItemDrawer()->Flags() |
|
456 & CListItemDrawer::ESingleClickDisabledHighlight ) |
|
457 ) |
|
458 { |
|
459 cba->MakeCommandVisible( EAknSoftkeyOptions, EFalse ); |
|
460 } |
|
461 else |
|
462 { |
|
463 cba->MakeCommandVisible( EAknSoftkeyOptions, ETrue ); |
|
464 } |
|
465 |
|
466 cba->DrawDeferred(); |
|
467 } |
|
468 |
450 CLOG_LEAVEFN( "CSelectConnectionDialog::OfferKeyEventL" ); |
469 CLOG_LEAVEFN( "CSelectConnectionDialog::OfferKeyEventL" ); |
451 |
470 |
452 return result; |
471 return result; |
453 } |
472 } |
454 |
473 |