idlehomescreen/xmluirendering/uiengine/src/xnviewcontroladapter.cpp
branchRCL_3
changeset 102 ba63c83f4716
parent 93 b01126ce0bec
equal deleted inserted replaced
93:b01126ce0bec 102:ba63c83f4716
    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"
    26 #include "xndomnode.h"
    27 #include "xndomnode.h"
    27 #include "xnproperty.h"
    28 #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();
    76 	CXnViewControlAdapter* self = new( ELeave ) CXnViewControlAdapter( aNode );
    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() : 
   129 CXnViewControlAdapter::CXnViewControlAdapter( CXnNodePluginIf& aNode ) 
   130     iAppUi( static_cast< CXnAppUiAdapter& >( *iAvkonAppUi ) )    
   130     : iNode( aNode ), 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 
   192         {
   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
       
   196         {
       
   197         if ( IsWidgetGestureDest() && iAppUi.ViewSwitcher() != NULL )
       
   198             {
       
   199             iAppUi.ViewSwitcher()->StopViewSwitchL();
       
   200             }
       
   201         
       
   202         iAppUi.UiEngine().DisableRenderUiLC();
   193         iAppUi.UiEngine().DisableRenderUiLC();
   203             
   194             
   204         CXnControlAdapter::HandlePointerEventL( aPointerEvent );
   195         CXnControlAdapter::HandlePointerEventL( aPointerEvent );
   205         
   196         
   206         iAppUi.UiEngine().RenderUIL();
   197         iAppUi.UiEngine().RenderUIL();