equal
deleted
inserted
replaced
227 void CWidgetUiWindowView::DynInitMenuPaneL( TInt aResourceId, |
227 void CWidgetUiWindowView::DynInitMenuPaneL( TInt aResourceId, |
228 CEikMenuPane* aMenuPane ) |
228 CEikMenuPane* aMenuPane ) |
229 { |
229 { |
230 if (!iWindowManager.ActiveWindow()) |
230 if (!iWindowManager.ActiveWindow()) |
231 return; |
231 return; |
|
232 #ifdef RD_SCALABLE_UI_V2 |
|
233 if (PenEnabled()&&(Layout_Meta_Data::IsLandscapeOrientation())&& IsEditMode()) |
|
234 { |
|
235 TInt newResId = Cba()->IsVisible() ? |
|
236 R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT : |
|
237 R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT_NO_SOFTKEYS; |
|
238 |
|
239 StatusPane()->SwitchLayoutL(newResId); |
|
240 StatusPane()->ApplyCurrentSettingsL(); |
|
241 StatusPane()->MakeVisible(ETrue); |
|
242 } |
|
243 #endif |
232 CBrCtlInterface* engine = iWindowManager.ActiveWindow()->Engine(); |
244 CBrCtlInterface* engine = iWindowManager.ActiveWindow()->Engine(); |
233 if( engine && (aResourceId == R_WIDGETUI_MENU || aResourceId >= R_CASCADE_MENU_1) ) |
245 if( engine && (aResourceId == R_WIDGETUI_MENU || aResourceId >= R_CASCADE_MENU_1) ) |
234 { |
246 { |
235 iIsOptionsMenuActivated = ETrue; |
247 iIsOptionsMenuActivated = ETrue; |
236 engine->AddOptionMenuItemsL( *aMenuPane, aResourceId ); |
248 engine->AddOptionMenuItemsL( *aMenuPane, aResourceId ); |
304 R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT : |
316 R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT : |
305 R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT_NO_SOFTKEYS; |
317 R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT_NO_SOFTKEYS; |
306 if (resId != newResId) |
318 if (resId != newResId) |
307 { |
319 { |
308 StatusPane()->SwitchLayoutL(newResId); |
320 StatusPane()->SwitchLayoutL(newResId); |
309 } |
321 } |
310 } |
322 } |
311 else //Portrait |
323 else //Portrait |
312 { |
324 { |
313 if (resId != R_AVKON_STATUS_PANE_LAYOUT_SMALL) |
325 if (resId != R_AVKON_STATUS_PANE_LAYOUT_SMALL) |
314 { |
326 { |