equal
deleted
inserted
replaced
25 #include <StringLoader.h> |
25 #include <StringLoader.h> |
26 #include <barsread.h> |
26 #include <barsread.h> |
27 #include <eikbtgpc.h> |
27 #include <eikbtgpc.h> |
28 #include <widgetmanagerview.rsg> |
28 #include <widgetmanagerview.rsg> |
29 #include <hscontentcontroller.h> |
29 #include <hscontentcontroller.h> |
|
30 #include <AknUtils.h> |
30 |
31 |
31 #include "wmplugin.h" |
32 #include "wmplugin.h" |
32 #include "widgetmanager.hrh" |
33 #include "widgetmanager.hrh" |
33 #include "wmmaincontainerview.h" |
34 #include "wmmaincontainerview.h" |
34 #include "wmresourceloader.h" |
35 #include "wmresourceloader.h" |
139 case EWmMainContainerViewHelpMenuItemCommand: |
140 case EWmMainContainerViewHelpMenuItemCommand: |
140 HandleHelpMenuItemSelectedL(); |
141 HandleHelpMenuItemSelectedL(); |
141 break; |
142 break; |
142 case EWmMainContainerViewBackMenuItemCommand: // flow through |
143 case EWmMainContainerViewBackMenuItemCommand: // flow through |
143 case EAknSoftkeyBack: |
144 case EAknSoftkeyBack: |
144 iWmPlugin.CloseView(); |
145 { |
145 break; |
146 if ( iWmMainContainer && |
|
147 !iWmMainContainer->IsLoadingWidgets() ) |
|
148 { |
|
149 iWmPlugin.CloseView(); |
|
150 } |
|
151 break; |
|
152 } |
146 case EWmMainContainerViewWiddetDetailsMenuItemCommand: |
153 case EWmMainContainerViewWiddetDetailsMenuItemCommand: |
147 HandleDetailsMenuItemSelectedL(); |
154 HandleDetailsMenuItemSelectedL(); |
148 break; |
155 break; |
149 case EAknSoftkeySelect: |
156 case EAknSoftkeySelect: |
150 if ( iWmMainContainer ) |
157 if ( iWmMainContainer ) |
174 // setup status pane layout |
181 // setup status pane layout |
175 StatusPane()->SwitchLayoutL( |
182 StatusPane()->SwitchLayoutL( |
176 R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT ); |
183 R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT ); |
177 StatusPane()->ApplyCurrentSettingsL(); |
184 StatusPane()->ApplyCurrentSettingsL(); |
178 |
185 |
|
186 // disable transparancy |
|
187 if ( StatusPane()->IsTransparent() ) |
|
188 { |
|
189 StatusPane()->EnableTransparent( EFalse ); |
|
190 } |
|
191 |
179 // title in status pane |
192 // title in status pane |
180 SetTitleL(); |
193 SetTitleL(); |
181 |
194 |
182 StatusPane()->DrawNow(); |
195 StatusPane()->DrawNow(); |
183 |
196 |
184 // update cba |
197 // update cba |
185 CEikButtonGroupContainer* bgc( Cba() ); |
198 CEikButtonGroupContainer* bgc( Cba() ); |
186 CEikCba* cba = static_cast< CEikCba* >( bgc->ButtonGroup() ); |
199 CEikCba* cba = static_cast< CEikCba* >( bgc->ButtonGroup() ); |
187 if ( cba ) |
200 if ( cba ) |
188 { |
201 { |
|
202 TInt cbaResourceId = ( AknLayoutUtils::MSKEnabled() ? |
|
203 R_AVKON_SOFTKEYS_OPTIONS_BACK__SELECT : |
|
204 R_AVKON_SOFTKEYS_OPTIONS_BACK ); |
|
205 |
|
206 cba->SetCommandSetL( cbaResourceId ); |
189 bgc->SetBoundingRect( TRect() ); |
207 bgc->SetBoundingRect( TRect() ); |
190 cba->DrawNow(); |
208 cba->DrawNow(); |
191 } |
209 } |
192 |
210 |
193 // create container |
211 // create container |