equal
deleted
inserted
replaced
34 #include <alf/alfevent.h> |
34 #include <alf/alfevent.h> |
35 #include <alf/alfdisplay.h> |
35 #include <alf/alfdisplay.h> |
36 #include <alf/alfframebrush.h> |
36 #include <alf/alfframebrush.h> |
37 |
37 |
38 #include <StringLoader.h> |
38 #include <StringLoader.h> |
|
39 #include <touchfeedback.h> |
39 |
40 |
40 // Photos Headers |
41 // Photos Headers |
41 #include "glxtagscontextmenucontrol.h" |
42 #include "glxtagscontextmenucontrol.h" |
42 #include "glxcommandfactory.h" |
43 #include "glxcommandfactory.h" |
43 #include <mglxmedialist.h> //for medialist |
44 #include <mglxmedialist.h> //for medialist |
343 TRACER("GLX_CLOUD::CGlxTagsContextMenuControl::OfferEventL"); |
344 TRACER("GLX_CLOUD::CGlxTagsContextMenuControl::OfferEventL"); |
344 TBool consumed = EFalse; |
345 TBool consumed = EFalse; |
345 |
346 |
346 if (aEvent.IsPointerEvent() && iItemMenuVisibility ) |
347 if (aEvent.IsPointerEvent() && iItemMenuVisibility ) |
347 { |
348 { |
|
349 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
348 if (aEvent.PointerDown()) |
350 if (aEvent.PointerDown()) |
349 { |
351 { |
350 iCommandId = KErrNotFound; |
352 iCommandId = KErrNotFound; |
351 Display()->Roster().SetPointerEventObservers( |
353 Display()->Roster().SetPointerEventObservers( |
352 EAlfPointerEventReportDrag |
354 EAlfPointerEventReportDrag |
387 EAlfHasOwnership); |
389 EAlfHasOwnership); |
388 |
390 |
389 iCommandId = EGlxCmdRename; |
391 iCommandId = EGlxCmdRename; |
390 } |
392 } |
391 consumed = ETrue; |
393 consumed = ETrue; |
|
394 if (feedback) |
|
395 { |
|
396 feedback->InstantFeedback(ETouchFeedbackBasic); |
|
397 } |
392 CleanupStack::Pop(brush); |
398 CleanupStack::Pop(brush); |
393 }//End of iItemMenuVisibility check |
399 }//End of iItemMenuVisibility check |
394 }//End of Pointer down event |
400 }//End of Pointer down event |
395 else if (aEvent.PointerUp()) |
401 else if (aEvent.PointerUp()) |
396 { |
402 { |
419 aEvent.PointerEvent().iParentPosition); |
425 aEvent.PointerEvent().iParentPosition); |
420 if (!eventInsideControl) |
426 if (!eventInsideControl) |
421 { |
427 { |
422 HandleUpEventL(); |
428 HandleUpEventL(); |
423 } |
429 } |
|
430 else if (eventInsideControl && feedback) |
|
431 { |
|
432 feedback->InstantFeedback(ETouchFeedbackBasic); |
|
433 } |
424 consumed = ETrue; |
434 consumed = ETrue; |
425 } |
435 } |
426 consumed = ETrue; |
436 consumed = ETrue; |
427 } |
437 } |
428 return consumed; |
438 return consumed; |