diff -r f7f0874bfe7d -r 6b87b143d312 photosgallery/viewframework/views/viewbase/src/glxviewbase.cpp --- a/photosgallery/viewframework/views/viewbase/src/glxviewbase.cpp Tue Feb 02 10:12:14 2010 +0200 +++ b/photosgallery/viewframework/views/viewbase/src/glxviewbase.cpp Fri Feb 19 22:51:01 2010 +0200 @@ -278,7 +278,7 @@ customMessagePtr.Copy( aCustomMessage ); // show the view specific toolbar - CAknToolbar* toolbar = Toolbar(); + CAknToolbar* toolbar = GetToolBar(); // Get the pointer to the application toolbar // (when there isn't a view specific toolbar) to set it visible @@ -326,7 +326,7 @@ { TRACER( "CGlxViewBase::DoDeactivate" ); // hide the view specific toolbar - CAknToolbar* toolbar = Toolbar(); + CAknToolbar* toolbar = GetToolBar(); // Get the pointer to the application toolbar // (when there isn't a view specific toolbar) to hide it properly @@ -466,7 +466,28 @@ TRACER( "CGlxViewBase::SetToolbarStateL" ); // Derived MediaListViewBase has the implementation. } - +// ----------------------------------------------------------------------------- +// SetGridToolBar +// ----------------------------------------------------------------------------- +// +EXPORT_C void CGlxViewBase::SetGridToolBar(CAknToolbar* aToolbar) + { + TRACER("CGlxViewBase::SetGridToolBar()"); + iToolbar = aToolbar; + } +// ----------------------------------------------------------------------------- +// GetToolBar +// ----------------------------------------------------------------------------- +// +EXPORT_C CAknToolbar* CGlxViewBase::GetToolBar() + { + TRACER("CGlxViewBase::GetToolBar()"); + if(iToolbar) + { + return iToolbar; + } + return Toolbar(); + } // ----------------------------------------------------------------------------- // InitAnimationL // ----------------------------------------------------------------------------- @@ -514,7 +535,7 @@ EXPORT_C void CGlxViewBase::OfferToolbarEventL( TInt aCommand ) { TRACER( "CGlxViewBase::OfferToolbarEventL" ); - CAknToolbar* toolbar = Toolbar(); + CAknToolbar* toolbar = GetToolBar(); if(toolbar) { // Deactivate the toolbar. Don't accept the toolbar input when the command @@ -539,9 +560,9 @@ { TRACER( "CGlxViewBase::SetToolbarObserver" ); //Register the view to recieve toolbar events. ViewBase handles the events - if ( Toolbar() ) + if ( GetToolBar() ) { - Toolbar()->SetToolbarObserver( aObserver ); + GetToolBar()->SetToolbarObserver( aObserver ); } }