uifw/EikStd/coctlsrc/akntoolbarextension.cpp
branchRCL_3
changeset 13 a8834a2e9a96
parent 5 aabf2c525e0f
child 19 aecbbf00d063
equal deleted inserted replaced
12:941195f2d488 13:a8834a2e9a96
    20 #include <akntoolbarextension.h>
    20 #include <akntoolbarextension.h>
    21 #include <avkon.mbg>
    21 #include <avkon.mbg>
    22 #include <aknconsts.h>
    22 #include <aknconsts.h>
    23 #include <akntoolbar.h>
    23 #include <akntoolbar.h>
    24 
    24 
       
    25 #include <touchfeedback.h>
       
    26 #include <akntranseffect.h>
       
    27 #include <akntransitionutils.h>
       
    28 
    25 #include "akntoolbarextensionview.h"
    29 #include "akntoolbarextensionview.h"
    26 
    30 
    27 
    31 
    28 // ======== MEMBER FUNCTIONS ========
    32 // ======== MEMBER FUNCTIONS ========
    29 
    33 
   307                     {
   311                     {
   308                     TBool nonFocusing = iToolbar->IsNonFocusing(); 
   312                     TBool nonFocusing = iToolbar->IsNonFocusing(); 
   309                     iView->SetFocusing( !nonFocusing ); 
   313                     iView->SetFocusing( !nonFocusing ); 
   310                     if ( IsVisible() )
   314                     if ( IsVisible() )
   311                         {
   315                         {
       
   316 
       
   317                         //
       
   318                         // the pop up feedback for droping out toolbar extention view
       
   319                         //
       
   320                         if ( AknLayoutUtils::PenEnabled() )
       
   321                             {
       
   322                             MTouchFeedback* feedback = MTouchFeedback::Instance();
       
   323                             if ( feedback )
       
   324                                 {
       
   325                                 TTouchLogicalFeedback fbLogicalType = ETouchFeedbackPopUp;
       
   326                                 if ( CAknTransitionUtils::TransitionsEnabled(
       
   327                                         AknTransEffect::EComponentTransitionsOff ) )
       
   328                                     {
       
   329                                     fbLogicalType = ETouchFeedbackIncreasingPopUp;
       
   330                                     }
       
   331 
       
   332                                 feedback->InstantFeedback( this,
       
   333                                                            fbLogicalType,
       
   334                                                            ETouchFeedbackVibra, TPointerEvent() );
       
   335                                 }
       
   336                             }
       
   337 
   312                         iToolbar->DynInitExtensionL( this );
   338                         iToolbar->DynInitExtensionL( this );
   313                         iView->MakeVisible( ETrue ); // show view
   339                         iView->MakeVisible( ETrue ); // show view
   314                         }
   340                         }
   315                     }
   341                     }
   316                 }
   342                 }