equal
deleted
inserted
replaced
55 // ----------------------------------------------------------------------------- |
55 // ----------------------------------------------------------------------------- |
56 // |
56 // |
57 CVtUiMainControl::CVtUiMainControl( CVtUiBitmapManager& aBitmapManager, |
57 CVtUiMainControl::CVtUiMainControl( CVtUiBitmapManager& aBitmapManager, |
58 CVtUiAppUi& aAppUi, TVtUiStates& aUiStates ) : |
58 CVtUiAppUi& aAppUi, TVtUiStates& aUiStates ) : |
59 CVtUiVideoControlBase( aBitmapManager ), iAppUi( aAppUi ), |
59 CVtUiVideoControlBase( aBitmapManager ), iAppUi( aAppUi ), |
60 iUiStates ( aUiStates ) |
60 iUiStates ( aUiStates ), iMCPointerEvent( EFalse ) |
61 { |
61 { |
62 __VTPRINTENTER( "MainCtrl.Ctor" ) |
62 __VTPRINTENTER( "MainCtrl.Ctor" ) |
63 SetRenderingHint( ESkinnedBackground ); |
63 SetRenderingHint( ESkinnedBackground ); |
64 __VTPRINTEXIT( "MainCtrl.Ctor" ) |
64 __VTPRINTEXIT( "MainCtrl.Ctor" ) |
65 } |
65 } |
104 // ----------------------------------------------------------------------------- |
104 // ----------------------------------------------------------------------------- |
105 // |
105 // |
106 void CVtUiMainControl::HandlePointerEventL( const TPointerEvent& aPointerEvent ) |
106 void CVtUiMainControl::HandlePointerEventL( const TPointerEvent& aPointerEvent ) |
107 { |
107 { |
108 __VTPRINTENTER( "MainCtrl.HandlePointerEventL" ) |
108 __VTPRINTENTER( "MainCtrl.HandlePointerEventL" ) |
109 // Let context control handle this first |
109 // Let context control handle this |
|
110 iMCPointerEvent = ETrue; |
110 iAppUi.ContextControl().HandlePointerEventL( aPointerEvent ); |
111 iAppUi.ContextControl().HandlePointerEventL( aPointerEvent ); |
111 CCoeControl::HandlePointerEventL( aPointerEvent ); |
112 iMCPointerEvent = EFalse; |
112 __VTPRINTEXIT( "MainCtrl.HandlePointerEventL" ) |
113 __VTPRINTEXIT( "MainCtrl.HandlePointerEventL" ) |
113 } |
114 } |
114 |
115 |
115 // ----------------------------------------------------------------------------- |
116 // ----------------------------------------------------------------------------- |
116 // CVtUiMainControl::HandleSizeChanged |
117 // CVtUiMainControl::HandleSizeChanged |
257 rectRemoteVideo.Move(PositionRelativeToScreen()); |
258 rectRemoteVideo.Move(PositionRelativeToScreen()); |
258 iRemoteVideoControl->SetExtent(rectRemoteVideo.iTl,rectRemoteVideo.Size()); |
259 iRemoteVideoControl->SetExtent(rectRemoteVideo.iTl,rectRemoteVideo.Size()); |
259 } |
260 } |
260 __VTPRINTEXIT( "MainCtrl.LayoutRemoteVideo" ) |
261 __VTPRINTEXIT( "MainCtrl.LayoutRemoteVideo" ) |
261 } |
262 } |
|
263 |
|
264 // ----------------------------------------------------------------------------- |
|
265 // CVtUiMainControl::IsMainControlPointerEvent |
|
266 // ----------------------------------------------------------------------------- |
|
267 // |
|
268 TBool CVtUiMainControl::IsMainControlPointerEvent() |
|
269 { |
|
270 return iMCPointerEvent; |
|
271 } |
|
272 |
262 // End of File |
273 // End of File |