javauis/lcdui_akn/lcdui/src/CMIDDateFieldItem.cpp
branchRCL_3
changeset 23 e5618cc85d74
parent 19 71c436fe3ce0
child 24 6c158198356e
equal deleted inserted replaced
21:4376525cdefb 23:e5618cc85d74
    68         iAmPmToggleCommand->Dispose();
    68         iAmPmToggleCommand->Dispose();
    69         iAmPmToggleCommand = NULL;
    69         iAmPmToggleCommand = NULL;
    70     }
    70     }
    71     if (iEditor)
    71     if (iEditor)
    72     {
    72     {
       
    73 #ifndef RD_JAVA_S60_RELEASE_9_2
    73         iEditor->SetFocus(ETrue);   // needed to notify observers about editor destruction
    74         iEditor->SetFocus(ETrue);   // needed to notify observers about editor destruction
       
    75 #endif // RD_JAVA_S60_RELEASE_9_2
    74         delete iEditor;
    76         delete iEditor;
    75         iEditor = NULL;
    77         iEditor = NULL;
    76     }
    78     }
    77 }
    79 }
    78 
    80 
   815     TBool focus = IsFocused();
   817     TBool focus = IsFocused();
   816 
   818 
   817     iEditor->SetFocus(focus);
   819     iEditor->SetFocus(focus);
   818     if (focus)
   820     if (focus)
   819     {
   821     {
   820         // Text colour from skin - focused
       
   821         iEditor->SetSkinTextColorL(EAknsCIQsnTextColorsCG8);
       
   822         TRAP_IGNORE(iUIManager->OpenNaviPaneControllerL()->PauseTickerL(
   822         TRAP_IGNORE(iUIManager->OpenNaviPaneControllerL()->PauseTickerL(
   823                         TICKER_PAUSE_INTERVAL, this));
   823                         TICKER_PAUSE_INTERVAL, this));
   824     }
   824     }
   825     else
   825     else
   826     {
   826     {
   827         // Text colour from skin - unfocused
       
   828         iEditor->SetSkinTextColorL(EAknsCIQsnTextColorsCG6);
       
   829         TRAP_IGNORE(iUIManager->OpenNaviPaneControllerL()->PauseTickerL(
   827         TRAP_IGNORE(iUIManager->OpenNaviPaneControllerL()->PauseTickerL(
   830                         0, this));
   828                         0, this));
   831 #ifdef RD_SCALABLE_UI_V2
   829 #ifdef RD_SCALABLE_UI_V2
   832         iGrabbingControl = NULL;
   830         iGrabbingControl = NULL;
   833 #endif
   831 #endif
   834     }
   832     }
       
   833 
       
   834     TRAP_IGNORE(UpdateTextColorsL());
   835 
   835 
   836     CMIDControlItem::FocusChanged(aDrawNow);
   836     CMIDControlItem::FocusChanged(aDrawNow);
   837 
   837 
   838     DoSafeDraw();
   838     DoSafeDraw();
   839 }
   839 }
   950     {
   950     {
   951         iEditor->SetFocus(ETrue);
   951         iEditor->SetFocus(ETrue);
   952     }
   952     }
   953 }
   953 }
   954 
   954 
       
   955 void CMIDDateFieldItem::UpdateTextColorsL()
       
   956 {
       
   957     // Set color for content text according to item highlight
       
   958     // (logical color constants are defined in lcdui.h)
       
   959     if (iHighlighted)
       
   960     {
       
   961         // Text colour from skin - highlighted
       
   962         iEditor->SetSkinTextColorL(KHighlightedItemTextColor);
       
   963     }
       
   964     else
       
   965     {
       
   966         // Text colour from skin - unfocused
       
   967         iEditor->SetSkinTextColorL(KNonHighlightedItemTextColor);
       
   968     }
       
   969 }
       
   970 
   955 // End of File
   971 // End of File