vtuis/videotelui/src/CVtUiContextControl.cpp
branchRCL_3
changeset 14 856ae1b15d98
parent 11 50bbdc59f9c4
equal deleted inserted replaced
13:392fdfb57a78 14:856ae1b15d98
    24 #include    <AknsDrawUtils.h>
    24 #include    <AknsDrawUtils.h>
    25 #include    <cvtlogger.h>
    25 #include    <cvtlogger.h>
    26 #include    <featmgr.h>
    26 #include    <featmgr.h>
    27 #include    "CVtUiAppUi.h"
    27 #include    "CVtUiAppUi.h"
    28 #include    "tvtuistates.h"
    28 #include    "tvtuistates.h"
    29 #include	"tVtuifeaturevariation.h"
    29 #include    "tVtuifeaturevariation.h"
       
    30 #include    "CVtUiMainControl.h"
    30 
    31 
    31 
    32 
    32 // -----------------------------------------------------------------------------
    33 // -----------------------------------------------------------------------------
    33 // CVtUiContextControl::NewL
    34 // CVtUiContextControl::NewL
    34 // Constructor that may leave.
    35 // Constructor that may leave.
    80         __VTPRINT2( DEBUG_GEN, "CtxCtrl.HandlePtr.Position.iX = %d", aPointerEvent.iPosition.iX )
    81         __VTPRINT2( DEBUG_GEN, "CtxCtrl.HandlePtr.Position.iX = %d", aPointerEvent.iPosition.iX )
    81         __VTPRINT2( DEBUG_GEN, "CtxCtrl.HandlePtr.Position.iY = %d", aPointerEvent.iPosition.iY )
    82         __VTPRINT2( DEBUG_GEN, "CtxCtrl.HandlePtr.Position.iY = %d", aPointerEvent.iPosition.iY )
    82         if ( aPointerEvent.iType == TPointerEvent::EButton1Down )
    83         if ( aPointerEvent.iType == TPointerEvent::EButton1Down )
    83             {
    84             {
    84             TRect window( Size() );
    85             TRect window( Size() );
    85             if ( !window.Contains( aPointerEvent.iPosition ) )
    86             if ( !window.Contains( aPointerEvent.iPosition ) || 
       
    87                     iAppUi.MainControl().IsMainControlPointerEvent() )
    86                 {
    88                 {
    87                 __VTPRINT( DEBUG_GEN, "CtxCtrl.HandlePtr.Button1Down outside" )
    89                 __VTPRINT( DEBUG_GEN, "CtxCtrl.HandlePtr.Button1Down outside" )
    88                 // Down outside of Ctx ctrl, set inside false
    90                 // Down outside of Ctx ctrl, set inside false
    89                 iPointerButton1DownInside = EFalse;
    91                 iPointerButton1DownInside = EFalse;
    90                 }
    92                 }
    96                 }
    98                 }
    97             }
    99             }
    98         else if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
   100         else if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
    99             {
   101             {
   100             TRect window( Size() );
   102             TRect window( Size() );
   101             if ( !window.Contains( aPointerEvent.iPosition ) )
   103             if ( !window.Contains( aPointerEvent.iPosition ) ||
       
   104                     iAppUi.MainControl().IsMainControlPointerEvent() )
   102                 {
   105                 {
   103                 __VTPRINT( DEBUG_GEN, "CtxCtrl.HandlePtr.Button1Up outside" )
   106                 __VTPRINT( DEBUG_GEN, "CtxCtrl.HandlePtr.Button1Up outside" )
   104                 
   107                 
   105                 // Up outside of Ctx ctrl, set inside false
   108                 // Up outside of Ctx ctrl, set inside false
   106                 iPointerButton1DownInside = EFalse;
   109                 iPointerButton1DownInside = EFalse;