equal
deleted
inserted
replaced
23 #include "AknUtils.h" |
23 #include "AknUtils.h" |
24 #include "aknqueryeditorindicator.h" |
24 #include "aknqueryeditorindicator.h" |
25 #include "aknQueryControl.h" |
25 #include "aknQueryControl.h" |
26 |
26 |
27 #include <AknTasHook.h> // for testability hooks |
27 #include <AknTasHook.h> // for testability hooks |
|
28 #include "akntrace.h" |
28 // |
29 // |
29 // CAknQueryEditIndicator |
30 // CAknQueryEditIndicator |
30 // Handles editor indicator for queries |
31 // Handles editor indicator for queries |
31 CAknQueryEditIndicator* CAknQueryEditIndicator::NewL(CCoeControl* aControl) |
32 CAknQueryEditIndicator* CAknQueryEditIndicator::NewL(CCoeControl* aControl) |
32 { |
33 { |
49 { |
50 { |
50 } |
51 } |
51 |
52 |
52 void CAknQueryEditIndicator::ConstructL(CCoeControl* aControl) |
53 void CAknQueryEditIndicator::ConstructL(CCoeControl* aControl) |
53 { |
54 { |
|
55 _AKNTRACE_FUNC_ENTER; |
54 if ( CAknEnv::Static()->TransparencyEnabled() ) |
56 if ( CAknEnv::Static()->TransparencyEnabled() ) |
55 { |
57 { |
56 // In transparency everything broke when this had its own |
58 // In transparency everything broke when this had its own |
57 // window. |
59 // window. |
58 SetContainerWindowL( *aControl ); |
60 SetContainerWindowL( *aControl ); |
68 CleanupStack::PopAndDestroy(); // resource reader |
70 CleanupStack::PopAndDestroy(); // resource reader |
69 |
71 |
70 // Set to zero size - derived queries must set extent in PreDynInitLayout |
72 // Set to zero size - derived queries must set extent in PreDynInitLayout |
71 SetExtent(TPoint(0,0), TSize(0,0)); |
73 SetExtent(TPoint(0,0), TSize(0,0)); |
72 ActivateL(); |
74 ActivateL(); |
|
75 _AKNTRACE_FUNC_EXIT; |
73 } |
76 } |
74 |
77 |
75 void CAknQueryEditIndicator::SetState(TAknEditingState aState) |
78 void CAknQueryEditIndicator::SetState(TAknEditingState aState) |
76 { |
79 { |
|
80 _AKNTRACE_FUNC_ENTER; |
|
81 _AKNTRACE( "[%s][%s] aState: %d", "CAknQueryEditIndicator", __FUNCTION__,aState); |
77 iState = aState; |
82 iState = aState; |
78 if (Observer()) |
83 if (Observer()) |
79 { |
84 { |
80 Observer()->HandleControlEventL( this, MCoeControlObserver::EEventStateChanged ); |
85 Observer()->HandleControlEventL( this, MCoeControlObserver::EEventStateChanged ); |
81 } |
86 } |
82 |
87 |
83 if ( iFlags.IsSet(CAknQueryControl::EEditorIndicatorOff) ) |
88 if ( iFlags.IsSet(CAknQueryControl::EEditorIndicatorOff) ) |
84 { |
89 { |
|
90 _AKNTRACE_FUNC_EXIT; |
85 return; |
91 return; |
86 } |
92 } |
87 |
93 |
88 if ( AknLayoutUtils::Variant() == EEuropeanVariant ) |
94 if ( AknLayoutUtils::Variant() == EEuropeanVariant ) |
89 { |
95 { |
368 } |
374 } |
369 else |
375 else |
370 { |
376 { |
371 DrawDeferred(); |
377 DrawDeferred(); |
372 } |
378 } |
|
379 _AKNTRACE_FUNC_EXIT; |
373 } |
380 } |
374 |
381 |
375 CAknIndicatorContainer* CAknQueryEditIndicator::IndicatorContainer() |
382 CAknIndicatorContainer* CAknQueryEditIndicator::IndicatorContainer() |
376 { |
383 { |
377 return this; |
384 return this; |