equal
deleted
inserted
replaced
58 #include "xnpanic.h" |
58 #include "xnpanic.h" |
59 #include "xnviewdata.h" |
59 #include "xnviewdata.h" |
60 #include "xnscrollablecontroladapter.h" |
60 #include "xnscrollablecontroladapter.h" |
61 #include "xnfocuscontrol.h" |
61 #include "xnfocuscontrol.h" |
62 #include "xneditmode.h" |
62 #include "xneditmode.h" |
|
63 #include "xnbgcontrol.h" |
63 |
64 |
64 _LIT8(KScrollableBoxNodeName, "scrollablebox"); |
65 _LIT8(KScrollableBoxNodeName, "scrollablebox"); |
65 |
66 |
66 using namespace XnGestureHelper; |
67 using namespace XnGestureHelper; |
67 #include "xngesture.h" |
68 #include "xngesture.h" |
3898 |
3899 |
3899 CCoeControl& bg( appui.ViewAdapter().BgControl() ); |
3900 CCoeControl& bg( appui.ViewAdapter().BgControl() ); |
3900 |
3901 |
3901 // Ignore events |
3902 // Ignore events |
3902 bg.IgnoreEventsUntilNextPointerUp(); |
3903 bg.IgnoreEventsUntilNextPointerUp(); |
3903 |
3904 static_cast<CXnBgControl*>(&bg)->ResetGrabbingL(); |
3904 // Indicate long tap has taken plave |
3905 |
|
3906 // Indicate long tap has taken plave |
3905 iLongtap = ETrue; |
3907 iLongtap = ETrue; |
3906 |
3908 |
3907 CXnNode* hold = BuildTriggerNodeL( *engine, |
3909 CXnNode* hold = BuildTriggerNodeL( *engine, |
3908 XnPropertyNames::action::trigger::name::KHold ); |
3910 XnPropertyNames::action::trigger::name::KHold ); |
3909 |
3911 |
3924 TBool CXnControlAdapterImpl::HandlePointerEventL( |
3926 TBool CXnControlAdapterImpl::HandlePointerEventL( |
3925 const TPointerEvent& aPointerEvent ) |
3927 const TPointerEvent& aPointerEvent ) |
3926 { |
3928 { |
3927 const TPointerEvent& event( aPointerEvent ); |
3929 const TPointerEvent& event( aPointerEvent ); |
3928 |
3930 |
|
3931 CXnNode* node( &iNode.Node() ); |
|
3932 CXnUiEngine* engine( node->UiEngine() ); |
|
3933 |
|
3934 |
3929 // Forward event to gesture helper |
3935 // Forward event to gesture helper |
3930 if( PassEventToGestureHelperL( aPointerEvent ) ) |
3936 if( PassEventToGestureHelperL( aPointerEvent ) ) |
3931 { |
3937 { |
|
3938 CXnAppUiAdapter& appui( engine->AppUiAdapter() ); |
|
3939 CCoeControl& bg( appui.ViewAdapter().BgControl() ); |
|
3940 static_cast<CXnBgControl*>(&bg)->ResetGrabbingL(); |
|
3941 |
3932 // Swipe took place, consume this event |
3942 // Swipe took place, consume this event |
3933 return ETrue; |
3943 return ETrue; |
3934 } |
3944 } |
3935 |
|
3936 CXnNode* node( &iNode.Node() ); |
|
3937 |
|
3938 CXnUiEngine* engine( node->UiEngine() ); |
|
3939 |
3945 |
3940 TBool menuBar( node == engine->MenuBarNode() ); |
3946 TBool menuBar( node == engine->MenuBarNode() ); |
3941 |
3947 |
3942 if ( menuBar ) |
3948 if ( menuBar ) |
3943 { |
3949 { |