951 // |
951 // |
952 void CWmMainContainer::StartLoadingWidgetsL() |
952 void CWmMainContainer::StartLoadingWidgetsL() |
953 { |
953 { |
954 if ( iFindbox && iFindPaneIsVisible ) |
954 if ( iFindbox && iFindPaneIsVisible ) |
955 { |
955 { |
956 iFindbox->ResetL(); |
956 iFindbox->ResetL(); |
957 iFindbox->SetSearchTextL( KNullDesC ); |
|
958 CAknFilteredTextListBoxModel* m = |
957 CAknFilteredTextListBoxModel* m = |
959 static_cast <CAknFilteredTextListBoxModel*> ( iWidgetsList->Model() ); |
958 static_cast <CAknFilteredTextListBoxModel*> ( iWidgetsList->Model() ); |
960 if ( m && m->Filter() ) |
959 if ( m && m->Filter() ) |
961 { |
960 { |
962 m->Filter()->ResetFilteringL(); |
961 m->Filter()->ResetFilteringL(); |
963 } |
962 } |
|
963 iFindbox->SetSearchTextL( KNullDesC ); |
|
964 iFindbox->DrawNow(); |
964 } |
965 } |
965 if ( !iWidgetLoader ) |
966 if ( !iWidgetLoader ) |
966 { |
967 { |
967 // create the widget loader AO |
968 // create the widget loader AO |
968 iWidgetLoader = CWmWidgetLoaderAo::NewL( iWmPlugin, *iWidgetsList ); |
969 iWidgetLoader = CWmWidgetLoaderAo::NewL( iWmPlugin, *iWidgetsList ); |
1007 |
1008 |
1008 // --------------------------------------------------------- |
1009 // --------------------------------------------------------- |
1009 // CWmMainContainer::Draw |
1010 // CWmMainContainer::Draw |
1010 // --------------------------------------------------------- |
1011 // --------------------------------------------------------- |
1011 // |
1012 // |
1012 void CWmMainContainer::Draw( const TRect& /*aRect*/ ) const |
1013 void CWmMainContainer::Draw( const TRect& aRect ) const |
1013 { |
1014 { |
1014 CWindowGc& gc = SystemGc(); |
1015 CWindowGc& gc = SystemGc(); |
1015 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
1016 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
1016 MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); |
1017 MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); |
1017 AknsDrawUtils::Background( skin, cc, this, gc, Rect() ); |
1018 AknsDrawUtils::Background( skin, cc, this, gc, aRect ); |
1018 } |
1019 } |
1019 |
1020 |
1020 // --------------------------------------------------------- |
1021 // --------------------------------------------------------- |
1021 // CWmMainContainer::AddControlL |
1022 // CWmMainContainer::AddControlL |
1022 // --------------------------------------------------------- |
1023 // --------------------------------------------------------- |
1299 |
1300 |
1300 iFindbox->MakeVisible( EFalse ); |
1301 iFindbox->MakeVisible( EFalse ); |
1301 iFindPaneIsVisible = EFalse; |
1302 iFindPaneIsVisible = EFalse; |
1302 iWidgetsList->SetFindPaneIsVisible( EFalse ); |
1303 iWidgetsList->SetFindPaneIsVisible( EFalse ); |
1303 |
1304 |
|
1305 |
|
1306 // set soft key set |
|
1307 CEikButtonGroupContainer* cbaGroup = |
|
1308 CEikButtonGroupContainer::Current(); |
|
1309 TInt cbaResourceId = ( AknLayoutUtils::MSKEnabled() ? |
|
1310 R_AVKON_SOFTKEYS_OPTIONS_BACK__SELECT : |
|
1311 R_AVKON_SOFTKEYS_OPTIONS_BACK ); |
|
1312 cbaGroup->SetCommandSetL( cbaResourceId ); |
|
1313 |
1304 if (aLayout) //no need to draw UI if exiting list |
1314 if (aLayout) //no need to draw UI if exiting list |
1305 { |
1315 { |
1306 LayoutControls(); |
1316 LayoutControls(); |
1307 |
|
1308 // set soft key set |
|
1309 CEikButtonGroupContainer* cbaGroup = |
|
1310 CEikButtonGroupContainer::Current(); |
|
1311 TInt cbaResourceId = ( AknLayoutUtils::MSKEnabled() ? |
|
1312 R_AVKON_SOFTKEYS_OPTIONS_BACK__SELECT : |
|
1313 R_AVKON_SOFTKEYS_OPTIONS_BACK ); |
|
1314 |
|
1315 cbaGroup->SetCommandSetL( cbaResourceId ); |
|
1316 cbaGroup->DrawNow(); |
1317 cbaGroup->DrawNow(); |
1317 |
1318 |
1318 UpdateFocusMode(); |
1319 UpdateFocusMode(); |
1319 DrawNow(); |
1320 DrawNow(); |
1320 } |
1321 } |