ui/viewmanagement/viewmanager/src/glxviewmanager.cpp
changeset 43 72396548277c
parent 42 5e1df1b52eb3
child 44 aa2fa096cbfb
--- a/ui/viewmanagement/viewmanager/src/glxviewmanager.cpp	Mon May 17 13:35:26 2010 +0530
+++ b/ui/viewmanagement/viewmanager/src/glxviewmanager.cpp	Fri May 28 21:11:54 2010 +0530
@@ -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() ) );
     }