idlehomescreen/xmluirendering/renderingplugins/xntexteditorfactory/inc/xntexteditoradapter.h
equal
deleted
inserted
replaced
18 #ifndef _XNTEXTEDITORADAPTER_H |
18 #ifndef _XNTEXTEDITORADAPTER_H |
19 #define _XNTEXTEDITORADAPTER_H |
19 #define _XNTEXTEDITORADAPTER_H |
20 |
20 |
21 // System includes |
21 // System includes |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 #include <babitflags.h> |
|
24 |
23 |
25 // User includes |
24 // User includes |
26 #include "xncontroladapter.h" |
25 #include "xncontroladapter.h" |
27 #include "xnuienginepluginif.h" |
26 #include "xnuienginepluginif.h" |
28 |
27 |
82 * @since S60 5.0 |
81 * @since S60 5.0 |
83 * @return Text, ownership is transfered |
82 * @return Text, ownership is transfered |
84 */ |
83 */ |
85 HBufC* Text() const; |
84 HBufC* Text() const; |
86 |
85 |
87 public: |
86 /** |
88 // from base classes |
87 * Handles editor events |
|
88 * |
|
89 * @since S60 5.2 |
|
90 * @param aReason, editor event |
|
91 */ |
|
92 void HandleEditorEvent( TInt aReason ); |
|
93 |
|
94 public: // from base classes |
89 |
95 |
90 /** |
96 /** |
91 * See CCoeControl documentation |
97 * See CCoeControl documentation |
92 */ |
98 */ |
93 TInt CountComponentControls() const; |
99 TInt CountComponentControls() const; |
104 |
110 |
105 /** |
111 /** |
106 * See CCoeControl documentation |
112 * See CCoeControl documentation |
107 */ |
113 */ |
108 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
114 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
109 |
115 |
|
116 /** |
|
117 * See CXnControlAdapter documentation |
|
118 */ |
|
119 TBool RefusesFocusLoss() const; |
|
120 |
110 /** |
121 /** |
111 * See CCoeControl documentation |
122 * See CCoeControl documentation |
112 */ |
123 */ |
113 void FocusChanged( TDrawNow aDrawNow ); |
124 void FocusChanged( TDrawNow aDrawNow ); |
114 |
125 |
115 /** |
126 /** |
116 * See CCoeControl documentation |
127 * See CCoeControl documentation |
117 */ |
128 */ |
118 void Draw( const TRect& aRect ) const; |
129 void Draw( const TRect& aRect ) const; |
119 |
130 |
|
131 /** |
|
132 * See CCoeControl documentation |
|
133 */ |
|
134 void HandleResourceChange( TInt aType ); |
|
135 |
120 /** |
136 /** |
121 * See CCoeControl documentation |
137 * See CCoeControl documentation |
122 */ |
138 */ |
123 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
139 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
140 |
|
141 /** |
|
142 * See CCoeAppUiBase. |
|
143 */ |
|
144 void HandleScreenDeviceChangedL(); |
124 |
145 |
125 private: |
146 private: |
126 // from MCoeControlBackground |
147 // from MCoeControlBackground |
127 |
148 |
128 /** |
149 /** |
169 // Font, owned */ |
190 // Font, owned */ |
170 CFont* iFont; |
191 CFont* iFont; |
171 /** Flag to indicate whether the font needs to be released or not */ |
192 /** Flag to indicate whether the font needs to be released or not */ |
172 TBool iReleaseFont; |
193 TBool iReleaseFont; |
173 /** Max line amount */ |
194 /** Max line amount */ |
174 TInt iMaxLines; |
195 TInt iMaxLines; |
175 /** Flags */ |
196 /** Flag to indicate whether focus loss is refused */ |
176 TBitFlags32 iFlags; |
197 TBool iRefusesFocusLoss; |
|
198 /** Split input states*/ |
|
199 TInt iSplitInputFlags; |
|
200 /** Flag to indicate if SetTextL is called */ |
|
201 TBool iIsSetText; |
177 }; |
202 }; |
178 |
203 |
179 #endif // _XNTEXTEDITORADAPTER_H |
204 #endif // _XNTEXTEDITORADAPTER_H |
180 |
205 |
181 // End of File |
206 // End of File |