textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutrootctrl.cpp
branchRCL_3
changeset 20 ebd48d2de13c
parent 15 6c2c2d3ab788
child 21 ecbabf52600f
equal deleted inserted replaced
19:ac7e4d1d9209 20:ebd48d2de13c
   813 void CFepUiLayoutRootCtrl::Draw()
   813 void CFepUiLayoutRootCtrl::Draw()
   814     {
   814     {
   815 
   815 
   816 	if(!AbleToDraw())
   816 	if(!AbleToDraw())
   817         return;
   817         return;
   818     
   818 	
   819     if(UiLayout()->NotDrawToLayoutDevice())
       
   820 	    {
       
   821 	    HandleResourceChange(KPenInputOwnDeviceResourceChange);
       
   822 	    }
       
   823 	    
       
   824 	Clear();	
       
   825     CControlGroup::Draw();
   819     CControlGroup::Draw();
   826 
   820 
   827     if(!iShadowRect.IsEmpty())        
   821     if(!iShadowRect.IsEmpty())        
   828         {
   822         {
   829         iShadowShown = ETrue;
   823         iShadowShown = ETrue;
   869 	TAknsQsnOtherColorsIndex clrIndex;
   863 	TAknsQsnOtherColorsIndex clrIndex;
   870     clrIndex = EAknsCIQsnOtherColorsCG9;
   864     clrIndex = EAknsCIQsnOtherColorsCG9;
   871 
   865 
   872     if ( AknsUtils::AvkonSkinEnabled() )
   866     if ( AknsUtils::AvkonSkinEnabled() )
   873         {
   867         {
   874         AknsUtils::GetCachedColor( UiLayout()->SkinInstance(),
   868         AknsUtils::GetCachedColor( AknsUtils::SkinInstance(),
   875                                penCor, KAknsIIDQsnTextColors, clrIndex );
   869                                penCor, KAknsIIDQsnTextColors, clrIndex );
   876         }
   870         }
   877 
   871 
   878   	DrawBackgroundToDevice(aFrameRect,BitmapDevice(),0,TRgb(KRgbWhite),penCor,EFalse);
   872   	DrawBackgroundToDevice(aFrameRect,BitmapDevice(),0,TRgb(KRgbWhite),penCor,EFalse);
   879 	    
   873 	    
  1008     
  1002     
  1009     for(TInt i = idx + 1; i < iPopCtrlList.Count(); ++i)
  1003     for(TInt i = idx + 1; i < iPopCtrlList.Count(); ++i)
  1010         {
  1004         {
  1011         if(aCtrl->OrderPos() <= iPopCtrlList[i]->OrderPos())
  1005         if(aCtrl->OrderPos() <= iPopCtrlList[i]->OrderPos())
  1012             {
  1006             {
  1013             CFepUiBaseCtrl* temp = iPopCtrlList[i - 1];
       
  1014             iPopCtrlList[i - 1] = iPopCtrlList[i];
  1007             iPopCtrlList[i - 1] = iPopCtrlList[i];
  1015             iPopCtrlList[i] = temp;
       
  1016             }
  1008             }
  1017         else
  1009         else
  1018             {
  1010             {
  1019             iPopCtrlList[i - 1] = aCtrl;
  1011             iPopCtrlList[i - 1] = aCtrl;
  1020             break;
  1012             break;
  1148         //move to desired position
  1140         //move to desired position
  1149         for(TInt i = idx -1 ; i >= 0 ; --i)
  1141         for(TInt i = idx -1 ; i >= 0 ; --i)
  1150             {
  1142             {
  1151             if(aCtrl->OrderPos() >= iPopCtrlList[i]->OrderPos())
  1143             if(aCtrl->OrderPos() >= iPopCtrlList[i]->OrderPos())
  1152                 {
  1144                 {
  1153                 CFepUiBaseCtrl* temp = iPopCtrlList[i + 1];
  1145                 iPopCtrlList[i+1] = iPopCtrlList[i];
  1154                 iPopCtrlList[i + 1] = iPopCtrlList[i];
       
  1155                 iPopCtrlList[i] = temp;   
       
  1156 
       
  1157                 }
  1146                 }
  1158             else
  1147             else
  1159                 {
  1148                 {
  1160                 iPopCtrlList[i+1] = aCtrl;
  1149                 iPopCtrlList[i+1] = aCtrl;
  1161                 break;
  1150                 break;