equal
deleted
inserted
replaced
262 { |
262 { |
263 const TRgb KHighlightCenterColor (229, 229, 229); |
263 const TRgb KHighlightCenterColor (229, 229, 229); |
264 |
264 |
265 CWindowGc& gc = SystemGc(); |
265 CWindowGc& gc = SystemGc(); |
266 |
266 |
267 CPreviewControlBase::DrawPreviewImage (Rect()); |
|
268 |
|
269 // Change brush to null to enable transparent drawing |
267 // Change brush to null to enable transparent drawing |
270 gc.SetBrushStyle (CGraphicsContext::ENullBrush); |
268 gc.SetBrushStyle (CGraphicsContext::ENullBrush); |
271 |
269 |
272 // draw center of the borders |
270 // draw center of the borders |
273 gc.BitBltMasked( iPopupCenterRect.iTl, iPopupCenter, |
271 gc.BitBltMasked( iPopupCenterRect.iTl, iPopupCenter, |
902 void CColorSelectionDialog::HandlePointerEventL( |
900 void CColorSelectionDialog::HandlePointerEventL( |
903 const TPointerEvent &aPointerEvent ) |
901 const TPointerEvent &aPointerEvent ) |
904 { |
902 { |
905 if( AknLayoutUtils::PenEnabled() ) |
903 if( AknLayoutUtils::PenEnabled() ) |
906 { |
904 { |
907 TBool draw( EFalse ); |
|
908 switch( aPointerEvent.iType ) |
905 switch( aPointerEvent.iType ) |
909 { |
906 { |
910 case TPointerEvent::EButton1Down: |
907 case TPointerEvent::EButton1Down: |
911 { |
908 { |
912 // forward event only if grid area was pressed |
909 // forward event only if grid area was pressed |
918 iTouchFeedBack->InstantFeedback( ETouchFeedbackBasic ); |
915 iTouchFeedBack->InstantFeedback( ETouchFeedbackBasic ); |
919 RDebug::Printf( "ImageEditor::CColorSelectionDialog: ETouchFeedback" ); |
916 RDebug::Printf( "ImageEditor::CColorSelectionDialog: ETouchFeedback" ); |
920 } |
917 } |
921 #endif /* RD_TACTILE_FEEDBACK */ |
918 #endif /* RD_TACTILE_FEEDBACK */ |
922 iPopup->HandlePointerEventL( aPointerEvent ); |
919 iPopup->HandlePointerEventL( aPointerEvent ); |
923 draw = ETrue; |
|
924 } |
920 } |
925 break; |
921 break; |
926 } |
922 } |
927 case TPointerEvent::EDrag: |
923 case TPointerEvent::EDrag: |
928 { |
924 { |
934 iTouchFeedBack->InstantFeedback( ETouchFeedbackSensitive ); |
930 iTouchFeedBack->InstantFeedback( ETouchFeedbackSensitive ); |
935 RDebug::Printf( "ImageEditor::CColorSelectionDialog: ETouchFeedbackSensitive" ); |
931 RDebug::Printf( "ImageEditor::CColorSelectionDialog: ETouchFeedbackSensitive" ); |
936 } |
932 } |
937 #endif /* RD_TACTILE_FEEDBACK */ |
933 #endif /* RD_TACTILE_FEEDBACK */ |
938 iPopup->HandlePointerEventL( aPointerEvent ); |
934 iPopup->HandlePointerEventL( aPointerEvent ); |
939 draw = ETrue; |
|
940 } |
935 } |
941 break; |
936 break; |
942 } |
937 } |
943 case TPointerEvent::EButton1Up: |
938 case TPointerEvent::EButton1Up: |
944 { |
939 { |
952 default: |
947 default: |
953 { |
948 { |
954 break; |
949 break; |
955 } |
950 } |
956 } |
951 } |
957 |
|
958 if ( draw ) |
|
959 { |
|
960 DrawDeferred(); |
|
961 } |
|
962 } |
952 } |
963 } |
953 } |
964 |
954 |
965 // End of file |
955 // End of file |
966 |
956 |