1721 { |
1721 { |
1722 _AKNTRACE_FUNC_ENTER; |
1722 _AKNTRACE_FUNC_ENTER; |
1723 // close the color grid: |
1723 // close the color grid: |
1724 // if the NGA effects are off, use “pop-up”. |
1724 // if the NGA effects are off, use “pop-up”. |
1725 // If NGA effects are on, use “pop-up closed”. |
1725 // If NGA effects are on, use “pop-up closed”. |
1726 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
1726 if( AknLayoutUtils::PenEnabled() ) |
1727 |
1727 { |
|
1728 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
|
1729 if ( feedback ) |
|
1730 { |
|
1731 if ( CAknTransitionUtils::TransitionsEnabled( AknTransEffect::EComponentTransitionsOff ) ) |
|
1732 { |
|
1733 feedback->InstantFeedback( this, |
|
1734 ETouchFeedbackIncreasingPopUp, |
|
1735 ETouchFeedbackVibra, |
|
1736 TPointerEvent() ); |
|
1737 } |
|
1738 else |
|
1739 { |
|
1740 feedback->InstantFeedback( this, |
|
1741 ETouchFeedbackPopUp, |
|
1742 ETouchFeedbackVibra, |
|
1743 TPointerEvent() ); |
|
1744 } |
|
1745 } |
|
1746 } |
1728 switch (aButton) |
1747 switch (aButton) |
1729 { |
1748 { |
1730 case EAknSoftkeyInsert: |
1749 case EAknSoftkeyInsert: |
1731 case EEikBidOk: |
1750 case EEikBidOk: |
1732 { |
1751 { |
1733 if ( feedback ) |
|
1734 { |
|
1735 feedback->InstantFeedback( ETouchFeedbackBasic ); |
|
1736 } |
|
1737 TInt index = iGrid->CurrentItemIndex(); |
1752 TInt index = iGrid->CurrentItemIndex(); |
1738 |
1753 |
1739 if (iNoneBox) |
1754 if (iNoneBox) |
1740 { |
1755 { |
1741 *iNoneChosen = iNoneBox->IsFocused(); |
1756 *iNoneChosen = iNoneBox->IsFocused(); |
1825 { |
1827 { |
1826 _AKNTRACE_FUNC_ENTER; |
1828 _AKNTRACE_FUNC_ENTER; |
1827 // open the color grid: |
1829 // open the color grid: |
1828 // if the NGA effects are off, use “pop-up”. |
1830 // if the NGA effects are off, use “pop-up”. |
1829 // If NGA effects are on, use “increasing long touch”. |
1831 // If NGA effects are on, use “increasing long touch”. |
|
1832 if( AknLayoutUtils::PenEnabled() ) |
|
1833 { |
1830 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
1834 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
1831 if ( feedback ) |
1835 if ( feedback ) |
1832 { |
|
1833 if( AknLayoutUtils::PenEnabled() ) |
|
1834 { |
1836 { |
1835 if ( CAknTransitionUtils::TransitionsEnabled( AknTransEffect::EComponentTransitionsOff ) ) |
1837 if ( CAknTransitionUtils::TransitionsEnabled( AknTransEffect::EComponentTransitionsOff ) ) |
1836 { |
1838 { |
1837 feedback->InstantFeedback( ETouchFeedbackIncreasingPopUp ); |
1839 feedback->InstantFeedback( this, |
|
1840 ETouchFeedbackIncreasingPopUp, |
|
1841 ETouchFeedbackVibra, |
|
1842 TPointerEvent() ); |
1838 } |
1843 } |
1839 else |
1844 else |
1840 { |
1845 { |
1841 feedback->InstantFeedback( ETouchFeedbackPopUp ); |
1846 feedback->InstantFeedback( this, |
|
1847 ETouchFeedbackPopUp, |
|
1848 ETouchFeedbackVibra, |
|
1849 TPointerEvent() ); |
1842 } |
1850 } |
1843 } |
1851 } |
1844 } |
1852 } |
1845 |
1853 |
1846 // Create the grid control. CAknDialog will CreateFromResourceL() it |
1854 // Create the grid control. CAknDialog will CreateFromResourceL() it |