homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmainwindow.cpp
changeset 92 6727c5d0afc7
parent 77 4b195f3bea29
child 96 458d8c8d9580
--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmainwindow.cpp	Thu Sep 02 20:17:27 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmainwindow.cpp	Fri Sep 17 08:27:54 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);
 }