widgets/widgetapp/src/WidgetUiWindowView.cpp
changeset 11 c8a366e56285
parent 10 a359256acfc6
child 25 0ed94ceaa377
--- a/widgets/widgetapp/src/WidgetUiWindowView.cpp	Thu Aug 27 07:44:59 2009 +0300
+++ b/widgets/widgetapp/src/WidgetUiWindowView.cpp	Thu Sep 24 12:53:48 2009 +0300
@@ -187,11 +187,7 @@
 
     DeActivateOptionsMenu();
 
-    TBrCtlDefs::TBrCtlElementType elementtype =
-            iWindowManager.ActiveWindow()->Engine()->FocusedElementType();
-
-    TBool editing = (elementtype == TBrCtlDefs::EElementActivatedInputBox) ||
-                    (elementtype == TBrCtlDefs::EElementActivatedObjectBox);
+    TBool editing = IsEditMode();
 
     switch( aCommand )
         {
@@ -341,6 +337,13 @@
         StatusPane()->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT);
         StatusPane()->ApplyCurrentSettingsL();
         }
+    
+    // update softkeys display to match status pane visibility
+    if( iWindowManager.ActiveWindow() )
+        {
+        iWindowManager.ActiveWindow()->MakeSoftkeysVisible(visible,ETrue);
+        }
+  
     }
 
 // ---------------------------------------------------------
@@ -378,6 +381,14 @@
                 delete iRepository;
                 iRepository = NULL;
             }
+        case TBrCtlDefs::EStateFullscreenBrowsing:
+            {
+            if (!iPenEnabled && IsEditMode())
+                {
+                UpdateStatusPane(!aValue);
+                }
+            break;
+            }            
         default:
             break;
         }
@@ -415,4 +426,18 @@
         AppUi()->CurrentFixedToolbar()->SetToolbarVisibility(EFalse);
 #endif
     }
+
+// -----------------------------------------------------------------------------
+// CWidgetUiWindowView::IsEditMode
+// -----------------------------------------------------------------------------
+TBool CWidgetUiWindowView::IsEditMode()
+    {
+    TBrCtlDefs::TBrCtlElementType focusedElementType =
+                   iWindowManager.ActiveWindow()->Engine()->FocusedElementType();
+
+    TBool retVal = ((focusedElementType == TBrCtlDefs:: EElementActivatedInputBox) ||
+                    (focusedElementType == TBrCtlDefs:: EElementInputBox) ||
+                    (focusedElementType == TBrCtlDefs:: EElementTextAreaBox));
+    return  (retVal);
+    }
 // End of File