photosgallery/viewframework/views/viewbase/src/glxviewbase.cpp
branchRCL_3
changeset 9 6b87b143d312
parent 4 57d388cc48c1
child 18 bcb43dc84c44
equal deleted inserted replaced
5:f7f0874bfe7d 9:6b87b143d312
   276     
   276     
   277     TPtr8 customMessagePtr = iCustomMessage->Des();
   277     TPtr8 customMessagePtr = iCustomMessage->Des();
   278     customMessagePtr.Copy( aCustomMessage );
   278     customMessagePtr.Copy( aCustomMessage );
   279 
   279 
   280 	// show the view specific toolbar
   280 	// show the view specific toolbar
   281     CAknToolbar* toolbar = Toolbar();
   281     CAknToolbar* toolbar = GetToolBar();
   282 
   282 
   283     // Get the pointer to the application toolbar 
   283     // Get the pointer to the application toolbar 
   284     // (when there isn't a view specific toolbar) to set it visible 
   284     // (when there isn't a view specific toolbar) to set it visible 
   285     if ( !toolbar ) 
   285     if ( !toolbar ) 
   286         { 
   286         { 
   324 //	
   324 //	
   325 EXPORT_C void CGlxViewBase::DoDeactivate()
   325 EXPORT_C void CGlxViewBase::DoDeactivate()
   326 	{
   326 	{
   327 	TRACER( "CGlxViewBase::DoDeactivate" );
   327 	TRACER( "CGlxViewBase::DoDeactivate" );
   328 	// hide the view specific toolbar
   328 	// hide the view specific toolbar
   329     CAknToolbar* toolbar = Toolbar();
   329     CAknToolbar* toolbar = GetToolBar();
   330 
   330 
   331     // Get the pointer to the application toolbar 
   331     // Get the pointer to the application toolbar 
   332     // (when there isn't a view specific toolbar) to hide it properly 
   332     // (when there isn't a view specific toolbar) to hide it properly 
   333     if ( !toolbar ) 
   333     if ( !toolbar ) 
   334         { 
   334         { 
   464 EXPORT_C void CGlxViewBase::SetToolbarStateL()
   464 EXPORT_C void CGlxViewBase::SetToolbarStateL()
   465     {
   465     {
   466     TRACER( "CGlxViewBase::SetToolbarStateL" );
   466     TRACER( "CGlxViewBase::SetToolbarStateL" );
   467     // Derived MediaListViewBase has the implementation.
   467     // Derived MediaListViewBase has the implementation.
   468     }
   468     }
   469 
   469 // -----------------------------------------------------------------------------
       
   470 // SetGridToolBar
       
   471 // -----------------------------------------------------------------------------
       
   472 //
       
   473 EXPORT_C void CGlxViewBase::SetGridToolBar(CAknToolbar* aToolbar)
       
   474     {
       
   475     TRACER("CGlxViewBase::SetGridToolBar()");
       
   476     iToolbar = aToolbar;
       
   477     }
       
   478 // -----------------------------------------------------------------------------
       
   479 // GetToolBar
       
   480 // -----------------------------------------------------------------------------
       
   481 //
       
   482 EXPORT_C CAknToolbar* CGlxViewBase::GetToolBar()
       
   483     {
       
   484     TRACER("CGlxViewBase::GetToolBar()");
       
   485     if(iToolbar)
       
   486         {
       
   487         return iToolbar;
       
   488         }
       
   489     return Toolbar();     
       
   490     }
   470 // -----------------------------------------------------------------------------
   491 // -----------------------------------------------------------------------------
   471 // InitAnimationL
   492 // InitAnimationL
   472 // -----------------------------------------------------------------------------
   493 // -----------------------------------------------------------------------------
   473 //	
   494 //	
   474 void CGlxViewBase::InitAnimationL(TGlxViewswitchAnimation aType) 
   495 void CGlxViewBase::InitAnimationL(TGlxViewswitchAnimation aType) 
   512 // -----------------------------------------------------------------------------
   533 // -----------------------------------------------------------------------------
   513 //
   534 //
   514 EXPORT_C void CGlxViewBase::OfferToolbarEventL( TInt aCommand )
   535 EXPORT_C void CGlxViewBase::OfferToolbarEventL( TInt aCommand )
   515     {
   536     {
   516     TRACER( "CGlxViewBase::OfferToolbarEventL" );
   537     TRACER( "CGlxViewBase::OfferToolbarEventL" );
   517     CAknToolbar* toolbar = Toolbar();
   538     CAknToolbar* toolbar = GetToolBar();
   518     if(toolbar)
   539     if(toolbar)
   519         {
   540         {
   520         // Deactivate the toolbar. Don't accept the toolbar input when the command
   541         // Deactivate the toolbar. Don't accept the toolbar input when the command
   521         // execution is already in progress.
   542         // execution is already in progress.
   522         toolbar->SetDimmed(ETrue);
   543         toolbar->SetDimmed(ETrue);
   537 //
   558 //
   538 EXPORT_C void CGlxViewBase::SetToolbarObserver(MAknToolbarObserver* aObserver)
   559 EXPORT_C void CGlxViewBase::SetToolbarObserver(MAknToolbarObserver* aObserver)
   539     {
   560     {
   540     TRACER( "CGlxViewBase::SetToolbarObserver" );
   561     TRACER( "CGlxViewBase::SetToolbarObserver" );
   541     //Register the view to recieve toolbar events. ViewBase handles the events
   562     //Register the view to recieve toolbar events. ViewBase handles the events
   542     if ( Toolbar() )
   563     if ( GetToolBar() )
   543         {
   564         {
   544         Toolbar()->SetToolbarObserver( aObserver );
   565         GetToolBar()->SetToolbarObserver( aObserver );
   545         }
   566         }
   546      }
   567      }
   547 
   568 
   548 // -----------------------------------------------------------------------------
   569 // -----------------------------------------------------------------------------
   549 // CancelViewAnimation
   570 // CancelViewAnimation