equal
deleted
inserted
replaced
21 #include "xnappuiadapter.h" |
21 #include "xnappuiadapter.h" |
22 #include "xnuiengine.h" |
22 #include "xnuiengine.h" |
23 #include "xnnodepluginif.h" |
23 #include "xnnodepluginif.h" |
24 #include "xnnode.h" |
24 #include "xnnode.h" |
25 |
25 |
26 #include "xndomdocument.h" |
|
27 #include "xndomnode.h" |
26 #include "xndomnode.h" |
28 #include "xnproperty.h" |
27 #include "xnproperty.h" |
|
28 #include "xnviewswitcher.h" |
29 |
29 |
30 #include "xnviewcontroladapter.h" |
30 #include "xnviewcontroladapter.h" |
31 |
31 |
32 // Constants |
32 // Constants |
33 |
33 |
71 // Symbian static 1st phase constructor |
71 // Symbian static 1st phase constructor |
72 // ----------------------------------------------------------------------------- |
72 // ----------------------------------------------------------------------------- |
73 // |
73 // |
74 CXnViewControlAdapter* CXnViewControlAdapter::NewL( CXnNodePluginIf& aNode ) |
74 CXnViewControlAdapter* CXnViewControlAdapter::NewL( CXnNodePluginIf& aNode ) |
75 { |
75 { |
76 CXnViewControlAdapter* self = new( ELeave ) CXnViewControlAdapter( aNode ); |
76 CXnViewControlAdapter* self = new( ELeave ) CXnViewControlAdapter(); |
77 |
77 |
78 CleanupStack::PushL( self ); |
78 CleanupStack::PushL( self ); |
79 self->ConstructL( aNode ); |
79 self->ConstructL( aNode ); |
80 CleanupStack::Pop( self ); |
80 CleanupStack::Pop( self ); |
81 |
81 |
124 // ----------------------------------------------------------------------------- |
124 // ----------------------------------------------------------------------------- |
125 // CXnViewControlAdapter::CXnViewControlAdapter |
125 // CXnViewControlAdapter::CXnViewControlAdapter |
126 // C++ default constructor |
126 // C++ default constructor |
127 // ----------------------------------------------------------------------------- |
127 // ----------------------------------------------------------------------------- |
128 // |
128 // |
129 CXnViewControlAdapter::CXnViewControlAdapter( CXnNodePluginIf& aNode ) |
129 CXnViewControlAdapter::CXnViewControlAdapter() : |
130 : iNode( aNode ), iAppUi( static_cast< CXnAppUiAdapter& >( *iAvkonAppUi ) ) |
130 iAppUi( static_cast< CXnAppUiAdapter& >( *iAvkonAppUi ) ) |
131 { |
131 { |
132 } |
132 } |
133 |
133 |
134 // ----------------------------------------------------------------------------- |
134 // ----------------------------------------------------------------------------- |
135 // CXnViewControlAdapter::~CXnViewControlAdapter |
135 // CXnViewControlAdapter::~CXnViewControlAdapter |
185 // |
185 // |
186 // ----------------------------------------------------------------------------- |
186 // ----------------------------------------------------------------------------- |
187 // |
187 // |
188 void CXnViewControlAdapter::HandlePointerEventL( |
188 void CXnViewControlAdapter::HandlePointerEventL( |
189 const TPointerEvent& aPointerEvent ) |
189 const TPointerEvent& aPointerEvent ) |
190 { |
190 { |
191 if ( iForegroundStatus != EBackground ) |
191 if ( iForegroundStatus != EBackground && |
|
192 ( iAppUi.UiEngine().IsPartialInputActive() || // no swipe if partial input active |
|
193 IsWidgetGestureDest() || // no swipe if widget handles it |
|
194 iAppUi.ViewSwitcher() == NULL || // no swipe if VS not available |
|
195 !iAppUi.ViewSwitcher()->ProcessPointerEventL( aPointerEvent ) ) ) // no swipe if event not handled by VS |
192 { |
196 { |
193 iAppUi.UiEngine().DisableRenderUiLC(); |
197 iAppUi.UiEngine().DisableRenderUiLC(); |
194 |
198 |
195 CXnControlAdapter::HandlePointerEventL( aPointerEvent ); |
199 CXnControlAdapter::HandlePointerEventL( aPointerEvent ); |
196 |
200 |