author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:50:15 +0300 | |
branch | RCL_3 |
changeset 72 | a5e7a4f63858 |
parent 56 | d48ab3b357f1 |
permissions | -rw-r--r-- |
56 | 1 |
/* |
2 |
* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#if !defined(__EIKDPAGE_H__) |
|
20 |
#define __EIKDPAGE_H__ |
|
21 |
||
22 |
#include <coeccntx.h> |
|
23 |
#include <eiksbfrm.h> |
|
24 |
#include <coecobs.h> |
|
25 |
#include <eikedwob.h> |
|
26 |
#include <AknPopupFieldText.h> |
|
27 |
#include <AknControl.h> |
|
28 |
||
29 |
// |
|
30 |
// Forward declarations. |
|
31 |
// |
|
32 |
||
33 |
class CEikCapCArray; |
|
34 |
class CEikCaptionedControl; |
|
35 |
class CEikDialogPageContainer; |
|
36 |
class CEikEdwin; |
|
37 |
class CEikLabel; |
|
38 |
class MEikDialogPageObserver; |
|
39 |
struct SEikControlInfo; |
|
40 |
class CAknLayoutData; |
|
41 |
class CDialogPageExtension; |
|
42 |
||
43 |
class CEikFormAnim; |
|
44 |
class MEikFormAnimObserver; |
|
45 |
class CAknPaneScroll; |
|
46 |
class CAknFormPhysics; |
|
47 |
||
48 |
/** |
|
49 |
* The CEikDialogPage class implements a scrollable dialog page control. |
|
50 |
* |
|
51 |
* @internal |
|
52 |
* @since ER5U |
|
53 |
*/ |
|
54 |
NONSHARABLE_CLASS(CEikDialogPage) : |
|
55 |
public CAknControl, |
|
56 |
public MCoeControlObserver, |
|
57 |
public MEikScrollBarObserver, |
|
58 |
public MEikEdwinSizeObserver, |
|
59 |
public MAknPopupFieldObserver, |
|
60 |
public MEikEdwinObserver |
|
61 |
{ |
|
62 |
public: |
|
63 |
enum TFocusNavigationMode |
|
64 |
{ |
|
65 |
ECyclic, |
|
66 |
ENonCyclic |
|
67 |
}; |
|
68 |
enum TAScrollBarBreadthAllocationMode |
|
69 |
{ |
|
70 |
ENone =0x0000, |
|
71 |
EScrollBarBreadthPreAllocated =0x1000 |
|
72 |
}; |
|
73 |
/** |
|
74 |
* Enumeration to express what layout is currently being used. Note that the use of |
|
75 |
* bitmaps on the left is controlled by D |
|
76 |
* |
|
77 |
*/ |
|
78 |
enum TFormLayoutSelection |
|
79 |
{ |
|
80 |
ESingle, |
|
81 |
EDouble |
|
82 |
}; |
|
83 |
||
84 |
/** |
|
85 |
* Used with iFormFlags to indicate where optimisations may or may not occur. |
|
86 |
* Uses bits above 0x100 as those below are used as static form flags for configuration by resource file. |
|
87 |
*/ |
|
88 |
enum TDynamicFormFlags |
|
89 |
{ |
|
90 |
EFormResizeOptimisationFlag = 0x100 , |
|
91 |
EFormForceEdwinResizeFlag = 0x200 |
|
92 |
} ; |
|
93 |
||
94 |
public: |
|
95 |
~CEikDialogPage(); |
|
96 |
static CEikDialogPage* NewL(TInt aId,RWindow& aViewWin,CEikScrollBarFrame& aSBFrame,const CEikDialogPageContainer& aParent,MEikDialogPageObserver* aPageObserver); |
|
97 |
static CEikDialogPage* NewLC(TInt aId,RWindow& aViewWin,CEikScrollBarFrame& aSBFrame,const CEikDialogPageContainer& aParent,MEikDialogPageObserver* aPageObserver); |
|
98 |
static CEikDialogPage* NewL(TInt aId,RWindow& aViewWin,CEikScrollBarFrame& aSBFrame,const CEikDialogPageContainer& aParent,MEikDialogPageObserver* aPageObserver,TResourceReader& aReader); |
|
99 |
static CEikDialogPage* NewLC(TInt aId,RWindow& aViewWin,CEikScrollBarFrame& aSBFrame,const CEikDialogPageContainer& aParent,MEikDialogPageObserver* aPageObserver,TResourceReader& aReader); |
|
100 |
void SetDataPosition( TInt aTopY, TInt aBottomY, TBool aForceResize ); |
|
101 |
TSize PreferredSize() const; |
|
102 |
void SetActiveL(); |
|
103 |
void SetActiveAndFocusL(); |
|
104 |
void SetInactiveL(); |
|
105 |
TInt PageId() const; |
|
106 |
TInt LineId(const CCoeControl& aControl) const; |
|
107 |
TBool SetInitialFocus(); |
|
108 |
CCoeControl* CreateLineByTypeL(const TDesC& aCaption,TInt aLineId,TInt aControlType,TAny* aReturnValue); |
|
109 |
CCoeControl* Control(TInt aLineId) const; |
|
110 |
CCoeControl* ControlOrNull(TInt aLineId) const; |
|
111 |
TInt ControlHeight(TInt aLineIndex) const; |
|
112 |
CEikCaptionedControl* Line(TInt aLineId) const; |
|
113 |
CEikCaptionedControl* LineOrNull(TInt aLineId) const; |
|
114 |
CEikCaptionedControl* CurrentLine() const; |
|
115 |
void SetDensePacking(TBool aDensePacking); |
|
116 |
void InsertLineL(TInt aPosition,TInt aResourceId); |
|
117 |
void DeleteLine(TInt aLineId,TBool aRedrawNow); |
|
118 |
void AdjustAllIds(TInt aControlIdDelta); |
|
119 |
TInt FocusLineL(TInt aLineId); |
|
120 |
TInt FocusedLineId() const; |
|
121 |
void GetAutoValues(); |
|
122 |
TKeyResponse OfferUpDownKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType,TFocusNavigationMode aFocusNavigationMode); |
|
123 |
TBool OwnsLine(TInt aLineId) const; |
|
124 |
void ResetLineMinimumSizes(); |
|
125 |
TInt FindLineIndex(const CCoeControl* aControl) const; |
|
126 |
TBool RotateFocusByL(TInt aDelta); |
|
127 |
TKeyResponse OfferHotKeysKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
128 |
TBool TakesEnterKey(); |
|
129 |
TInt LineIndex(TInt aLineId); |
|
130 |
void ReportPageChangedL(); |
|
131 |
TInt GetFormFlags() const; |
|
132 |
void SetFormFlag( TInt16 aFlag, TBool aEnable ) ; // used with TDynamicFormFlags |
|
133 |
void ConstructFormFromResourceL( TResourceReader& aReader ) ; |
|
134 |
void SetEditableL( TBool aEditable, TBool aActivePage ) ; |
|
135 |
TBool IsEditable() const; |
|
136 |
TBool IsForm() const; |
|
137 |
||
138 |
void SetDoubleQuery(TBool aIsDoubleQuery); |
|
139 |
||
140 |
CEikFormAnim* AcquireAnim( TBool aAcquire, MEikFormAnimObserver* aObserver ) const; |
|
141 |
||
142 |
public: |
|
143 |
void UpdateScrollBarL(); |
|
144 |
TBool LineHandlerCalled() const; |
|
145 |
||
146 |
public: // from CCoeControl |
|
147 |
TSize MinimumSize(); |
|
148 |
virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const; |
|
149 |
virtual void HandleResourceChange(TInt aType); |
|
150 |
virtual void PrepareForFocusLossL(); |
|
151 |
virtual void SetDimmed(TBool aDimmed); |
|
152 |
virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
153 |
public: // from MCoeControlObserver |
|
154 |
virtual void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); |
|
155 |
public: // from MEikEdwinSizeObserver |
|
156 |
virtual TBool HandleEdwinSizeEventL(CEikEdwin* aEdwin, TEdwinSizeEvent aEventType, TSize aDesirableEdwinSize); |
|
157 |
public: // from MEikEdwinObserver |
|
158 |
virtual void HandleEdwinEventL(CEikEdwin* aEdwin,TEdwinEvent aEventType); |
|
159 |
||
160 |
public: // from MAknPopupFieldObserver |
|
161 |
virtual void HandlePopupFieldEventL(CAknPopupField* aPopupField, TAknPopupFieldEvent aEventType, TInt aHint); |
|
162 |
public: |
|
163 |
void SetPageContainer(const CEikDialogPageContainer* aPageContainer); |
|
164 |
const CEikDialogPageContainer* PageContainer() const; |
|
165 |
protected: // from CCoeControl |
|
166 |
void WriteInternalStateL(RWriteStream& aWriteStream) const; |
|
167 |
void SizeChanged(); |
|
168 |
TInt CountComponentControls() const; |
|
169 |
CCoeControl* ComponentControl(TInt aIndex) const; |
|
170 |
void FocusChanged(TDrawNow aDrawNow); |
|
171 |
void Draw(const TRect& aRect) const; |
|
172 |
public: |
|
173 |
// added to allow Form format to be set by API |
|
174 |
IMPORT_C void SetFormLayout(TFormLayoutSelection aLayout); |
|
175 |
IMPORT_C TFormLayoutSelection FormLayout() const; |
|
176 |
public: |
|
177 |
public: |
|
178 |
TBool IsAtOrOffTopOfPage(const CCoeControl* aControl) const; |
|
179 |
TBool IsAtOrOffBottomOfPage(const CCoeControl* aControl) const ; |
|
180 |
public: |
|
181 |
TBool VisibleSizeOnPage(TInt& aHeightOfControlVisibleOnPage, const CCoeControl* aControl) const; |
|
182 |
||
183 |
/** |
|
184 |
* Scrolls cached drawing commands by @c aDelta pixels in y direction. |
|
185 |
* |
|
186 |
* @param aDelta A y-asix base on the sliding control's coordinate. |
|
187 |
* @param aDrawNow Whether or not the view should be drawn. |
|
188 |
*/ |
|
189 |
void ScrollCacheByPixels( TInt aDelta, |
|
190 |
TBool aDrawNow = ETrue ); |
|
191 |
||
192 |
/** |
|
193 |
* Updates line's cached drawing commands. |
|
194 |
*/ |
|
195 |
void UpdateLineInCache( CEikCaptionedControl* aLine ); |
|
196 |
||
197 |
/** |
|
198 |
* Physics simulation ended. |
|
199 |
*/ |
|
200 |
void Synchronize(); |
|
201 |
||
202 |
/** |
|
203 |
* Can be used to query whether highlight graphics should be drawn. |
|
204 |
* |
|
205 |
* @since S60 5.2 |
|
206 |
* |
|
207 |
* @return ETrue if highlight should be drawn. |
|
208 |
*/ |
|
209 |
TBool HighlightVisible() const; |
|
210 |
||
211 |
protected: // from MEikScrollBarObserver |
|
212 |
virtual void HandleScrollEventL(CEikScrollBar* aScrollBar,TEikScrollEvent aEventType); |
|
213 |
||
214 |
private: // new functions |
|
215 |
void AfterAddingNewLinesL(TInt aNewLineAdded); |
|
216 |
||
217 |
CEikDialogPage(TInt aId,RWindow& aViewWin,CEikScrollBarFrame& aSBFrame,MEikDialogPageObserver* aPageObserver); |
|
218 |
void ConstructL(); |
|
219 |
void ConstructFromResourceL(TResourceReader& aReader, TBool aFormControl = EFalse ); |
|
220 |
void ConstructByTypeL(TInt aControlType,CEikCaptionedControl* aLine,CCoeControl* aContainer); |
|
221 |
void ShowFocus(TBool aFocus, TBool aRedraw=ETrue); |
|
222 |
SEikControlInfo CreateCustomControlL(TInt aControlType); |
|
223 |
void ChangeFocusTo(TInt aLineIndex); |
|
224 |
void PrepareForFocusTransitionL(); |
|
225 |
void ChangeFocusToAndExposeL(TInt aLine,TBool aShowWholeControl=EFalse); |
|
226 |
TInt TopFocusableLine() const; |
|
227 |
TInt BottomFocusableLine() const; |
|
228 |
TBool LineIsFocusable(TInt aLine) const; |
|
229 |
TBool ResizeEdwinToFitTextL(CEikEdwin* aEdwin, TDrawNow aDrawNow, TSize aDesirableEdwinSize); |
|
230 |
void ExposeLine(TInt aLine, TBool aForceResize, TBool aShowWholeLine = EFalse ); |
|
231 |
void PassOnEventL(CCoeControl* aControl,MCoeControlObserver::TCoeEvent aEvent); |
|
232 |
CEikCaptionedControl* ConstructLineL(TInt aResourceId); |
|
233 |
CEikCaptionedControl* ConstructLineL(TResourceReader& aReader); |
|
234 |
TKeyResponse HandleCyclicFocusNavigationKeyL(const TKeyEvent& aKeyEvent); |
|
235 |
TKeyResponse HandleNonCyclicFocusNavigationKeyL(const TKeyEvent& aKeyEvent); |
|
236 |
void MakeEdwinScrollbarsVisibleL(TBool aVisible); |
|
237 |
void LineChangedL(TInt aControlId); |
|
238 |
void UpdateScrollBarThumb(); |
|
239 |
void ReconsiderPageSize(); |
|
240 |
void PrepareToDrawVerticalLine() const; |
|
241 |
||
242 |
/** |
|
243 |
* Specialized pointer event handling for forms. |
|
244 |
*/ |
|
245 |
void HandleFormPointerEventL( const TPointerEvent& aPointerEvent ); |
|
246 |
||
247 |
/** |
|
248 |
* Updates physics data. |
|
249 |
*/ |
|
250 |
void UpdatePhysics(); |
|
251 |
||
252 |
/** |
|
253 |
* Callback for highlight timer. |
|
254 |
*/ |
|
255 |
static TInt HighlightTimerCallBack( TAny* aPtr ); |
|
256 |
||
257 |
/** |
|
258 |
* Handles highlight timer's expiration. |
|
259 |
*/ |
|
260 |
void HandleHighlightTimer(); |
|
261 |
||
262 |
/** |
|
263 |
* Performs forced redraw of aControl and its component controls. |
|
264 |
*/ |
|
265 |
void DrawControl( CCoeControl* aControl ) const; |
|
266 |
||
267 |
/** |
|
268 |
* Record all lines drawing commands to the cache. Existing cache is purged. |
|
269 |
*/ |
|
270 |
void RecordLinesL(); |
|
271 |
||
272 |
/** |
|
273 |
* Records one line's drawing commands to the cache replacing existing commands for that line. |
|
274 |
*/ |
|
275 |
void RecordLineL( TInt aLine ); |
|
276 |
||
277 |
/** |
|
278 |
* Removes pressed down highlight. |
|
279 |
*/ |
|
280 |
void RemovePressedDownHighlight(); |
|
281 |
||
282 |
/** |
|
283 |
* Sets highlight's visibility. |
|
284 |
* |
|
285 |
* @since S60 5.2 |
|
286 |
* |
|
287 |
* @param aVisible ETrue to set highlight visible. |
|
288 |
*/ |
|
289 |
void HighlightVisible( TBool aVisible ); |
|
290 |
||
291 |
enum TScrollDirection |
|
292 |
{ |
|
293 |
ESingleLineScrollUp , |
|
294 |
ESingleLineScrollDown |
|
295 |
} ; |
|
296 |
void RegisterComponentL(TInt aControlType, CCoeControl* aControl, CEikCaptionedControl* aLine); |
|
297 |
static void CommonConstructCodeBetweenNewL(CEikDialogPage& aDialogPage, const CEikDialogPageContainer& aParent); |
|
298 |
||
299 |
public: |
|
300 |
TBool AnythingToDisplay() const; |
|
301 |
CEikCaptionedControl* LineOnPageOrNull(TInt aLine) const; |
|
302 |
TInt NumberOfLines() const; |
|
303 |
CEikCaptionedControl* LineByIndex(TInt aIndex) const; |
|
304 |
||
305 |
private: |
|
306 |
CEikCapCArray* iLines; |
|
307 |
MEikDialogPageObserver* iPageObserver; |
|
308 |
TInt iPageId; |
|
309 |
TInt iCurrentLine; |
|
310 |
TInt16 iFormFlags ; |
|
311 |
TBool iIsEditable; |
|
312 |
TBool iFormControl ; |
|
313 |
TInt iLastExposedLine; |
|
314 |
TInt iLastExposedLineViewWinYPosition; |
|
315 |
const CEikDialogPageContainer* iPageContainer; |
|
316 |
TFormLayoutSelection iFormLayout; |
|
317 |
CAknPaneScroll *iScroll; |
|
318 |
public: |
|
319 |
mutable CEikEdwin* iIgnoreFurtherEdwinResizeEvents; |
|
320 |
private: |
|
321 |
CDialogPageExtension* iExtension; |
|
322 |
void DrawEmptyListL( CWindowGc& aGc ); |
|
323 |
CAknFormPhysics* iPhysics; |
|
324 |
||
325 |
/** |
|
326 |
* Stores highlight's visibility. |
|
327 |
*/ |
|
328 |
TBool iHighlightVisible; |
|
329 |
||
330 |
public: |
|
331 |
/** |
|
332 |
* HandlePointerEventL |
|
333 |
* Function notifys the pages observer that the page has been tapped. (stylus down&up) |
|
334 |
* @param aPointerEvent the pointer event. |
|
335 |
*/ |
|
336 |
virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
337 |
||
338 |
void SetScbState(TBool aExternal); |
|
339 |
TBool ScbState() const; |
|
340 |
||
341 |
private: |
|
342 |
/** |
|
343 |
* From CAknControl |
|
344 |
*/ |
|
345 |
IMPORT_C void* ExtensionInterface( TUid aInterface ); |
|
346 |
}; |
|
347 |
||
348 |
||
349 |
/** |
|
350 |
* The CEikDialogPageContainer class contains one or more dialog pages and provides an interface to the active |
|
351 |
* page. |
|
352 |
* |
|
353 |
* @internal |
|
354 |
* @since ER5U |
|
355 |
*/ |
|
356 |
NONSHARABLE_CLASS(CEikDialogPageContainer) : public CAknControl, public MCoeControlContext, public MCoeControlHitTest |
|
357 |
{ |
|
358 |
public: |
|
359 |
~CEikDialogPageContainer(); |
|
360 |
static CEikDialogPageContainer* NewL(const CCoeControl& aParent,MEikDialogPageObserver* aPageObserver); |
|
361 |
static CEikDialogPageContainer* NewLC(const CCoeControl& aParent,MEikDialogPageObserver* aPageObserver); |
|
362 |
TSize PreferredSize(const TSize& aMaxSize) const; |
|
363 |
void SetActivePageByIdL(TInt aPageId); |
|
364 |
void SetActivePageByIndexL(TInt aPageIndex); |
|
365 |
TInt ActivateFirstPageL(); |
|
366 |
void AddPageL(TInt aPageId); |
|
367 |
void AddPageL(TInt aPageId,TResourceReader& aReader); |
|
368 |
TBool SetInitialFocus(); |
|
369 |
CEikCaptionedControl* Line(TInt aLineId) const; |
|
370 |
CEikCaptionedControl* LineOrNull(TInt aLineId) const; |
|
371 |
CEikCaptionedControl* CurrentLine() const; |
|
372 |
void SetPageDensePacked(TInt aPageId,TBool aDensePacked); |
|
373 |
void SetAllPagesDensePacked(TBool aDensePacked); |
|
374 |
void SetPageDimmed(TInt aPageId,TBool aDimmed,TDrawNow aDrawNow); |
|
375 |
TBool IsActivePageDimmed() const; |
|
376 |
TInt LineId(const CCoeControl& aControl) const; |
|
377 |
void InsertLineL(TInt aPosition,TInt aPageId,TInt aResourceId); |
|
378 |
void DeleteLine(TInt aLineId, TBool aRedrawNow); |
|
379 |
void AdjustAllIds(TInt aPageId,TInt aControlIdDelta); |
|
380 |
CCoeControl* CreateLineByTypeL(const TDesC& aCaption,TInt aLineId,TInt aControlType,TAny* aReturnValue); |
|
381 |
CCoeControl* CreateLineByTypeL(const TDesC& aCaption,TInt aPageId,TInt aLineId,TInt aControlType,TAny* aReturnValue); |
|
382 |
TInt FocusLineL(TInt aLineId); |
|
383 |
TInt FocusedLineId() const; |
|
384 |
void GetAutoValues(); |
|
385 |
TKeyResponse OfferUpDownKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType,CEikDialogPage::TFocusNavigationMode aFocusNavigationMode); |
|
386 |
TInt ActivePageId() const; |
|
387 |
TInt ActivePageIndex() const; |
|
388 |
void ResetLineMinimumSizes(); |
|
389 |
TInt FindLineIndex(const CCoeControl& aControl) const; |
|
390 |
TBool RotateFocusByL(TInt aDelta); |
|
391 |
TInt NumPages() const; |
|
392 |
TKeyResponse OfferHotKeysKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
393 |
TBool TakesEnterKey(); |
|
394 |
TInt FindPageIndexForLineId(TInt aLineId); |
|
395 |
CEikDialogPage* Page( TInt aPageID ) ; |
|
396 |
void SetEditableL( TBool aEditable ) ; |
|
397 |
||
398 |
CEikFormAnim* AcquireAnim( TBool aAcquire, MEikFormAnimObserver* aObserver ) const; |
|
399 |
||
400 |
public: // from CCoeControl |
|
401 |
virtual void Draw(const TRect& aRect) const; |
|
402 |
virtual TSize MinimumSize(); |
|
403 |
virtual void PrepareForFocusLossL(); |
|
404 |
virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
405 |
virtual void HandleResourceChange(TInt aType); |
|
406 |
public: // from MCoeControlContext |
|
407 |
virtual void PrepareContext(CWindowGc& aGc) const; |
|
408 |
public: |
|
409 |
TBool HitRegionContains( const TPoint& aPoint, const CCoeControl& aControl ) const; |
|
410 |
public: |
|
72
a5e7a4f63858
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
411 |
void SetPageFormSized(); |
56 | 412 |
protected: // from CCoeControl |
413 |
virtual void SizeChanged(); |
|
414 |
virtual TInt CountComponentControls() const; |
|
415 |
virtual CCoeControl* ComponentControl(TInt aIndex) const; |
|
416 |
virtual void ActivateL(); |
|
417 |
virtual void FocusChanged(TDrawNow aDrawNow); |
|
418 |
virtual void WriteInternalStateL(RWriteStream& aWriteStream) const; |
|
419 |
public: |
|
420 |
void SetPageSelector(const CEikDialogPageSelector* aPageSelector); |
|
421 |
const CEikDialogPageSelector* PageSelector() const; |
|
422 |
private: |
|
423 |
CEikDialogPageContainer(MEikDialogPageObserver* aPageObserver); |
|
424 |
void ConstructL(const CCoeControl& aParent); |
|
425 |
void ConstructFromResourceL(TResourceReader& aReader,const CCoeControl& aParent); |
|
426 |
void CommonConstructL(const CCoeControl& aParent); |
|
427 |
void CreatePageArrayL(); |
|
428 |
TInt PageIndex(TInt aPageId) const; |
|
429 |
TInt PageId(TInt aIndex) const; |
|
430 |
TInt PageIdFromLineId(TInt aLineId) const; |
|
431 |
public: |
|
432 |
void CreateScrollBarL(const CCoeControl& aParent); |
|
433 |
CEikScrollBarFrame* ScrollBar() const; |
|
434 |
||
435 |
private: |
|
436 |
CEikScrollBarFrame* iSBFrame; |
|
437 |
CArrayPtr<CEikDialogPage>* iPageArray; |
|
438 |
MEikDialogPageObserver* iPageObserver; |
|
439 |
TInt iActivePage; |
|
440 |
const CEikDialogPageSelector* iPageSelector; |
|
441 |
TBool iForm; |
|
442 |
TBool iIsEditable; |
|
443 |
||
444 |
/** |
|
445 |
* A singleton animation object for interfacing AknsEffectAnimation. All |
|
446 |
* captioned controls (in all dialog pages) share the same animation. |
|
447 |
* Only animation creation and memory management is vested here. Actual |
|
448 |
* animation usage is implemented in CaptionedControl. |
|
449 |
*/ |
|
450 |
CEikFormAnim* iAnimation; |
|
451 |
}; |
|
452 |
||
453 |
#endif |