equal
deleted
inserted
replaced
31 #include <StringLoader.h> |
31 #include <StringLoader.h> |
32 #include <eikcapc.h> |
32 #include <eikcapc.h> |
33 #include <barsread.h> |
33 #include <barsread.h> |
34 #include <aknnotewrappers.h> |
34 #include <aknnotewrappers.h> |
35 #include <hlplch.h> |
35 #include <hlplch.h> |
|
36 #include "uiservicetabtracer.h" |
36 |
37 |
37 |
38 |
38 |
39 |
39 // -------------------------------------------------------------------------- |
40 // -------------------------------------------------------------------------- |
40 // CVIMPSTUiSearchQueryDialog::CVIMPSTUiSearchQueryDialog |
41 // CVIMPSTUiSearchQueryDialog::CVIMPSTUiSearchQueryDialog |
86 // CVIMPSTUiSearchQueryDialog::ConstructL |
87 // CVIMPSTUiSearchQueryDialog::ConstructL |
87 // -------------------------------------------------------------------------- |
88 // -------------------------------------------------------------------------- |
88 // |
89 // |
89 void CVIMPSTUiSearchQueryDialog::ConstructL() |
90 void CVIMPSTUiSearchQueryDialog::ConstructL() |
90 { |
91 { |
|
92 TRACER_AUTO; |
91 CAknDialog::ConstructL(R_SEARCH_EDITOR_MENUBAR); |
93 CAknDialog::ConstructL(R_SEARCH_EDITOR_MENUBAR); |
92 |
94 |
93 StoreTitlePaneTextL(); |
95 StoreTitlePaneTextL(); |
94 |
96 |
95 ConstructNaviPaneL(); |
97 ConstructNaviPaneL(); |
107 // CVIMPSTUiSearchQueryDialog::ExecuteLD |
109 // CVIMPSTUiSearchQueryDialog::ExecuteLD |
108 // -------------------------------------------------------------------------- |
110 // -------------------------------------------------------------------------- |
109 // |
111 // |
110 void CVIMPSTUiSearchQueryDialog::ExecuteLD() |
112 void CVIMPSTUiSearchQueryDialog::ExecuteLD() |
111 { |
113 { |
|
114 TRACER_AUTO; |
112 CleanupStack::PushL( this ); |
115 CleanupStack::PushL( this ); |
113 |
116 |
114 // Set status pane layout to the Phonebook 2 one |
117 // Set status pane layout to the Phonebook 2 one |
115 CEikStatusPane* statusPane = iAvkonAppUi->StatusPane(); |
118 CEikStatusPane* statusPane = iAvkonAppUi->StatusPane(); |
116 if (statusPane) |
119 if (statusPane) |
127 // -------------------------------------------------------------------------- |
130 // -------------------------------------------------------------------------- |
128 // |
131 // |
129 TKeyResponse CVIMPSTUiSearchQueryDialog::OfferKeyEventL |
132 TKeyResponse CVIMPSTUiSearchQueryDialog::OfferKeyEventL |
130 ( const TKeyEvent& aKeyEvent, TEventCode aType ) |
133 ( const TKeyEvent& aKeyEvent, TEventCode aType ) |
131 { |
134 { |
|
135 TRACER_AUTO; |
132 TKeyResponse ret(EKeyWasNotConsumed); |
136 TKeyResponse ret(EKeyWasNotConsumed); |
133 |
137 |
134 ret = CAknForm::OfferKeyEventL( aKeyEvent, aType ); |
138 ret = CAknForm::OfferKeyEventL( aKeyEvent, aType ); |
135 isEndKeyPressed = ETrue; |
139 isEndKeyPressed = ETrue; |
136 if ( ret == EKeyWasConsumed && aKeyEvent.iCode != EKeyEscape ) |
140 if ( ret == EKeyWasConsumed && aKeyEvent.iCode != EKeyEscape ) |
182 // CVIMPSTUiSearchQueryDialog::OkToExitL |
186 // CVIMPSTUiSearchQueryDialog::OkToExitL |
183 // -------------------------------------------------------------------------- |
187 // -------------------------------------------------------------------------- |
184 // |
188 // |
185 TBool CVIMPSTUiSearchQueryDialog::OkToExitL( TInt aKeycode ) |
189 TBool CVIMPSTUiSearchQueryDialog::OkToExitL( TInt aKeycode ) |
186 { |
190 { |
|
191 TRACER_AUTO; |
187 TBool ret = EFalse; |
192 TBool ret = EFalse; |
188 switch( aKeycode ) |
193 switch( aKeycode ) |
189 { |
194 { |
190 case EAknSoftkeyEmpty : |
195 case EAknSoftkeyEmpty : |
191 { |
196 { |
277 // CVIMPSTUiSearchQueryDialog::ConstructContextMenuL |
282 // CVIMPSTUiSearchQueryDialog::ConstructContextMenuL |
278 // -------------------------------------------------------------------------- |
283 // -------------------------------------------------------------------------- |
279 // |
284 // |
280 inline void CVIMPSTUiSearchQueryDialog::ConstructContextMenuL() |
285 inline void CVIMPSTUiSearchQueryDialog::ConstructContextMenuL() |
281 { |
286 { |
|
287 TRACER_AUTO; |
282 CEikMenuBar* newMenuBar = new ( ELeave ) CEikMenuBar(); |
288 CEikMenuBar* newMenuBar = new ( ELeave ) CEikMenuBar(); |
283 CleanupStack::PushL( newMenuBar ); |
289 CleanupStack::PushL( newMenuBar ); |
284 newMenuBar->ConstructL |
290 newMenuBar->ConstructL |
285 ( this, NULL, R_SEARCH_EDITOR_CONTEXT_MENUBAR ); |
291 ( this, NULL, R_SEARCH_EDITOR_CONTEXT_MENUBAR ); |
286 iEikonEnv->EikAppUi()->AddToStackL( newMenuBar, ECoeStackPriorityMenu, |
292 iEikonEnv->EikAppUi()->AddToStackL( newMenuBar, ECoeStackPriorityMenu, |
293 // CVIMPSTUiSearchQueryDialog::ConstructNaviPaneL |
299 // CVIMPSTUiSearchQueryDialog::ConstructNaviPaneL |
294 // -------------------------------------------------------------------------- |
300 // -------------------------------------------------------------------------- |
295 // |
301 // |
296 inline void CVIMPSTUiSearchQueryDialog::ConstructNaviPaneL() |
302 inline void CVIMPSTUiSearchQueryDialog::ConstructNaviPaneL() |
297 { |
303 { |
|
304 TRACER_AUTO; |
298 CEikStatusPane* statusPane = iEikonEnv->AppUiFactory()->StatusPane(); |
305 CEikStatusPane* statusPane = iEikonEnv->AppUiFactory()->StatusPane(); |
299 if (statusPane && statusPane->PaneCapabilities |
306 if (statusPane && statusPane->PaneCapabilities |
300 ( TUid::Uid( EEikStatusPaneUidNavi ) ).IsPresent() ) |
307 ( TUid::Uid( EEikStatusPaneUidNavi ) ).IsPresent() ) |
301 { |
308 { |
302 // Create a default empty status pane, otherwise sync field will show |
309 // Create a default empty status pane, otherwise sync field will show |
403 // CVIMPSTUiSearchQueryDialog::UpdateCbasL |
410 // CVIMPSTUiSearchQueryDialog::UpdateCbasL |
404 // -------------------------------------------------------------------------- |
411 // -------------------------------------------------------------------------- |
405 // |
412 // |
406 void CVIMPSTUiSearchQueryDialog::UpdateCbasL() |
413 void CVIMPSTUiSearchQueryDialog::UpdateCbasL() |
407 { |
414 { |
|
415 TRACER_AUTO; |
408 if ( !AreAllControlsEmptyL() ) |
416 if ( !AreAllControlsEmptyL() ) |
409 { |
417 { |
410 if ( iCbaCommandSet != R_AVKON_SOFTKEYS_OK_CANCEL__OK ) |
418 if ( iCbaCommandSet != R_AVKON_SOFTKEYS_OK_CANCEL__OK ) |
411 { |
419 { |
412 SetCbaCommandSetL( R_AVKON_SOFTKEYS_OK_CANCEL__OK ); |
420 SetCbaCommandSetL( R_AVKON_SOFTKEYS_OK_CANCEL__OK ); |
430 // CVIMPSTUiSearchQueryDialog::SetCbaCommandSetL |
438 // CVIMPSTUiSearchQueryDialog::SetCbaCommandSetL |
431 // -------------------------------------------------------------------------- |
439 // -------------------------------------------------------------------------- |
432 // |
440 // |
433 void CVIMPSTUiSearchQueryDialog::SetCbaCommandSetL( TInt aResourceId ) |
441 void CVIMPSTUiSearchQueryDialog::SetCbaCommandSetL( TInt aResourceId ) |
434 { |
442 { |
|
443 TRACER_AUTO; |
435 CEikButtonGroupContainer& cba = ButtonGroupContainer(); |
444 CEikButtonGroupContainer& cba = ButtonGroupContainer(); |
436 cba.SetCommandSetL( aResourceId ); |
445 cba.SetCommandSetL( aResourceId ); |
437 iCbaCommandSet = aResourceId; |
446 iCbaCommandSet = aResourceId; |
438 cba.DrawDeferred(); |
447 cba.DrawDeferred(); |
439 } |
448 } |
450 // CVIMPSTUiSearchQueryDialog::ShowSearchUiFieldsL |
459 // CVIMPSTUiSearchQueryDialog::ShowSearchUiFieldsL |
451 // -------------------------------------------------------------------------- |
460 // -------------------------------------------------------------------------- |
452 // |
461 // |
453 void CVIMPSTUiSearchQueryDialog::ShowSearchUiFieldsL() |
462 void CVIMPSTUiSearchQueryDialog::ShowSearchUiFieldsL() |
454 { |
463 { |
|
464 TRACER_AUTO; |
455 TInt count = iUiFieldArray.Count(); |
465 TInt count = iUiFieldArray.Count(); |
456 for( TInt i = 0; i< count; i++ ) |
466 for( TInt i = 0; i< count; i++ ) |
457 { |
467 { |
458 MVIMPSTUiSearchField& field = iUiFieldArray.At(i); |
468 MVIMPSTUiSearchField& field = iUiFieldArray.At(i); |
459 if( iSearchType == EIMBasicSearch ) |
469 if( iSearchType == EIMBasicSearch ) |
476 // CVIMPSTUiSearchQueryDialog::IsBasicFieldAvailableL |
486 // CVIMPSTUiSearchQueryDialog::IsBasicFieldAvailableL |
477 // -------------------------------------------------------------------------- |
487 // -------------------------------------------------------------------------- |
478 // |
488 // |
479 TBool CVIMPSTUiSearchQueryDialog::IsBasicFieldAvailableL() |
489 TBool CVIMPSTUiSearchQueryDialog::IsBasicFieldAvailableL() |
480 { |
490 { |
|
491 TRACER_AUTO; |
481 TInt count = iUiFieldArray.Count(); |
492 TInt count = iUiFieldArray.Count(); |
482 for( TInt i = 0; i< count; i++ ) |
493 for( TInt i = 0; i< count; i++ ) |
483 { |
494 { |
484 MVIMPSTUiSearchField& field = iUiFieldArray.At(i); |
495 MVIMPSTUiSearchField& field = iUiFieldArray.At(i); |
485 if( field.IsBasicField() ) |
496 if( field.IsBasicField() ) |