homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmainwindow.cpp
changeset 86 e4f038c420f7
parent 71 1db7cc813a4e
child 90 3ac3aaebaee5
--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmainwindow.cpp	Wed Aug 18 10:33:57 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmainwindow.cpp	Mon Sep 13 13:03:23 2010 +0300
@@ -20,7 +20,7 @@
 #include <HbInstance>
 #include "hsmainwindow.h"
 #include "hsmenuview.h"
-
+#include "hsmenumodewrapper.h"
 
 /*!
  Constructor
@@ -36,7 +36,7 @@
  */
 
 
-HsMainWindow::HsMainWindow() 
+HsMainWindow::HsMainWindow(HsMenuModeWrapper* wrapper):mMenuMode(wrapper) 
 {
 }
 
@@ -56,9 +56,16 @@
     HbMainWindow *const hbW(
         HbInstance::instance()->allMainWindows().value(0));
     
+    if (mMenuMode && mMenuMode->getHsMenuMode() == Hs::AddHsMenuMode) {
+        view->setTitle(hbTrId("txt_applib_title_select_item"));
+    } else {
+        view->setTitle(hbTrId("txt_applib_title_applications"));
+    }
+        
     if (!hbW->views().contains(view)) {
         hbW->addView(view);
     }
+    
     bool animate  = !hbW->isObscured();       
-    hbW->setCurrentView(view, animate);
+    hbW->setCurrentView(view, animate, Hb::ViewSwitchCachedFullScreen);
 }