equal
deleted
inserted
replaced
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(); |
819 CControlGroup::Draw(); |
825 CControlGroup::Draw(); |
820 |
826 |
821 if(!iShadowRect.IsEmpty()) |
827 if(!iShadowRect.IsEmpty()) |
822 { |
828 { |
823 iShadowShown = ETrue; |
829 iShadowShown = ETrue; |
863 TAknsQsnOtherColorsIndex clrIndex; |
869 TAknsQsnOtherColorsIndex clrIndex; |
864 clrIndex = EAknsCIQsnOtherColorsCG9; |
870 clrIndex = EAknsCIQsnOtherColorsCG9; |
865 |
871 |
866 if ( AknsUtils::AvkonSkinEnabled() ) |
872 if ( AknsUtils::AvkonSkinEnabled() ) |
867 { |
873 { |
868 AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), |
874 AknsUtils::GetCachedColor( UiLayout()->SkinInstance(), |
869 penCor, KAknsIIDQsnTextColors, clrIndex ); |
875 penCor, KAknsIIDQsnTextColors, clrIndex ); |
870 } |
876 } |
871 |
877 |
872 DrawBackgroundToDevice(aFrameRect,BitmapDevice(),0,TRgb(KRgbWhite),penCor,EFalse); |
878 DrawBackgroundToDevice(aFrameRect,BitmapDevice(),0,TRgb(KRgbWhite),penCor,EFalse); |
873 |
879 |
1002 |
1008 |
1003 for(TInt i = idx + 1; i < iPopCtrlList.Count(); ++i) |
1009 for(TInt i = idx + 1; i < iPopCtrlList.Count(); ++i) |
1004 { |
1010 { |
1005 if(aCtrl->OrderPos() <= iPopCtrlList[i]->OrderPos()) |
1011 if(aCtrl->OrderPos() <= iPopCtrlList[i]->OrderPos()) |
1006 { |
1012 { |
|
1013 CFepUiBaseCtrl* temp = iPopCtrlList[i - 1]; |
1007 iPopCtrlList[i - 1] = iPopCtrlList[i]; |
1014 iPopCtrlList[i - 1] = iPopCtrlList[i]; |
|
1015 iPopCtrlList[i] = temp; |
1008 } |
1016 } |
1009 else |
1017 else |
1010 { |
1018 { |
1011 iPopCtrlList[i - 1] = aCtrl; |
1019 iPopCtrlList[i - 1] = aCtrl; |
1012 break; |
1020 break; |
1140 //move to desired position |
1148 //move to desired position |
1141 for(TInt i = idx -1 ; i >= 0 ; --i) |
1149 for(TInt i = idx -1 ; i >= 0 ; --i) |
1142 { |
1150 { |
1143 if(aCtrl->OrderPos() >= iPopCtrlList[i]->OrderPos()) |
1151 if(aCtrl->OrderPos() >= iPopCtrlList[i]->OrderPos()) |
1144 { |
1152 { |
1145 iPopCtrlList[i+1] = iPopCtrlList[i]; |
1153 CFepUiBaseCtrl* temp = iPopCtrlList[i + 1]; |
|
1154 iPopCtrlList[i + 1] = iPopCtrlList[i]; |
|
1155 iPopCtrlList[i] = temp; |
|
1156 |
1146 } |
1157 } |
1147 else |
1158 else |
1148 { |
1159 { |
1149 iPopCtrlList[i+1] = aCtrl; |
1160 iPopCtrlList[i+1] = aCtrl; |
1150 break; |
1161 break; |