widgets/widgetapp/src/WidgetUiWindowView.cpp
branchRCL_3
changeset 94 919f36ff910f
parent 93 79859ed3eea9
--- a/widgets/widgetapp/src/WidgetUiWindowView.cpp	Tue Aug 31 16:17:46 2010 +0300
+++ b/widgets/widgetapp/src/WidgetUiWindowView.cpp	Wed Sep 01 12:28:30 2010 +0100
@@ -24,22 +24,22 @@
 #include "WidgetUiWindow.h"
 #include <WidgetUi.rsg>
 #include <Widgetmenu.rsg>
-#include <aknViewAppUi.h>
+#include <AknViewAppUi.h>
 #include <avkon.RSG>
 #include "WidgetUi.hrh"
 #include <aknenv.h>
-#include <AknIndicatorContainer.h>
+#include <aknindicatorcontainer.h>
 #include <aknnavi.h>
 #include <aknnavide.h>
 #include <aknEditStateIndicator.h>
-#include <StringLoader.h>
+#include <stringloader.h>
 #include <e32math.h>
 #include <AknSgcc.h>
 #include <akntitle.h>
 #include <centralrepository.h>
-#include <BrowserUiSDKCRKeys.h>
+#include <browseruisdkcrkeys.h>
 #ifdef RD_SCALABLE_UI_V2
-#include <layoutmetadata.cdl.h> // For Layout_Meta_Data landscape/portrait status
+#include <LayoutMetaData.cdl.h> // For Layout_Meta_Data landscape/portrait status
 #include <akntoolbar.h>
 #endif
 
@@ -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
             {
@@ -400,7 +412,7 @@
 //
 TBool CWidgetUiWindowView::IsOptionsMenuActivated()
  	{
- 	return iIsOptionsMenuActivated;
+ 	return AppUi()->IsDisplayingMenuOrDialog();
  	}