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