uifw/AvKon/src/aknPopup.cpp
branchRCL_3
changeset 8 71dd06cfe933
parent 7 08e69e956a8c
child 9 0aa5fbdfbc30
equal deleted inserted replaced
7:08e69e956a8c 8:71dd06cfe933
    28 #include <eikmop.h>
    28 #include <eikmop.h>
    29 #include <aknlayoutscalable_avkon.cdl.h>
    29 #include <aknlayoutscalable_avkon.cdl.h>
    30 #include <skinlayout.cdl.h>
    30 #include <skinlayout.cdl.h>
    31 #include <aknglobalpopupprioritycontroller.h>
    31 #include <aknglobalpopupprioritycontroller.h>
    32 #include <touchfeedback.h>
    32 #include <touchfeedback.h>
       
    33 #include <akntranseffect.h>
    33 
    34 
    34 #ifdef RD_UI_TRANSITION_EFFECTS_POPUPS
    35 #ifdef RD_UI_TRANSITION_EFFECTS_POPUPS
    35 #include <gfxtranseffect/gfxtranseffect.h>
    36 #include <gfxtranseffect/gfxtranseffect.h>
    36 #include <akntransitionutils.h>
    37 #include <akntransitionutils.h>
    37 #endif
    38 #endif
   237     // otherwise the construction failed before the scheduler started.
   238     // otherwise the construction failed before the scheduler started.
   238     // The iReturn value is a convienient value to use since it is the
   239     // The iReturn value is a convienient value to use since it is the
   239     // last member ste before the actiave scheduler is started.
   240     // last member ste before the actiave scheduler is started.
   240 
   241 
   241     // Reset action menu register
   242     // Reset action menu register
   242     AknItemActionMenuRegister::SetConstructingMenuBarOwnerL( NULL );
   243     AknItemActionMenuRegister::RemoveConstructingMenuBarOwner( this );
   243     _AKNTRACE_FUNC_EXIT;
   244     _AKNTRACE_FUNC_EXIT;
   244     }
   245     }
   245 
   246 
   246 EXPORT_C void CAknPopupList::CloseState()
   247 EXPORT_C void CAknPopupList::CloseState()
   247     {
   248     {
   382 */
   383 */
   383 EXPORT_C TBool CAknPopupList::ExecuteLD()
   384 EXPORT_C TBool CAknPopupList::ExecuteLD()
   384     {
   385     {
   385     _AKNTRACE_FUNC_ENTER;
   386     _AKNTRACE_FUNC_ENTER;
   386     __ASSERT_DEBUG(iListBox,Panic(EAknPanicListboxUndefined));
   387     __ASSERT_DEBUG(iListBox,Panic(EAknPanicListboxUndefined));
       
   388     if ( AknLayoutUtils::PenEnabled() )
       
   389         {
       
   390         MTouchFeedback* feedback = MTouchFeedback::Instance();
       
   391         if ( feedback )
       
   392             {
       
   393             TTouchLogicalFeedback fbLogicalType = ETouchFeedbackPopUp;
       
   394             if ( CAknTransitionUtils::TransitionsEnabled(
       
   395                     AknTransEffect::EComponentTransitionsOff ) )
       
   396                 {
       
   397                 fbLogicalType = ETouchFeedbackIncreasingPopUp;
       
   398                 }
       
   399             feedback->InstantFeedback(
       
   400                                    this,
       
   401                                    fbLogicalType,
       
   402                                    ETouchFeedbackVibra,
       
   403                                    TPointerEvent() );
       
   404             }
       
   405         }
       
   406     
   387     iPopoutCba->SetBoundingRect(TRect(iAvkonAppUi->ApplicationRect().Size()));
   407     iPopoutCba->SetBoundingRect(TRect(iAvkonAppUi->ApplicationRect().Size()));
   388     
   408     
   389     // Disable item specific menu just before the popup is about to be shown.
   409     // Disable item specific menu just before the popup is about to be shown.
   390     // It can't be done earlier since CAknPopupList doesn't know whether the
   410     // It can't be done earlier since CAknPopupList doesn't know whether the
   391     // embedded listbox is fully constructed when passed to its constructor or
   411     // embedded listbox is fully constructed when passed to its constructor or
   796 * @param        aAccept        ETrue if the user accepted. EFalse if the user cancelled.
   816 * @param        aAccept        ETrue if the user accepted. EFalse if the user cancelled.
   797 */
   817 */
   798 EXPORT_C void CAknPopupList::AttemptExitL(TBool aAccept)
   818 EXPORT_C void CAknPopupList::AttemptExitL(TBool aAccept)
   799     {
   819     {
   800     _AKNTRACE_FUNC_ENTER;
   820     _AKNTRACE_FUNC_ENTER;
       
   821     if ( AknLayoutUtils::PenEnabled() )
       
   822         {
       
   823         MTouchFeedback* feedback = MTouchFeedback::Instance();
       
   824         if ( feedback )
       
   825             {
       
   826             TTouchLogicalFeedback fbLogicalType = ETouchFeedbackPopUp;
       
   827             if ( CAknTransitionUtils::TransitionsEnabled(
       
   828                     AknTransEffect::EComponentTransitionsOff ) )
       
   829                 {
       
   830                 fbLogicalType = ETouchFeedbackDecreasingPopUp;
       
   831                 }
       
   832             feedback->InstantFeedback(
       
   833                                    this,
       
   834                                    fbLogicalType,
       
   835                                    ETouchFeedbackVibra,
       
   836                                    TPointerEvent() );
       
   837             }
       
   838         }
   801     //EFTG-7HWDP6.
   839     //EFTG-7HWDP6.
   802     if( FindBox()
   840     if( FindBox()
   803         && !( FindBox()->Editor().AknEdwinFlags() & EAknEditorFlagTouchInputModeOpened )
   841         && !( FindBox()->Editor().AknEdwinFlags() & EAknEditorFlagTouchInputModeOpened )
   804         && ( iPopupListExtension->iFlags & EPopupLayoutSwitchEvent ) )
   842         && ( iPopupListExtension->iFlags & EPopupLayoutSwitchEvent ) )
   805         {
   843         {