ui/viewmanagement/viewmanager/src/glxviewmanager.cpp
changeset 36 6481344a6d67
parent 33 1ee2af37811f
child 44 aa2fa096cbfb
--- a/ui/viewmanagement/viewmanager/src/glxviewmanager.cpp	Thu May 27 12:51:42 2010 +0300
+++ b/ui/viewmanagement/viewmanager/src/glxviewmanager.cpp	Fri Jun 11 13:38:23 2010 +0300
@@ -71,9 +71,9 @@
 {
     mMenuManager = new GlxMenuManager(mMainWindow);
     addBackSoftKeyAction(); 
-    createToolBar();
+    
     addConnection();
-    mView->addToolBar(mViewToolBar);
+    
     mMenuManager->addMenu( mView->viewId(), mView->menu() );
     mMenuManager->setModel( mModel );
 }
@@ -84,6 +84,18 @@
     PERFORMANCE_ADV ( viewMgrD1, "View Creation time" ) {
         mView = resolveView(id);
     }
+    createToolBar();
+    mView->addToolBar(mViewToolBar);
+    
+    /* We are showing the toolBar before activating the 
+     * view. This is done to avoid the animation effect seen otherwise 
+     * when the tool bar comes up.
+     * 
+     * If animation Effect is not removed, it leads to flickering effect 
+     * since we are creating a new tool bar..although a fake tool bar was 
+     * already created on the splashscreen
+     * 
+     */
     mView->activate();
     
     PERFORMANCE_ADV ( viewMgrD3, "Set Model time")  
@@ -145,7 +157,7 @@
     
     //create and registered the effect
     if ( mEffectEngine == NULL ) { 
-        mEffectEngine = new GlxSlideShowEffectEngine();
+        mEffectEngine = new GlxEffectEngine();
         mEffectEngine->registerTransitionEffect();
         connect( mEffectEngine, SIGNAL( effectFinished() ), this, SLOT( effectFinished() ) );
     }