widgets/widgetapp/src/WidgetUiWindowView.cpp
changeset 38 6297cdf66332
parent 37 cb62a4f66ebe
child 59 1f3c3f2f5b0a
child 65 5bfc169077b2
--- a/widgets/widgetapp/src/WidgetUiWindowView.cpp	Thu Jan 07 13:31:38 2010 +0200
+++ b/widgets/widgetapp/src/WidgetUiWindowView.cpp	Mon Jan 18 21:20:18 2010 +0200
@@ -229,6 +229,18 @@
     {
     if (!iWindowManager.ActiveWindow())
         return;
+    #ifdef RD_SCALABLE_UI_V2
+    if (PenEnabled()&&(Layout_Meta_Data::IsLandscapeOrientation())&& IsEditMode())
+    	{
+    	TInt newResId = Cba()->IsVisible() ?
+			  R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT :
+			  R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT_NO_SOFTKEYS;
+		
+			StatusPane()->SwitchLayoutL(newResId);
+			StatusPane()->ApplyCurrentSettingsL();
+			StatusPane()->MakeVisible(ETrue);         
+    	}
+    #endif	
     CBrCtlInterface* engine = iWindowManager.ActiveWindow()->Engine();
     if( engine && (aResourceId == R_WIDGETUI_MENU || aResourceId >= R_CASCADE_MENU_1) )
         {
@@ -306,7 +318,7 @@
             if (resId != newResId)
                 {
                 StatusPane()->SwitchLayoutL(newResId);
-                }
+                }            
             }
         else //Portrait
             {