textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutrootctrl.cpp
branchRCL_3
changeset 12 5e18d8c489d6
parent 9 e6a39382bb9c
child 13 1bbdde98cc2d
equal deleted inserted replaced
11:c8fb4cf7b3ae 12:5e18d8c489d6
   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 	Clear();	
   819     CControlGroup::Draw();
   820     CControlGroup::Draw();
   820 
   821 
   821     if(!iShadowRect.IsEmpty())        
   822     if(!iShadowRect.IsEmpty())        
   822         {
   823         {
   823         iShadowShown = ETrue;
   824         iShadowShown = ETrue;
  1002     
  1003     
  1003     for(TInt i = idx + 1; i < iPopCtrlList.Count(); ++i)
  1004     for(TInt i = idx + 1; i < iPopCtrlList.Count(); ++i)
  1004         {
  1005         {
  1005         if(aCtrl->OrderPos() <= iPopCtrlList[i]->OrderPos())
  1006         if(aCtrl->OrderPos() <= iPopCtrlList[i]->OrderPos())
  1006             {
  1007             {
       
  1008             CFepUiBaseCtrl* temp = iPopCtrlList[i - 1];
  1007             iPopCtrlList[i - 1] = iPopCtrlList[i];
  1009             iPopCtrlList[i - 1] = iPopCtrlList[i];
       
  1010             iPopCtrlList[i] = temp;
  1008             }
  1011             }
  1009         else
  1012         else
  1010             {
  1013             {
  1011             iPopCtrlList[i - 1] = aCtrl;
  1014             iPopCtrlList[i - 1] = aCtrl;
  1012             break;
  1015             break;
  1140         //move to desired position
  1143         //move to desired position
  1141         for(TInt i = idx -1 ; i >= 0 ; --i)
  1144         for(TInt i = idx -1 ; i >= 0 ; --i)
  1142             {
  1145             {
  1143             if(aCtrl->OrderPos() >= iPopCtrlList[i]->OrderPos())
  1146             if(aCtrl->OrderPos() >= iPopCtrlList[i]->OrderPos())
  1144                 {
  1147                 {
  1145                 iPopCtrlList[i+1] = iPopCtrlList[i];
  1148                 CFepUiBaseCtrl* temp = iPopCtrlList[i + 1];
       
  1149                 iPopCtrlList[i + 1] = iPopCtrlList[i];
       
  1150                 iPopCtrlList[i] = temp;   
       
  1151 
  1146                 }
  1152                 }
  1147             else
  1153             else
  1148                 {
  1154                 {
  1149                 iPopCtrlList[i+1] = aCtrl;
  1155                 iPopCtrlList[i+1] = aCtrl;
  1150                 break;
  1156                 break;