equal
deleted
inserted
replaced
34 */ |
34 */ |
35 class CNcsAifEditor: public CNcsEditor, public MEikEdwinObserver |
35 class CNcsAifEditor: public CNcsEditor, public MEikEdwinObserver |
36 { |
36 { |
37 public: // constructors/destructor |
37 public: // constructors/destructor |
38 |
38 |
39 CNcsAifEditor( MNcsFieldSizeObserver* aSizeObserver ); |
39 CNcsAifEditor( MNcsFieldSizeObserver* aSizeObserver, const TDesC& aCaptionText ); |
40 |
40 |
41 void ConstructL( const CCoeControl* aParent, |
41 void ConstructL( const CCoeControl* aParent, |
42 TInt aNumberOfLines, |
42 TInt aNumberOfLines, |
43 TInt aTextLimit ); |
43 TInt aTextLimit ); |
44 |
44 |
45 virtual ~CNcsAifEditor(); |
45 virtual ~CNcsAifEditor(); |
46 |
46 |
47 public: // from CoeControl |
47 public: // from CoeControl |
48 |
48 |
49 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
49 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
50 void HandlePointerEventL( const TPointerEvent& aPointerEvent ); |
50 |
51 |
51 public: // from MEikEdwinObserver |
52 public: // from MEikEdwinObserver |
52 |
53 |
53 void HandleEdwinEventL(CEikEdwin* aEdwin, TEdwinEvent aEventType); |
54 void HandleEdwinEventL(CEikEdwin* aEdwin, TEdwinEvent aEventType); |
54 |
55 |
176 TBool IsCharacterKey( const TKeyEvent& aKeyEvent ) const; |
177 TBool IsCharacterKey( const TKeyEvent& aKeyEvent ) const; |
177 void GetMatchingEntryCountsL( |
178 void GetMatchingEntryCountsL( |
178 const CNcsAifEntry* aEntry, |
179 const CNcsAifEntry* aEntry, |
179 TInt& aNrOfMatchesInText, |
180 TInt& aNrOfMatchesInText, |
180 TInt& aNrOfMatchesInEntryArray ); |
181 TInt& aNrOfMatchesInEntryArray ); |
181 |
182 void CompleteEntryL(); |
|
183 |
182 private: // data |
184 private: // data |
183 |
185 |
184 RPointerArray<CNcsAifEntry> iArray; |
186 RPointerArray<CNcsAifEntry> iArray; |
185 |
187 |
186 RPointerArray<CNcsEmailAddressObject> iAddressArray; |
188 RPointerArray<CNcsEmailAddressObject> iAddressArray; |
191 |
193 |
192 TInt iLastTimeCursorPos; |
194 TInt iLastTimeCursorPos; |
193 |
195 |
194 // Flag indicating whether add the leftover text to the end of the field |
196 // Flag indicating whether add the leftover text to the end of the field |
195 TBool iAddLeftover; |
197 TBool iAddLeftover; |
|
198 TCursorSelection iTextSelection; |
|
199 TBool iPartialRemove; |
196 }; |
200 }; |
197 |
201 |
198 |
202 |
199 /////////////////////////////////////////////////////////////////////// |
203 /////////////////////////////////////////////////////////////////////// |
200 // CNcsAifEntry |
204 // CNcsAifEntry |