williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@2
|
5 |
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@2
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description:
|
williamr@2
|
15 |
*
|
williamr@2
|
16 |
*/
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#ifndef __EIKDIALG_H__
|
williamr@2
|
20 |
#define __EIKDIALG_H__
|
williamr@2
|
21 |
|
williamr@2
|
22 |
#ifndef __COECOBS_H__
|
williamr@2
|
23 |
#include <coecobs.h>
|
williamr@2
|
24 |
#endif
|
williamr@2
|
25 |
|
williamr@2
|
26 |
#ifndef __COECCNTX_H__
|
williamr@2
|
27 |
#include <coeccntx.h>
|
williamr@2
|
28 |
#endif
|
williamr@2
|
29 |
|
williamr@2
|
30 |
#ifndef __EIKBCTRL_H__
|
williamr@2
|
31 |
#include <eikbctrl.h>
|
williamr@2
|
32 |
#endif
|
williamr@2
|
33 |
|
williamr@2
|
34 |
#ifndef __EIKDPOBS_H__
|
williamr@2
|
35 |
#include <eikdpobs.h>
|
williamr@2
|
36 |
#endif
|
williamr@2
|
37 |
|
williamr@2
|
38 |
#ifndef __BADESCA_H__
|
williamr@2
|
39 |
#include <badesca.h>
|
williamr@2
|
40 |
#endif
|
williamr@2
|
41 |
|
williamr@2
|
42 |
#ifndef __GULFTFLG_HRH__
|
williamr@2
|
43 |
#include <gulftflg.hrh>
|
williamr@2
|
44 |
#endif
|
williamr@2
|
45 |
|
williamr@2
|
46 |
|
williamr@2
|
47 |
|
williamr@2
|
48 |
//
|
williamr@2
|
49 |
// Header files needed by deprecated interfaces.
|
williamr@2
|
50 |
//
|
williamr@2
|
51 |
|
williamr@2
|
52 |
#ifndef __EIKBUTB_H__
|
williamr@2
|
53 |
#include <eikbutb.h>
|
williamr@2
|
54 |
#endif
|
williamr@2
|
55 |
|
williamr@2
|
56 |
#ifndef __EIKBTGPC_H__
|
williamr@2
|
57 |
#include <eikbtgpc.h>
|
williamr@2
|
58 |
#endif
|
williamr@2
|
59 |
|
williamr@2
|
60 |
#include <aknpopupfader.h>
|
williamr@2
|
61 |
|
williamr@2
|
62 |
// constant definitions
|
williamr@2
|
63 |
const TInt KAknMediatorFacade(0x10275076);
|
williamr@2
|
64 |
|
williamr@2
|
65 |
|
williamr@2
|
66 |
class CEikMover;
|
williamr@2
|
67 |
class CEikCaptionedControl;
|
williamr@2
|
68 |
class CEikCapCArray;
|
williamr@2
|
69 |
class CEikDialogPageSelector;
|
williamr@2
|
70 |
class CEikButtonGroupContainer;
|
williamr@2
|
71 |
class CEikDialogButtonCommandObserver;
|
williamr@2
|
72 |
class MEikCommandObserver;
|
williamr@2
|
73 |
class CAknDialog;
|
williamr@2
|
74 |
class CAknNoteDialog;
|
williamr@2
|
75 |
|
williamr@2
|
76 |
struct SEikControlInfo;
|
williamr@2
|
77 |
|
williamr@2
|
78 |
class CEikDialogExtension ;
|
williamr@2
|
79 |
// <SKIN>
|
williamr@2
|
80 |
class CAknsListBoxBackgroundControlContext ;
|
williamr@2
|
81 |
//
|
williamr@2
|
82 |
// Forward declarations needed by deprecated interfaces.
|
williamr@2
|
83 |
//
|
williamr@2
|
84 |
|
williamr@2
|
85 |
class CEikLabel;
|
williamr@2
|
86 |
class CGlobalText;
|
williamr@2
|
87 |
class MAknDialogMediatorObserver;
|
williamr@2
|
88 |
struct SEikRange;
|
williamr@2
|
89 |
struct SEikDegreesMinutesDirection;
|
williamr@2
|
90 |
|
williamr@2
|
91 |
|
williamr@2
|
92 |
/**
|
williamr@2
|
93 |
* The @c CEikDialog class provides an instantiable base class for dialogs.
|
williamr@2
|
94 |
* Controls can be added directly to this class but it is normal to create
|
williamr@2
|
95 |
* a subclass to handle the controls appearing on the dialog dynamically.
|
williamr@2
|
96 |
*/
|
williamr@2
|
97 |
class CEikDialog : public CEikBorderedControl,
|
williamr@2
|
98 |
public MCoeControlObserver,
|
williamr@2
|
99 |
public MEikDialogPageObserver,
|
williamr@2
|
100 |
public MCoeControlContext,
|
williamr@2
|
101 |
public MAknFadedComponent
|
williamr@2
|
102 |
{
|
williamr@2
|
103 |
|
williamr@2
|
104 |
public:
|
williamr@2
|
105 |
|
williamr@2
|
106 |
DECLARE_TYPE_ID(0x10282EA8)
|
williamr@2
|
107 |
|
williamr@2
|
108 |
/**
|
williamr@2
|
109 |
* C++ default constructor.
|
williamr@2
|
110 |
*/
|
williamr@2
|
111 |
IMPORT_C CEikDialog();
|
williamr@2
|
112 |
|
williamr@2
|
113 |
/**
|
williamr@2
|
114 |
* Destructor.
|
williamr@2
|
115 |
*/
|
williamr@2
|
116 |
IMPORT_C ~CEikDialog();
|
williamr@2
|
117 |
|
williamr@2
|
118 |
/**
|
williamr@2
|
119 |
* Loads, displays, and destroys the dialog.
|
williamr@2
|
120 |
*
|
williamr@2
|
121 |
* This function loads the specified dialog from a resource and displays
|
williamr@2
|
122 |
* it. The method then destroys the dialog when it exits, therefore there
|
williamr@2
|
123 |
* is no need for the application program to destroy the dialog.
|
williamr@2
|
124 |
*
|
williamr@2
|
125 |
* In the resource file, use the @c EEikBidOk dialog button ID for an
|
williamr@2
|
126 |
* OK/Done/Continue button and @c EEikBidCancel for a Cancel button.
|
williamr@2
|
127 |
*
|
williamr@2
|
128 |
* The function returns immediately unless @c EEikDialogFlagWait has been
|
williamr@2
|
129 |
* specified in the @c DIALOG resource. If @c EEikDialogFlagWait is
|
williamr@2
|
130 |
* specified, it returns when the dialog exits.
|
williamr@2
|
131 |
*
|
williamr@2
|
132 |
* @param aResourceId The resource ID of the dialog to load.
|
williamr@2
|
133 |
* @return Zero, unless it is a waiting dialog. For a waiting dialog,
|
williamr@2
|
134 |
* the return value is the ID of the button that closed the dialog,
|
williamr@2
|
135 |
* or zero if it was the cancel button (@c EEikBidCancel).
|
williamr@2
|
136 |
*/
|
williamr@2
|
137 |
IMPORT_C virtual TInt ExecuteLD(TInt aResourceId);
|
williamr@2
|
138 |
|
williamr@2
|
139 |
/**
|
williamr@2
|
140 |
* Prepares the dialog, constructing it from the specified resource.
|
williamr@2
|
141 |
*
|
williamr@2
|
142 |
* @param aResourceId The resource ID of the dialog.
|
williamr@2
|
143 |
*/
|
williamr@2
|
144 |
IMPORT_C virtual void PrepareLC(TInt aResourceId);
|
williamr@2
|
145 |
|
williamr@2
|
146 |
/**
|
williamr@2
|
147 |
* Reads the dialog resources into the dialog, constructing it from the specified resource.
|
williamr@2
|
148 |
* The function is only to help loading dialog resources and
|
williamr@2
|
149 |
* extracting dialog data, in other cases use (@c PrepareLC()).
|
williamr@2
|
150 |
* Unlike PrepareLC(), it does not add the dialog to control stack.
|
williamr@2
|
151 |
* @since 3.2
|
williamr@2
|
152 |
*
|
williamr@2
|
153 |
* @param aResourceId The resource ID of the dialog.
|
williamr@2
|
154 |
*/
|
williamr@2
|
155 |
IMPORT_C void ReadResourceLC(TInt aResourceId);
|
williamr@2
|
156 |
|
williamr@2
|
157 |
/**
|
williamr@2
|
158 |
* Runs the dialog and returns the ID of the button used to dismiss it.
|
williamr@2
|
159 |
*
|
williamr@2
|
160 |
* The dialog is destroyed on exit.
|
williamr@2
|
161 |
*
|
williamr@2
|
162 |
* This function is called by the dialog framework (@c ExecuteLD()) to
|
williamr@2
|
163 |
* perform dynamic construction (layout) and to display/destroy the
|
williamr@2
|
164 |
* dialog. Static construction of the dialog must already be complete
|
williamr@2
|
165 |
* before this function is called, e.g. using @c PrepareLC().
|
williamr@2
|
166 |
*
|
williamr@2
|
167 |
* The function returns immediately unless @c EEikDialogFlagWait has
|
williamr@2
|
168 |
* been specified in the @c DIALOG resource. If @c EEikDialogFlagWait is
|
williamr@2
|
169 |
* specified it returns when the dialog exits.
|
williamr@2
|
170 |
*
|
williamr@2
|
171 |
* @return The ID of the button used to dismiss the dialog.
|
williamr@2
|
172 |
*/
|
williamr@2
|
173 |
IMPORT_C virtual TInt RunLD();
|
williamr@2
|
174 |
|
williamr@2
|
175 |
/**
|
williamr@2
|
176 |
* Sets the dialog title text from a descriptor.
|
williamr@2
|
177 |
*
|
williamr@2
|
178 |
* @deprecated
|
williamr@2
|
179 |
* @param aText The descriptor containing the new title text.
|
williamr@2
|
180 |
*/
|
williamr@2
|
181 |
IMPORT_C void SetTitleL(const TDesC& aText);
|
williamr@2
|
182 |
|
williamr@2
|
183 |
/**
|
williamr@2
|
184 |
* Sets the dialog title text from a resource.
|
williamr@2
|
185 |
*
|
williamr@2
|
186 |
* @deprecated
|
williamr@2
|
187 |
* @param aResourceId The ID of the resource containing the title text.
|
williamr@2
|
188 |
*/
|
williamr@2
|
189 |
IMPORT_C void SetTitleL(TInt aResourceId);
|
williamr@2
|
190 |
|
williamr@2
|
191 |
/**
|
williamr@2
|
192 |
* Sets the specified page to be dimmed or undimmed. The page is redrawn
|
williamr@2
|
193 |
* immediately.
|
williamr@2
|
194 |
*
|
williamr@2
|
195 |
* @param aPageId The ID of the page to be dimmed.
|
williamr@2
|
196 |
* @param aDimmed @c ETrue to dim the page, @c EFalse to un-dim it.
|
williamr@2
|
197 |
*/
|
williamr@2
|
198 |
IMPORT_C void SetPageDimmedNow(TInt aPageId,TBool aDimmed);
|
williamr@2
|
199 |
|
williamr@2
|
200 |
/**
|
williamr@2
|
201 |
* Sets the specified dialog line to a non-focusing state. After this
|
williamr@2
|
202 |
* function is called, the line will never be given keyboard focus.
|
williamr@2
|
203 |
*
|
williamr@2
|
204 |
* @param aControlId The ID of the control in the line which is to be
|
williamr@2
|
205 |
* set as non-focusing.
|
williamr@2
|
206 |
*/
|
williamr@2
|
207 |
IMPORT_C void SetLineNonFocusing(TInt aControlId);
|
williamr@2
|
208 |
|
williamr@2
|
209 |
/**
|
williamr@2
|
210 |
* Dims and deactivates, or un-dims and re-activates, the specified line.
|
williamr@2
|
211 |
*
|
williamr@2
|
212 |
* @param aControlId The ID of the line to dim or un-dim.
|
williamr@2
|
213 |
* @param aDimmed @c ETrue to dim the line, @c EFalse to un-dim it.
|
williamr@2
|
214 |
*/
|
williamr@2
|
215 |
IMPORT_C void SetLineDimmedNow(TInt aControlId,TBool aDimmed);
|
williamr@2
|
216 |
|
williamr@2
|
217 |
/**
|
williamr@2
|
218 |
* Makes the specified control visible or invisible. This function affects
|
williamr@2
|
219 |
* the specified control, the visibility of the caption is not affected.
|
williamr@2
|
220 |
*
|
williamr@2
|
221 |
* @param aControlId The ID of the control to make visible or invisible.
|
williamr@2
|
222 |
* @param aVisible @c ETrue to make the control visible.
|
williamr@2
|
223 |
* @c EFalse to make the control invisible.
|
williamr@2
|
224 |
*/
|
williamr@2
|
225 |
IMPORT_C void MakeLineVisible(TInt aControlId,TBool aVisible);
|
williamr@2
|
226 |
|
williamr@2
|
227 |
/**
|
williamr@2
|
228 |
* Makes the whole specified line visible and active or invisible and
|
williamr@2
|
229 |
* inactive. This function affects both the specified control and
|
williamr@2
|
230 |
* the caption.
|
williamr@2
|
231 |
*
|
williamr@2
|
232 |
* @param aControlId The ID of the control on the line to make visible
|
williamr@2
|
233 |
* or invisible.
|
williamr@2
|
234 |
* @param aVisible @c ETrue to make the line visible. @c EFalse to make the
|
williamr@2
|
235 |
* line invisible.
|
williamr@2
|
236 |
*/
|
williamr@2
|
237 |
IMPORT_C void MakeWholeLineVisible(TInt aControlId,TBool aVisible);
|
williamr@2
|
238 |
|
williamr@2
|
239 |
/**
|
williamr@2
|
240 |
* Deletes the specified dialog line.
|
williamr@2
|
241 |
*
|
williamr@2
|
242 |
* @param aControlId The dialog line to delete.
|
williamr@2
|
243 |
* @param aRedraw Whether to redraw the page. Default value is @c ETrue.
|
williamr@2
|
244 |
*/
|
williamr@2
|
245 |
IMPORT_C void DeleteLine(TInt aControlId, TBool aRedraw=ETrue);
|
williamr@2
|
246 |
|
williamr@2
|
247 |
/**
|
williamr@2
|
248 |
* Inserts a line in the dialog. The function takes as arguments the page
|
williamr@2
|
249 |
* and line index at which the line is to be inserted, and the resource used
|
williamr@2
|
250 |
* to construct it.
|
williamr@2
|
251 |
*
|
williamr@2
|
252 |
* @param aIndex The index at which the line is to be inserted.
|
williamr@2
|
253 |
* @param aResourceId The ID of the resource which defines the line.
|
williamr@2
|
254 |
* @param aPageId The page on which the line is to be added.
|
williamr@2
|
255 |
*/
|
williamr@2
|
256 |
IMPORT_C void InsertLineL(TInt aIndex,TInt aResourceId,TInt aPageId=0);
|
williamr@2
|
257 |
|
williamr@2
|
258 |
/**
|
williamr@2
|
259 |
* Makes the specified panel button visible or invisible.
|
williamr@2
|
260 |
*
|
williamr@2
|
261 |
* @param aButtonId The ID of the panel button to make visible or invisible.
|
williamr@2
|
262 |
* @param aVisible @c ETrue to make the panel visible.
|
williamr@2
|
263 |
* @c EFalse to make it invisible.
|
williamr@2
|
264 |
*/
|
williamr@2
|
265 |
IMPORT_C void MakePanelButtonVisible(TInt aButtonId,TBool aVisible);
|
williamr@2
|
266 |
|
williamr@2
|
267 |
/**
|
williamr@2
|
268 |
* Tries to change focus to the specified line. Fails if the line ID is not
|
williamr@2
|
269 |
* valid. Calls @c PrepareForFocusTransitionL() before focus is given to
|
williamr@2
|
270 |
* the line.
|
williamr@2
|
271 |
*
|
williamr@2
|
272 |
* @param aControlId The ID of the line to focus.
|
williamr@2
|
273 |
*/
|
williamr@2
|
274 |
IMPORT_C void TryChangeFocusToL(TInt aControlId);
|
williamr@2
|
275 |
|
williamr@2
|
276 |
/**
|
williamr@2
|
277 |
* Switches the latent line. The latent line is switched from
|
williamr@2
|
278 |
* @c aNoLongerLatent to @c aBecomesLatent. If dialog lines are latent they
|
williamr@2
|
279 |
* are not visible and are not taken into account when laying out the
|
williamr@2
|
280 |
* dialog. Latent lines can then be swapped around on the dialog later.
|
williamr@2
|
281 |
*
|
williamr@2
|
282 |
* @param aBecomesLatent The line ID of the line to become latent.
|
williamr@2
|
283 |
* @param aNoLongerLatent The line ID of the line to that is no longer
|
williamr@2
|
284 |
* latent.
|
williamr@2
|
285 |
*/
|
williamr@2
|
286 |
IMPORT_C void SwitchLineLatency(TInt aBecomesLatent,TInt aNoLongerLatent);
|
williamr@2
|
287 |
|
williamr@2
|
288 |
/**
|
williamr@2
|
289 |
* Sets the specified page to be densely packed, or normally packed. This
|
williamr@2
|
290 |
* reduces the spacing between the dialog's lines.
|
williamr@2
|
291 |
*
|
williamr@2
|
292 |
* @param aPageId The ID of the page to be densely packed.
|
williamr@2
|
293 |
* @param aDensePacking @c ETrue for dense packing. @c EFalse for normal
|
williamr@2
|
294 |
* packing.
|
williamr@2
|
295 |
*/
|
williamr@2
|
296 |
IMPORT_C void SetPageDensePacking(TInt aPageId,TBool aDensePacking);
|
williamr@2
|
297 |
|
williamr@2
|
298 |
/**
|
williamr@2
|
299 |
* Dynamically constructs a dialog with the specified flags and buttons
|
williamr@2
|
300 |
* and with a single activated empty page with ID 0. The dialog is therefore
|
williamr@2
|
301 |
* ready to dynamically add lines to.
|
williamr@2
|
302 |
*
|
williamr@2
|
303 |
* @param aFlags Dialog flags.
|
williamr@2
|
304 |
* @param aButtonsId Dialog buttons.
|
williamr@2
|
305 |
*/
|
williamr@2
|
306 |
IMPORT_C void ConstructAutoDialogLC(TInt aFlags,TInt aButtonsId);
|
williamr@2
|
307 |
|
williamr@2
|
308 |
/**
|
williamr@2
|
309 |
* Sets controllers return value.
|
williamr@2
|
310 |
*
|
williamr@2
|
311 |
* @param[in] aControlId Control identifier for wanted caption controller.
|
williamr@2
|
312 |
* @param[in] aControlType Type of control.
|
williamr@2
|
313 |
* @param[out] aReturnValue Controllers return value.
|
williamr@2
|
314 |
* @deprecated
|
williamr@2
|
315 |
*/
|
williamr@2
|
316 |
IMPORT_C void DeclareItemAuto(TInt aControlId,
|
williamr@2
|
317 |
TInt aControlType,
|
williamr@2
|
318 |
TAny* aReturnValue);
|
williamr@2
|
319 |
|
williamr@2
|
320 |
/**
|
williamr@2
|
321 |
* Lays out the dialog, setting it to take its preferred size and
|
williamr@2
|
322 |
* position for the screen.
|
williamr@2
|
323 |
*
|
williamr@2
|
324 |
* @since 5.1
|
williamr@2
|
325 |
*/
|
williamr@2
|
326 |
IMPORT_C void Layout();
|
williamr@2
|
327 |
|
williamr@2
|
328 |
/**
|
williamr@2
|
329 |
* Gets the preferred size of a dialog. The maximum size that the dialog
|
williamr@2
|
330 |
* must fit within must be specified, e.g. the size of the physical screen.
|
williamr@2
|
331 |
*
|
williamr@2
|
332 |
* @param aMaxSize The maximum size of the area in which the dialog must
|
williamr@2
|
333 |
* fit.
|
williamr@2
|
334 |
* @return The preferred size of the dialog.
|
williamr@2
|
335 |
*/
|
williamr@2
|
336 |
IMPORT_C TSize PreferredSize(const TSize& aMaxSize) const;
|
williamr@2
|
337 |
|
williamr@2
|
338 |
/**
|
williamr@2
|
339 |
* Creates a control line on the page ID specified active page in
|
williamr@2
|
340 |
* the dialog.
|
williamr@2
|
341 |
* The line can thereafter be accessed through the identifier @c aControlId.
|
williamr@2
|
342 |
* A control of type @c aControlType is created by the control factory and
|
williamr@2
|
343 |
* the return value of the line set to @c aReturnValue. If the value of
|
williamr@2
|
344 |
* @c aControlType is not known to the control factory then the construction
|
williamr@2
|
345 |
* of the control must be handled by @c CreateCustomControlL().
|
williamr@2
|
346 |
*
|
williamr@2
|
347 |
* @param aCaption The caption to appear in the dialog line.
|
williamr@2
|
348 |
* @param aControlId The ID of the active page on which the control
|
williamr@2
|
349 |
* line is to be created.
|
williamr@2
|
350 |
* @param aControlType The type of control to create.
|
williamr@2
|
351 |
* @param aReturnValue Deprecated. A random pointer.
|
williamr@2
|
352 |
* @return A pointer to the newly created control.
|
williamr@2
|
353 |
*/
|
williamr@2
|
354 |
IMPORT_C CCoeControl* CreateLineByTypeL(const TDesC& aCaption,
|
williamr@2
|
355 |
TInt aControlId,
|
williamr@2
|
356 |
TInt aControlType,
|
williamr@2
|
357 |
TAny* aReturnValue);
|
williamr@2
|
358 |
|
williamr@2
|
359 |
/**
|
williamr@2
|
360 |
* Creates a control line on the caption specified active page
|
williamr@2
|
361 |
* in the dialog.
|
williamr@2
|
362 |
* The line can thereafter be accessed through the identifier
|
williamr@2
|
363 |
* @c aControlId.
|
williamr@2
|
364 |
* A control of type @c aControlType is created by the control
|
williamr@2
|
365 |
* factory and the return value of the line set to @c aReturnValue.
|
williamr@2
|
366 |
* If the value of @c aControlType is not known to the control factory
|
williamr@2
|
367 |
* then the construction of the control must be handled by
|
williamr@2
|
368 |
* @c CreateCustomControlL().
|
williamr@2
|
369 |
*
|
williamr@2
|
370 |
* @param aCaption The active page on which the control line is
|
williamr@2
|
371 |
* to be created.
|
williamr@2
|
372 |
* @param aPageId The ID of the active page on which the control line is
|
williamr@2
|
373 |
* to be created.
|
williamr@2
|
374 |
* @param aControlId The ID of the control. After the line is created this
|
williamr@2
|
375 |
* can be used to access it.
|
williamr@2
|
376 |
* @param aControlType The type of control to create.
|
williamr@2
|
377 |
* @param aReturnValue Deprecated. A random pointer.
|
williamr@2
|
378 |
* @return A pointer to the newly created control.
|
williamr@2
|
379 |
*/
|
williamr@2
|
380 |
IMPORT_C CCoeControl* CreateLineByTypeL(const TDesC& aCaption,
|
williamr@2
|
381 |
TInt aPageId,
|
williamr@2
|
382 |
TInt aControlId,
|
williamr@2
|
383 |
TInt aControlType,
|
williamr@2
|
384 |
TAny* aReturnValue);
|
williamr@2
|
385 |
|
williamr@2
|
386 |
/**
|
williamr@2
|
387 |
* Sets the specified control's caption text from a descriptor.
|
williamr@2
|
388 |
*
|
williamr@2
|
389 |
* @param aControlId The ID of the control for which the caption
|
williamr@2
|
390 |
* text is being set.
|
williamr@2
|
391 |
* @param aText The text for the caption.
|
williamr@2
|
392 |
*/
|
williamr@2
|
393 |
IMPORT_C void SetControlCaptionL(TInt aControlId,const TDesC& aText);
|
williamr@2
|
394 |
|
williamr@2
|
395 |
/**
|
williamr@2
|
396 |
* Sets the specified control's caption text from a resource.
|
williamr@2
|
397 |
*
|
williamr@2
|
398 |
* @param aControlId The ID of the control for which the caption
|
williamr@2
|
399 |
* text is being set.
|
williamr@2
|
400 |
* @param aResourceId The ID of the resource containing the text for
|
williamr@2
|
401 |
* the caption.
|
williamr@2
|
402 |
*/
|
williamr@2
|
403 |
IMPORT_C void SetControlCaptionL(TInt aControlId,TInt aResourceId);
|
williamr@2
|
404 |
|
williamr@2
|
405 |
/**
|
williamr@2
|
406 |
* Gets a pointer to the specified control's caption.
|
williamr@2
|
407 |
*
|
williamr@2
|
408 |
* @param aControlId The ID of the control for which the label is required.
|
williamr@2
|
409 |
* @return A pointer to the caption.
|
williamr@2
|
410 |
*/
|
williamr@2
|
411 |
IMPORT_C CEikLabel* ControlCaption(TInt aControlId) const;
|
williamr@2
|
412 |
|
williamr@2
|
413 |
/**
|
williamr@2
|
414 |
* Returns a pointer to the specified control.
|
williamr@2
|
415 |
*
|
williamr@2
|
416 |
* Panics if the control ID is invalid. Does not imply transfer
|
williamr@2
|
417 |
* of ownership.
|
williamr@2
|
418 |
*
|
williamr@2
|
419 |
* @param aControlId The ID of the control for which a pointer is required.
|
williamr@2
|
420 |
* @return A pointer to the control with ID aControlId.
|
williamr@2
|
421 |
*/
|
williamr@2
|
422 |
IMPORT_C CCoeControl* Control(TInt aControlId) const;
|
williamr@2
|
423 |
|
williamr@2
|
424 |
/**
|
williamr@2
|
425 |
* Gets a pointer to the specified control.
|
williamr@2
|
426 |
*
|
williamr@2
|
427 |
* @param aControlId The ID of the control for which a pointer is required.
|
williamr@2
|
428 |
* @return A pointer to the control with ID aControlId, or
|
williamr@2
|
429 |
* NULL if it doesn't exist.
|
williamr@2
|
430 |
*/
|
williamr@2
|
431 |
IMPORT_C CCoeControl* ControlOrNull(TInt aControlId) const;
|
williamr@2
|
432 |
|
williamr@2
|
433 |
/**
|
williamr@2
|
434 |
* Gets a reference to the dialog's command button container.
|
williamr@2
|
435 |
*
|
williamr@2
|
436 |
* @return The dialog's button group container.
|
williamr@2
|
437 |
*/
|
williamr@2
|
438 |
IMPORT_C CEikButtonGroupContainer& ButtonGroupContainer() const;
|
williamr@2
|
439 |
|
williamr@2
|
440 |
/**
|
williamr@2
|
441 |
* Gets a reference to the dialog title bar.
|
williamr@2
|
442 |
*
|
williamr@2
|
443 |
* @return A reference to the dialog title bar.
|
williamr@2
|
444 |
*/
|
williamr@2
|
445 |
IMPORT_C CEikMover& Title() const;
|
williamr@2
|
446 |
|
williamr@2
|
447 |
/**
|
williamr@2
|
448 |
* Gets a page id for the current page.
|
williamr@2
|
449 |
*
|
williamr@2
|
450 |
* @return Page id.
|
williamr@2
|
451 |
*/
|
williamr@2
|
452 |
IMPORT_C TInt ActivePageId() const;
|
williamr@2
|
453 |
|
williamr@2
|
454 |
/**
|
williamr@2
|
455 |
* Activates the first page on the dialog. At least one page must be active
|
williamr@2
|
456 |
* before this method can be used.
|
williamr@2
|
457 |
*/
|
williamr@2
|
458 |
IMPORT_C void ActivateFirstPageL() const;
|
williamr@2
|
459 |
|
williamr@2
|
460 |
|
williamr@2
|
461 |
|
williamr@2
|
462 |
// To Support Edit/View state switch for forms (Sapphire DFRD)
|
williamr@2
|
463 |
// This breaks Binary Compatibility
|
williamr@2
|
464 |
|
williamr@2
|
465 |
/**
|
williamr@2
|
466 |
* Sets the dialog to either editable or uneditable
|
williamr@2
|
467 |
*
|
williamr@2
|
468 |
* @param aEditable @c ETrue if dialog is editable.
|
williamr@2
|
469 |
* @c EFalse if dialog is uneditable.
|
williamr@2
|
470 |
*/
|
williamr@2
|
471 |
IMPORT_C void SetEditableL( TBool aEditable ) ;
|
williamr@2
|
472 |
|
williamr@2
|
473 |
/**
|
williamr@2
|
474 |
* Checks if the dialog is editable.
|
williamr@2
|
475 |
*
|
williamr@2
|
476 |
* @return @c ETrue if editable.
|
williamr@2
|
477 |
*/
|
williamr@2
|
478 |
IMPORT_C TBool IsEditable() const ;
|
williamr@2
|
479 |
|
williamr@2
|
480 |
|
williamr@2
|
481 |
public: // from CCoeControl
|
williamr@2
|
482 |
|
williamr@2
|
483 |
/**
|
williamr@2
|
484 |
* From @c CCoeControl.
|
williamr@2
|
485 |
*
|
williamr@2
|
486 |
* Handles a key event. Overrides @c CCoeControl::OfferKeyEventL().
|
williamr@2
|
487 |
*
|
williamr@2
|
488 |
* @param aKeyEvent The key event.
|
williamr@2
|
489 |
* @param aType The type of key event: @c EEventKey, @c EEventKeyUp
|
williamr@2
|
490 |
* or @c EEventKeyDown.
|
williamr@2
|
491 |
* @return Indicates whether or not the key event was used by this control.
|
williamr@2
|
492 |
* @c EKeyWasConsumed if the control takes action on the key event
|
williamr@2
|
493 |
* or @c EKeyWasNotConsumed otherwise.
|
williamr@2
|
494 |
*/
|
williamr@2
|
495 |
IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
|
williamr@2
|
496 |
TEventCode aType);
|
williamr@2
|
497 |
|
williamr@2
|
498 |
/**
|
williamr@2
|
499 |
* From @c CCoeControl.
|
williamr@2
|
500 |
*
|
williamr@2
|
501 |
* Responds to a change in focus.
|
williamr@2
|
502 |
*
|
williamr@2
|
503 |
* This is called whenever the control gains or loses focus, as a result
|
williamr@2
|
504 |
* of a call to @c SetFocus(). A typical use of @c FocusChanged() is to
|
williamr@2
|
505 |
* change the appearance of the control, for example by drawing a focus
|
williamr@2
|
506 |
* rectangle around it.
|
williamr@2
|
507 |
*
|
williamr@2
|
508 |
* The default implementation is empty, and should be overridden by the
|
williamr@2
|
509 |
* @c CCoeControl-derived class.
|
williamr@2
|
510 |
*
|
williamr@2
|
511 |
* @param aDrawNow Contains the value that was passed to it by
|
williamr@2
|
512 |
* @c SetFocus().
|
williamr@2
|
513 |
*/
|
williamr@2
|
514 |
IMPORT_C void FocusChanged(TDrawNow aDrawNow);
|
williamr@2
|
515 |
|
williamr@2
|
516 |
/**
|
williamr@2
|
517 |
* From @c CCoeControl.
|
williamr@2
|
518 |
*
|
williamr@2
|
519 |
* Gets the list of logical colours used to draw the control.
|
williamr@2
|
520 |
*
|
williamr@2
|
521 |
* The list includes an explanation of how each colour is used.
|
williamr@2
|
522 |
* The default implementation is empty.
|
williamr@2
|
523 |
*
|
williamr@2
|
524 |
* If overriding @c GetColorUseListL(), the implementation must include
|
williamr@2
|
525 |
* a base call to @c CCoeControl's @c GetColorUseListL().
|
williamr@2
|
526 |
*
|
williamr@2
|
527 |
* @since ER5U
|
williamr@2
|
528 |
* @param &aColorUseList The colour list.
|
williamr@2
|
529 |
*/
|
williamr@2
|
530 |
IMPORT_C virtual void GetColorUseListL(
|
williamr@2
|
531 |
CArrayFix<TCoeColorUse>& aColorUseList) const;
|
williamr@2
|
532 |
// not available before Release 005u
|
williamr@2
|
533 |
|
williamr@2
|
534 |
/**
|
williamr@2
|
535 |
* From @c CCoeControl.
|
williamr@2
|
536 |
*
|
williamr@2
|
537 |
* Handles a change to the control's resources.
|
williamr@2
|
538 |
*
|
williamr@2
|
539 |
* The types of resources handled are those which are shared across the
|
williamr@2
|
540 |
* environment, e.g. colours or fonts. For colour scheme changes,
|
williamr@2
|
541 |
* @c DrawDeferred() is called in order to redraw the control.
|
williamr@2
|
542 |
*
|
williamr@2
|
543 |
* If overriding @c HandleResourceChange(), the implementation must include
|
williamr@2
|
544 |
* a base call to @c CCoeControl's @c HandleResourceChange().
|
williamr@2
|
545 |
*
|
williamr@2
|
546 |
* @since ER5U
|
williamr@2
|
547 |
* @param aType A message UID value.
|
williamr@2
|
548 |
*/
|
williamr@2
|
549 |
IMPORT_C virtual void HandleResourceChange(TInt aType);
|
williamr@2
|
550 |
// not available before Release 005u
|
williamr@2
|
551 |
|
williamr@2
|
552 |
/**
|
williamr@2
|
553 |
* From @c CCoeControl.
|
williamr@2
|
554 |
*
|
williamr@2
|
555 |
* Gets the control's input capabilities.
|
williamr@2
|
556 |
*
|
williamr@2
|
557 |
* Classes that override @c CCoeControl::OfferKeyEventL() should also
|
williamr@2
|
558 |
* override this function, returning a @c TCoeInputCapabilities object
|
williamr@2
|
559 |
* whose attributes correspond to the behaviour of the @c OfferKeyEventL()
|
williamr@2
|
560 |
* function. The default implementation returns
|
williamr@2
|
561 |
* @c TCoeInputCapabilities::ENone.
|
williamr@2
|
562 |
*
|
williamr@2
|
563 |
* It is not necessary to call @c InputCapabilities() on any component
|
williamr@2
|
564 |
* controls from inside a class's @c InputCapabilities() function. This
|
williamr@2
|
565 |
* is done automatically by the UI Control Framework.
|
williamr@2
|
566 |
*
|
williamr@2
|
567 |
* @since ER5U
|
williamr@2
|
568 |
* @return The control's input capabilities.
|
williamr@2
|
569 |
*/
|
williamr@2
|
570 |
IMPORT_C TCoeInputCapabilities InputCapabilities() const;
|
williamr@2
|
571 |
|
williamr@2
|
572 |
/**
|
williamr@2
|
573 |
* From @c CCoeControl.
|
williamr@2
|
574 |
*
|
williamr@2
|
575 |
* Sets the dialog visibility
|
williamr@2
|
576 |
*
|
williamr@2
|
577 |
* @param aVisible @c ETrue control is visible.
|
williamr@2
|
578 |
* @c EFalse control is invisible.
|
williamr@2
|
579 |
*/
|
williamr@2
|
580 |
IMPORT_C void MakeVisible(TBool aVisible);
|
williamr@2
|
581 |
|
williamr@2
|
582 |
/**
|
williamr@2
|
583 |
* From @c CCoeControl.
|
williamr@2
|
584 |
*
|
williamr@2
|
585 |
* Handles pointer events.
|
williamr@2
|
586 |
*
|
williamr@2
|
587 |
* This function gets called whenever a pointer event occurs in the
|
williamr@2
|
588 |
* control, i.e. when the pointer is within the control's extent,
|
williamr@2
|
589 |
* or when the control has grabbed the pointer. The control should
|
williamr@2
|
590 |
* implement this function to handle pointer events.
|
williamr@2
|
591 |
*
|
williamr@2
|
592 |
* Note: events of type @c EButton1Down are processed before
|
williamr@2
|
593 |
* @c HandlePointerEventL() is called, in order to transfer keyboard
|
williamr@2
|
594 |
* focus to the control in which the @c EButton1Down event occurred.
|
williamr@2
|
595 |
*
|
williamr@2
|
596 |
* If overriding @c HandlePointerEventL(), the implementation must include
|
williamr@2
|
597 |
* a base call to @c CCoeControl's @c HandlePointerEventL().
|
williamr@2
|
598 |
*
|
williamr@2
|
599 |
* @param aPointerEvent The pointer event.
|
williamr@2
|
600 |
*/
|
williamr@2
|
601 |
IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
|
williamr@2
|
602 |
|
williamr@2
|
603 |
protected: // from MEikDialogPageObserver
|
williamr@2
|
604 |
|
williamr@2
|
605 |
/**
|
williamr@2
|
606 |
* From @c MEikDialogPageObserver.
|
williamr@2
|
607 |
*
|
williamr@2
|
608 |
* Should be implemented to prepare for focus transition from the
|
williamr@2
|
609 |
* current line.
|
williamr@2
|
610 |
*
|
williamr@2
|
611 |
* For example to validate the contents of the current control.
|
williamr@2
|
612 |
*/
|
williamr@2
|
613 |
IMPORT_C virtual void PrepareForFocusTransitionL();
|
williamr@2
|
614 |
|
williamr@2
|
615 |
/**
|
williamr@2
|
616 |
* From @c MEikDialogPageObserver.
|
williamr@2
|
617 |
*
|
williamr@2
|
618 |
* Should be implemented to take any action required when the active
|
williamr@2
|
619 |
* dialog page is changed.
|
williamr@2
|
620 |
*
|
williamr@2
|
621 |
* Not implemented.
|
williamr@2
|
622 |
*
|
williamr@2
|
623 |
* @param aPageId The ID of the page being switched to.
|
williamr@2
|
624 |
*/
|
williamr@2
|
625 |
IMPORT_C virtual void PageChangedL(TInt aPageId);
|
williamr@2
|
626 |
|
williamr@2
|
627 |
/**
|
williamr@2
|
628 |
* From @c MEikDialogPageObserver
|
williamr@2
|
629 |
*
|
williamr@2
|
630 |
* Should be implemented to take any action required when the current
|
williamr@2
|
631 |
* line is changed to @c aControlId.
|
williamr@2
|
632 |
*
|
williamr@2
|
633 |
* Not implemented.
|
williamr@2
|
634 |
*
|
williamr@2
|
635 |
* @param aControlId The ID of the control being switched to.
|
williamr@2
|
636 |
*/
|
williamr@2
|
637 |
IMPORT_C virtual void LineChangedL(TInt aControlId);
|
williamr@2
|
638 |
|
williamr@2
|
639 |
public: // from MEikDialogPageObserver
|
williamr@2
|
640 |
|
williamr@2
|
641 |
/**
|
williamr@2
|
642 |
* From @c MEikDialogPageObserver.
|
williamr@2
|
643 |
*
|
williamr@2
|
644 |
* Creates a control line in the dialog.on the active page with caption
|
williamr@2
|
645 |
* text @c aCaption.
|
williamr@2
|
646 |
* The line can thereafter be accessed through the identifier
|
williamr@2
|
647 |
* @c aControlId.
|
williamr@2
|
648 |
* A control of type @c aControlType is created by the @c Eikon
|
williamr@2
|
649 |
* control factory and the return value of the line set to @c aReturnValue.
|
williamr@2
|
650 |
* If the value of @c aControlType is not known to the Eikon control
|
williamr@2
|
651 |
* factory then the construction of the control must be handled by
|
williamr@2
|
652 |
* @c CreateCustomControlL.
|
williamr@2
|
653 |
*
|
williamr@2
|
654 |
* @param aControlType The type of the custom control.
|
williamr@2
|
655 |
* @return Information for the custom control.
|
williamr@2
|
656 |
*/
|
williamr@2
|
657 |
IMPORT_C virtual SEikControlInfo CreateCustomControlL(TInt aControlType);
|
williamr@2
|
658 |
|
williamr@2
|
659 |
/**
|
williamr@2
|
660 |
* From @c MEikDialogPageObserver.
|
williamr@2
|
661 |
*
|
williamr@2
|
662 |
* For forms only:
|
williamr@2
|
663 |
* Ths should be overriden with mappings between the base control types
|
williamr@2
|
664 |
* that form knows how to layout.
|
williamr@2
|
665 |
*
|
williamr@2
|
666 |
* Always returns @c MEikDialogPageObserver::EUnknownType.
|
williamr@2
|
667 |
*
|
williamr@2
|
668 |
* @param aControlType Not used.
|
williamr@2
|
669 |
* @return Current implementation always
|
williamr@2
|
670 |
* returns @c MEikDialogPageObserver::EUnknownType.
|
williamr@2
|
671 |
*/
|
williamr@2
|
672 |
IMPORT_C MEikDialogPageObserver::TFormControlTypes
|
williamr@2
|
673 |
ConvertCustomControlTypeToBaseControlType(TInt aControlType) const;
|
williamr@2
|
674 |
|
williamr@2
|
675 |
/**
|
williamr@2
|
676 |
* From @c MEikDialogPageObserver.
|
williamr@2
|
677 |
*
|
williamr@2
|
678 |
* Should be implemented to get the custom auto value for the custom control
|
williamr@2
|
679 |
* @c aControl of type @c aControlType with return value @c aReturnValue.
|
williamr@2
|
680 |
*
|
williamr@2
|
681 |
* This method is included in the interface to support deprecated legacy
|
williamr@2
|
682 |
* code only.
|
williamr@2
|
683 |
*
|
williamr@2
|
684 |
* Not implemented.
|
williamr@2
|
685 |
*
|
williamr@2
|
686 |
* @param aReturnValue The custom controls return value.
|
williamr@2
|
687 |
* @param aControlType The type of the custom control.
|
williamr@2
|
688 |
* @param aControl The control whose auto value is being retrieved.
|
williamr@2
|
689 |
* @deprecated
|
williamr@2
|
690 |
*/
|
williamr@2
|
691 |
IMPORT_C virtual void GetCustomAutoValue(TAny* aReturnValue,
|
williamr@2
|
692 |
TInt aControlType,
|
williamr@2
|
693 |
const CCoeControl* aControl);
|
williamr@2
|
694 |
|
williamr@2
|
695 |
protected: // from MCoeControlContext
|
williamr@2
|
696 |
|
williamr@2
|
697 |
/**
|
williamr@2
|
698 |
* From @c MCoeControlContext.
|
williamr@2
|
699 |
*
|
williamr@2
|
700 |
* Initialises graphics context settings.
|
williamr@2
|
701 |
*
|
williamr@2
|
702 |
* This function should be implemented by derived classes to initialise
|
williamr@2
|
703 |
* the graphics context, given by @c aGc, with the required settings.
|
williamr@2
|
704 |
*
|
williamr@2
|
705 |
* @param aGc The graphics context to be initialised.
|
williamr@2
|
706 |
*/
|
williamr@2
|
707 |
IMPORT_C void PrepareContext(CWindowGc& aGc) const;
|
williamr@2
|
708 |
|
williamr@2
|
709 |
protected: //from CCoeControl
|
williamr@2
|
710 |
|
williamr@2
|
711 |
/**
|
williamr@2
|
712 |
* From @c CCoeControl.
|
williamr@2
|
713 |
*
|
williamr@2
|
714 |
* Writes the internal state to the given stream.
|
williamr@2
|
715 |
*
|
williamr@2
|
716 |
* @param[out] aWriteStream Target stream.
|
williamr@2
|
717 |
*/
|
williamr@2
|
718 |
IMPORT_C void WriteInternalStateL(RWriteStream& aWriteStream) const;
|
williamr@2
|
719 |
|
williamr@2
|
720 |
private: // from CCoeControl
|
williamr@2
|
721 |
|
williamr@2
|
722 |
IMPORT_C void Draw(const TRect& aRect) const;
|
williamr@2
|
723 |
|
williamr@2
|
724 |
protected:
|
williamr@2
|
725 |
|
williamr@2
|
726 |
/**
|
williamr@2
|
727 |
* Returns the number of the control components.
|
williamr@2
|
728 |
*
|
williamr@2
|
729 |
* In Avkon returns 2 as the button group container is not internal.
|
williamr@2
|
730 |
*
|
williamr@2
|
731 |
* @return Number of control components.
|
williamr@2
|
732 |
*/
|
williamr@2
|
733 |
IMPORT_C TInt CountComponentControls() const;
|
williamr@2
|
734 |
|
williamr@2
|
735 |
/**
|
williamr@2
|
736 |
* Returns a pointer to the component control at the specified index
|
williamr@2
|
737 |
* in the component control list.
|
williamr@2
|
738 |
*
|
williamr@2
|
739 |
* Does not imply transfer of ownership.
|
williamr@2
|
740 |
*
|
williamr@2
|
741 |
* @param aIndex The index of the required component control.
|
williamr@2
|
742 |
* @return The required component control.
|
williamr@2
|
743 |
*/
|
williamr@2
|
744 |
IMPORT_C CCoeControl* ComponentControl(TInt aIndex) const;
|
williamr@2
|
745 |
|
williamr@2
|
746 |
protected:
|
williamr@2
|
747 |
|
williamr@2
|
748 |
/**
|
williamr@2
|
749 |
* Gets number of lines in the specified page.
|
williamr@2
|
750 |
*
|
williamr@2
|
751 |
* @param aPageIndex Index of the page container.
|
williamr@2
|
752 |
* @return The number of lines in the page.
|
williamr@2
|
753 |
*/
|
williamr@2
|
754 |
IMPORT_C TInt GetNumberOfLinesOnPage(TInt aPageIndex) const;
|
williamr@2
|
755 |
|
williamr@2
|
756 |
/**
|
williamr@2
|
757 |
* Gets number of pages in the page selector.
|
williamr@2
|
758 |
*
|
williamr@2
|
759 |
* @return The number of pages.
|
williamr@2
|
760 |
*/
|
williamr@2
|
761 |
IMPORT_C TInt GetNumberOfPages() const;
|
williamr@2
|
762 |
|
williamr@2
|
763 |
/**
|
williamr@2
|
764 |
* Gets specified line from specified page.
|
williamr@2
|
765 |
*
|
williamr@2
|
766 |
* @param aLineIndex Index of the requested line.
|
williamr@2
|
767 |
* @param aPageIndex Index of the requested page.
|
williamr@2
|
768 |
* @return The wanted line.
|
williamr@2
|
769 |
*/
|
williamr@2
|
770 |
IMPORT_C CEikCaptionedControl* GetLineByLineAndPageIndex(TInt aLineIndex,
|
williamr@2
|
771 |
TInt aPageIndex) const;
|
williamr@2
|
772 |
|
williamr@2
|
773 |
private:
|
williamr@2
|
774 |
|
williamr@2
|
775 |
IMPORT_C void SizeChanged();
|
williamr@2
|
776 |
|
williamr@2
|
777 |
IMPORT_C TSize MinimumSize();
|
williamr@2
|
778 |
|
williamr@2
|
779 |
IMPORT_C void ConstructFromResourceL(TResourceReader& aReader);
|
williamr@2
|
780 |
|
williamr@2
|
781 |
IMPORT_C void Reserved_2();
|
williamr@2
|
782 |
|
williamr@2
|
783 |
private:
|
williamr@2
|
784 |
|
williamr@2
|
785 |
/**
|
williamr@2
|
786 |
* From CAknControl
|
williamr@2
|
787 |
*/
|
williamr@2
|
788 |
IMPORT_C void* ExtensionInterface( TUid aInterface );
|
williamr@2
|
789 |
|
williamr@2
|
790 |
protected: // from MCoeControlObserver
|
williamr@2
|
791 |
|
williamr@2
|
792 |
/**
|
williamr@2
|
793 |
* From @c MCoeControlObserver.
|
williamr@2
|
794 |
*
|
williamr@2
|
795 |
* Handles control events.
|
williamr@2
|
796 |
*
|
williamr@2
|
797 |
* The default implementation handles events of type @c EEventStateChanged,
|
williamr@2
|
798 |
* @c EEventInteractionRefused, and @c EEventPrepareFocusTransition by
|
williamr@2
|
799 |
* calling @c HandleControlStateChangeL(), @c HandleInteractionRefused(),
|
williamr@2
|
800 |
* and @c PrepareForFocusTransitionL() respectively.
|
williamr@2
|
801 |
*
|
williamr@2
|
802 |
* Overrides @c MCoeControlObserver::HandleControlEventL().
|
williamr@2
|
803 |
*
|
williamr@2
|
804 |
* @param aControl The control reporting the event.
|
williamr@2
|
805 |
* @param aEventType The event type.
|
williamr@2
|
806 |
*/
|
williamr@2
|
807 |
IMPORT_C void HandleControlEventL(CCoeControl* aControl,
|
williamr@2
|
808 |
TCoeEvent aEventType);
|
williamr@2
|
809 |
|
williamr@2
|
810 |
protected: // new functions
|
williamr@2
|
811 |
|
williamr@2
|
812 |
/**
|
williamr@2
|
813 |
* Tries to exit the dialog when the specified button is pressed, if this
|
williamr@2
|
814 |
* button should exit the dialog.
|
williamr@2
|
815 |
*
|
williamr@2
|
816 |
* See @c OkToExitL() to determine which buttons can exit the dialog.
|
williamr@2
|
817 |
*
|
williamr@2
|
818 |
* This will fail if user exit is prevented by the
|
williamr@2
|
819 |
* @c EEikDialogFlagNoUserExit flag. If the @c EEikDialogFlagNotifyEsc flag
|
williamr@2
|
820 |
* is not set and the dialog has been cancelled it immediately deletes
|
williamr@2
|
821 |
* itself.
|
williamr@2
|
822 |
*
|
williamr@2
|
823 |
* @param aButtonId The id of the pressed button.
|
williamr@2
|
824 |
*/
|
williamr@2
|
825 |
IMPORT_C void TryExitL(TInt aButtonId);
|
williamr@2
|
826 |
|
williamr@2
|
827 |
/**
|
williamr@2
|
828 |
* Adjusts the IDs of all controls on a specified page.
|
williamr@2
|
829 |
*
|
williamr@2
|
830 |
* The adjustment consists of incrementing all the control IDs by
|
williamr@2
|
831 |
* @c aControlIdDelta.
|
williamr@2
|
832 |
*
|
williamr@2
|
833 |
* @param aPageId The page on which the control IDs are to be adjusted.
|
williamr@2
|
834 |
* @param aControlIdDelta The amount to increment the IDs.
|
williamr@2
|
835 |
*/
|
williamr@2
|
836 |
IMPORT_C void AdjustAllIdsOnPage(TInt aPageId,TInt aControlIdDelta);
|
williamr@2
|
837 |
|
williamr@2
|
838 |
/**
|
williamr@2
|
839 |
* Protected constructor creates a sleeping dialog from a resource.
|
williamr@2
|
840 |
*
|
williamr@2
|
841 |
* A sleeping dialog is one which can be displayed at any time since
|
williamr@2
|
842 |
* its memory resources are pre-allocated.
|
williamr@2
|
843 |
*
|
williamr@2
|
844 |
* @param aResourceId The resource ID of the dialog to be constructed.
|
williamr@2
|
845 |
*/
|
williamr@2
|
846 |
IMPORT_C void ConstructSleepingDialogL(TInt aResourceId);
|
williamr@2
|
847 |
|
williamr@2
|
848 |
/**
|
williamr@2
|
849 |
* Protected construction of a high priority sleeping dialog from
|
williamr@2
|
850 |
* a resource.
|
williamr@2
|
851 |
*
|
williamr@2
|
852 |
* A sleeping dialog is one which can be displayed at any time since
|
williamr@2
|
853 |
* its memory resources are pre-allocated.
|
williamr@2
|
854 |
*
|
williamr@2
|
855 |
* @param aResourceId The resource ID of the dialog to be constructed.
|
williamr@2
|
856 |
*/
|
williamr@2
|
857 |
IMPORT_C void ConstructSleepingAlertDialogL(TInt aResourceId);
|
williamr@2
|
858 |
|
williamr@2
|
859 |
/**
|
williamr@2
|
860 |
* Rouses a sleeping dialog by dynamically constructing the dialog and
|
williamr@2
|
861 |
* then bringing it to the front.
|
williamr@2
|
862 |
*
|
williamr@2
|
863 |
* Derived dialogs should pre-allocate any memory they need for
|
williamr@2
|
864 |
* initialisation during construction via @c ConstructFromResourceL()
|
williamr@2
|
865 |
* for each individual control. Derived versions of @c PreLayoutDynInitL()
|
williamr@2
|
866 |
* cannot rely on allocating any further memory.
|
williamr@2
|
867 |
*
|
williamr@2
|
868 |
* @return Zero.
|
williamr@2
|
869 |
*/
|
williamr@2
|
870 |
IMPORT_C TInt RouseSleepingDialog();
|
williamr@2
|
871 |
|
williamr@2
|
872 |
/**
|
williamr@2
|
873 |
* Exits sleeping dialog without deleting it.
|
williamr@2
|
874 |
*/
|
williamr@2
|
875 |
IMPORT_C void ExitSleepingDialog();
|
williamr@2
|
876 |
|
williamr@2
|
877 |
/**
|
williamr@2
|
878 |
* Gets the ID of the control in the focused line.
|
williamr@2
|
879 |
*
|
williamr@2
|
880 |
* @return Current control ID.
|
williamr@2
|
881 |
*/
|
williamr@2
|
882 |
IMPORT_C TInt IdOfFocusControl() const;
|
williamr@2
|
883 |
|
williamr@2
|
884 |
/**
|
williamr@2
|
885 |
* Gets the line index of the specified control.
|
williamr@2
|
886 |
*
|
williamr@2
|
887 |
* The control must be on the active page.
|
williamr@2
|
888 |
*
|
williamr@2
|
889 |
* @param aControl The control for which the line index is required.
|
williamr@2
|
890 |
* @return The line index, or @c KErrNotFound if the control is not on the
|
williamr@2
|
891 |
* active page.
|
williamr@2
|
892 |
*/
|
williamr@2
|
893 |
IMPORT_C TInt FindLineIndex(const CCoeControl& aControl) const;
|
williamr@2
|
894 |
|
williamr@2
|
895 |
/**
|
williamr@2
|
896 |
* Gets a pointer to the line containing the specified control.
|
williamr@2
|
897 |
*
|
williamr@2
|
898 |
* This does not imply transfer of ownership from the dialog.
|
williamr@2
|
899 |
*
|
williamr@2
|
900 |
* @param aControlId The ID of the control.
|
williamr@2
|
901 |
* @return A pointer to the line containing the control identified by
|
williamr@2
|
902 |
* @c aControlId.
|
williamr@2
|
903 |
*/
|
williamr@2
|
904 |
IMPORT_C CEikCaptionedControl* Line(TInt aControlId) const;
|
williamr@2
|
905 |
|
williamr@2
|
906 |
/**
|
williamr@2
|
907 |
* Gets a pointer to the current line.
|
williamr@2
|
908 |
*
|
williamr@2
|
909 |
* This does not imply transfer of ownership from the dialog.
|
williamr@2
|
910 |
*
|
williamr@2
|
911 |
* @return A pointer to the current line.
|
williamr@2
|
912 |
*/
|
williamr@2
|
913 |
IMPORT_C CEikCaptionedControl* CurrentLine() const;
|
williamr@2
|
914 |
|
williamr@2
|
915 |
/**
|
williamr@2
|
916 |
* Rotates the focus by a specified number of steps.
|
williamr@2
|
917 |
*
|
williamr@2
|
918 |
* Each line is a step, as are dialog tabs.
|
williamr@2
|
919 |
*
|
williamr@2
|
920 |
* @param aDelta The number of steps.
|
williamr@2
|
921 |
* @return @c ETrue if rotation of focus is successful,
|
williamr@2
|
922 |
* @c EFalse if there are no lines in the dialog or the rotation is
|
williamr@2
|
923 |
* otherwise unsuccessful.
|
williamr@2
|
924 |
*/
|
williamr@2
|
925 |
IMPORT_C TBool RotateFocusByL(TInt aDelta);
|
williamr@2
|
926 |
|
williamr@2
|
927 |
/**
|
williamr@2
|
928 |
* Gets the index of the dialog's active page.
|
williamr@2
|
929 |
*
|
williamr@2
|
930 |
* Pages are indexed from 0 in the order they are added.
|
williamr@2
|
931 |
*
|
williamr@2
|
932 |
* @return The index of the active page.
|
williamr@2
|
933 |
*/
|
williamr@2
|
934 |
IMPORT_C TInt ActivePageIndex() const;
|
williamr@2
|
935 |
|
williamr@2
|
936 |
/**
|
williamr@2
|
937 |
* Recalculates the minimum sizes of the lines on the active page.
|
williamr@2
|
938 |
*
|
williamr@2
|
939 |
* Overrides @c CCoeControl::ResetLineMinimumSizes().
|
williamr@2
|
940 |
*/
|
williamr@2
|
941 |
IMPORT_C void ResetLineMinimumSizes();
|
williamr@2
|
942 |
|
williamr@2
|
943 |
/**
|
williamr@2
|
944 |
* Swaps the dialog's button group container with a new container.
|
williamr@2
|
945 |
*
|
williamr@2
|
946 |
* The dialog takes ownership of the new container. A pointer to the old
|
williamr@2
|
947 |
* button group container is returned and ownership of this object is
|
williamr@2
|
948 |
* transferred to the calling object.
|
williamr@2
|
949 |
*
|
williamr@2
|
950 |
* @param aContainer The new button group container.
|
williamr@2
|
951 |
* @return A pointer to the old button group container. This is no longer
|
williamr@2
|
952 |
* owned by the dialog.
|
williamr@2
|
953 |
*/
|
williamr@2
|
954 |
IMPORT_C CEikButtonGroupContainer* SwapButtonGroupContainer(
|
williamr@2
|
955 |
CEikButtonGroupContainer* aContainer);
|
williamr@2
|
956 |
|
williamr@2
|
957 |
/**
|
williamr@2
|
958 |
* Gets a pointer to the dialog's internal button command observer.
|
williamr@2
|
959 |
*
|
williamr@2
|
960 |
* This is required when creating a new button group container for
|
williamr@2
|
961 |
* the dialog.
|
williamr@2
|
962 |
*
|
williamr@2
|
963 |
* A dialog uses a proxy to observe button commands. This means dialog
|
williamr@2
|
964 |
* subclasses can directly observe commands, either issued by controls
|
williamr@2
|
965 |
* added to the dialog pages, or by menus launched by the dialog.
|
williamr@2
|
966 |
*
|
williamr@2
|
967 |
* @since 5.1
|
williamr@2
|
968 |
* @return A pointer to the dialog's internal button
|
williamr@2
|
969 |
* command observer.
|
williamr@2
|
970 |
*/
|
williamr@2
|
971 |
IMPORT_C MEikCommandObserver* ButtonCommandObserver() const;
|
williamr@2
|
972 |
|
williamr@2
|
973 |
protected: // new functions
|
williamr@2
|
974 |
|
williamr@2
|
975 |
/**
|
williamr@2
|
976 |
* Not implemented.
|
williamr@2
|
977 |
*
|
williamr@2
|
978 |
* @param aButtonId Not used.
|
williamr@2
|
979 |
* @return Always return @c ETrue.
|
williamr@2
|
980 |
*/
|
williamr@2
|
981 |
IMPORT_C virtual TBool OkToExitL(TInt aButtonId);
|
williamr@2
|
982 |
|
williamr@2
|
983 |
/**
|
williamr@2
|
984 |
* Initializes the dialog's controls before the dialog is sized and
|
williamr@2
|
985 |
* layed out. Empty by default.
|
williamr@2
|
986 |
*/
|
williamr@2
|
987 |
IMPORT_C virtual void PreLayoutDynInitL();
|
williamr@2
|
988 |
|
williamr@2
|
989 |
/**
|
williamr@2
|
990 |
* Initializes the dialog's controls after the dialog has been sized
|
williamr@2
|
991 |
* but before it has been activated. Empty by default.
|
williamr@2
|
992 |
*/
|
williamr@2
|
993 |
IMPORT_C virtual void PostLayoutDynInitL();
|
williamr@2
|
994 |
|
williamr@2
|
995 |
/**
|
williamr@2
|
996 |
* Sets the line which initally receives focus.
|
williamr@2
|
997 |
* This is the first focusable line on the first page in the
|
williamr@2
|
998 |
* dialog by default. Reimplementations of this method must
|
williamr@2
|
999 |
* activate a page before doing anything else.
|
williamr@2
|
1000 |
*/
|
williamr@2
|
1001 |
IMPORT_C virtual void SetInitialCurrentLine();
|
williamr@2
|
1002 |
|
williamr@2
|
1003 |
/**
|
williamr@2
|
1004 |
* Handles a state change in the control with id aControlId.
|
williamr@2
|
1005 |
* Empty by default.
|
williamr@2
|
1006 |
*
|
williamr@2
|
1007 |
* @param aControlId Not used.
|
williamr@2
|
1008 |
*/
|
williamr@2
|
1009 |
IMPORT_C virtual void HandleControlStateChangeL(TInt aControlId);
|
williamr@2
|
1010 |
|
williamr@2
|
1011 |
/**
|
williamr@2
|
1012 |
* Should handle an attempt by the user to activate a dimmed button with
|
williamr@2
|
1013 |
* id aControlId. Prints an info message by default.
|
williamr@2
|
1014 |
*
|
williamr@2
|
1015 |
* Not implemented / Does nothing in Avkon.
|
williamr@2
|
1016 |
*
|
williamr@2
|
1017 |
* @param aControlId Not used.
|
williamr@2
|
1018 |
*/
|
williamr@2
|
1019 |
IMPORT_C virtual void HandleInteractionRefused(TInt aControlId);
|
williamr@2
|
1020 |
|
williamr@2
|
1021 |
/**
|
williamr@2
|
1022 |
* Sets the size and position of the dialog given the specified size hint.
|
williamr@2
|
1023 |
*
|
williamr@2
|
1024 |
* The parameter is ignored if the @c FlagFillAppClientRect is set.
|
williamr@2
|
1025 |
* Otherwise it it centered and given the size that was asked for.
|
williamr@2
|
1026 |
*
|
williamr@2
|
1027 |
* @param aSize The new size.
|
williamr@2
|
1028 |
*/
|
williamr@2
|
1029 |
IMPORT_C virtual void SetSizeAndPosition(const TSize& aSize);
|
williamr@2
|
1030 |
|
williamr@2
|
1031 |
/**
|
williamr@2
|
1032 |
* Returns the border style for this dialog.
|
williamr@2
|
1033 |
*
|
williamr@2
|
1034 |
* @return Border style. Always returns @c AknBorderId::EAknBorderNotePopup.
|
williamr@2
|
1035 |
*/
|
williamr@2
|
1036 |
IMPORT_C virtual TInt BorderStyle();
|
williamr@2
|
1037 |
|
williamr@2
|
1038 |
// Added for Avkon
|
williamr@2
|
1039 |
|
williamr@2
|
1040 |
/**
|
williamr@2
|
1041 |
* Routine to map the button id ( Avkon softkey command id) to
|
williamr@2
|
1042 |
* @c CEikBidCancel if it is a "cancel" type command type.
|
williamr@2
|
1043 |
*
|
williamr@2
|
1044 |
* The following cases are mapped to a give an @c ExecuteLD return value
|
williamr@2
|
1045 |
* of 0:
|
williamr@2
|
1046 |
*
|
williamr@2
|
1047 |
* @c EAknSoftkeyCancel:
|
williamr@2
|
1048 |
* @c EAknSoftkeyBack:
|
williamr@2
|
1049 |
* @c EAknSoftkeyNo:
|
williamr@2
|
1050 |
*
|
williamr@2
|
1051 |
* Other cases are left unchanged.
|
williamr@2
|
1052 |
*
|
williamr@2
|
1053 |
* This operation is performed at the last minute and does not affect other
|
williamr@2
|
1054 |
* processing in @c CEik/AknDialog.
|
williamr@2
|
1055 |
*
|
williamr@2
|
1056 |
* It is a framework method; It can be overridded to obtain customized
|
williamr@2
|
1057 |
* behaviour.
|
williamr@2
|
1058 |
*
|
williamr@2
|
1059 |
* @param aButtonId input id to map.
|
williamr@2
|
1060 |
* @return 0 for re-mapped negative command ids other values
|
williamr@2
|
1061 |
* are returned as their original command id values.
|
williamr@2
|
1062 |
*/
|
williamr@2
|
1063 |
IMPORT_C virtual TInt MappedCommandId( TInt aButtonId );
|
williamr@2
|
1064 |
|
williamr@2
|
1065 |
/**
|
williamr@2
|
1066 |
* Get form flags of the active page
|
williamr@2
|
1067 |
*
|
williamr@2
|
1068 |
* @return Active page's form flags
|
williamr@2
|
1069 |
*/
|
williamr@2
|
1070 |
IMPORT_C TInt FormFlagsFromActivePage();
|
williamr@2
|
1071 |
|
williamr@2
|
1072 |
/* The following two methods are deprecated
|
williamr@2
|
1073 |
GetFirstLineOnFirstPageOrNull
|
williamr@2
|
1074 |
ControlsOnPage
|
williamr@2
|
1075 |
|
williamr@2
|
1076 |
instead the functionality can be achieved by
|
williamr@2
|
1077 |
TInt GetNumberOfLinesOnPage(TInt aPageIndex) const;
|
williamr@2
|
1078 |
TInt GetNumberOfPages() const;
|
williamr@2
|
1079 |
CEikCaptionedControl* GetLineByLineAndPageIndex(TInt aLineIndex,
|
williamr@2
|
1080 |
TInt aPageIndex) const;
|
williamr@2
|
1081 |
*/
|
williamr@2
|
1082 |
|
williamr@2
|
1083 |
/**
|
williamr@2
|
1084 |
* Gets first line of the first page.
|
williamr@2
|
1085 |
*
|
williamr@2
|
1086 |
* @deprecated
|
williamr@2
|
1087 |
* @return Pointer to the first line of the first page. If NULL there is no
|
williamr@2
|
1088 |
* such line.
|
williamr@2
|
1089 |
*/
|
williamr@2
|
1090 |
IMPORT_C virtual CEikCaptionedControl* GetFirstLineOnFirstPageOrNull();
|
williamr@2
|
1091 |
|
williamr@2
|
1092 |
/**
|
williamr@2
|
1093 |
* Gets all lines in the given page.
|
williamr@2
|
1094 |
*
|
williamr@2
|
1095 |
* @param aControls After execution holds all captions in the page.
|
williamr@2
|
1096 |
* @param aPageId ID of the target page.
|
williamr@2
|
1097 |
* @deprecated
|
williamr@2
|
1098 |
*/
|
williamr@2
|
1099 |
IMPORT_C void ControlsOnPage(RArray<CEikCaptionedControl*>& aControls,
|
williamr@2
|
1100 |
TInt aPageId) const;
|
williamr@2
|
1101 |
|
williamr@2
|
1102 |
|
williamr@2
|
1103 |
|
williamr@2
|
1104 |
|
williamr@2
|
1105 |
protected: // from MObjectProvider
|
williamr@2
|
1106 |
|
williamr@2
|
1107 |
/**
|
williamr@2
|
1108 |
* From @c MObjectProvider.
|
williamr@2
|
1109 |
*
|
williamr@2
|
1110 |
* Retrieves an object of the same type as that encapsulated in aId.
|
williamr@2
|
1111 |
*
|
williamr@2
|
1112 |
* This function is used to allow controls to ask their owners for
|
williamr@2
|
1113 |
* access to other objects that they own.
|
williamr@2
|
1114 |
*
|
williamr@2
|
1115 |
* Other than in the case where NULL is returned, the object returned
|
williamr@2
|
1116 |
* must be of the same object type - that is, the @c ETypeId member of
|
williamr@2
|
1117 |
* the object pointed to by the pointer returned by this function must
|
williamr@2
|
1118 |
* be equal to the iUid member of aId.
|
williamr@2
|
1119 |
*
|
williamr@2
|
1120 |
* @param aId An encapsulated object type ID.
|
williamr@2
|
1121 |
* @return Encapsulates the pointer to the object provided.
|
williamr@2
|
1122 |
* Note that the encapsulated pointer may be NULL.
|
williamr@2
|
1123 |
*/
|
williamr@2
|
1124 |
IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
|
williamr@2
|
1125 |
|
williamr@2
|
1126 |
private: // new functions
|
williamr@2
|
1127 |
|
williamr@2
|
1128 |
IMPORT_C virtual void CEikDialog_Reserved_1();
|
williamr@2
|
1129 |
|
williamr@2
|
1130 |
IMPORT_C virtual void CEikDialog_Reserved_2();
|
williamr@2
|
1131 |
|
williamr@2
|
1132 |
private: // internal functions
|
williamr@2
|
1133 |
|
williamr@2
|
1134 |
void BaseConstructL();
|
williamr@2
|
1135 |
|
williamr@2
|
1136 |
void StaticConstructL(TInt aResourceId);
|
williamr@2
|
1137 |
|
williamr@2
|
1138 |
void DynamicConstructL();
|
williamr@2
|
1139 |
|
williamr@2
|
1140 |
void CreateTitleBarL();
|
williamr@2
|
1141 |
|
williamr@2
|
1142 |
void CreateButtonGroupContainerL(TInt aResourceId);
|
williamr@2
|
1143 |
|
williamr@2
|
1144 |
void CreatePageSelectorL();
|
williamr@2
|
1145 |
|
williamr@2
|
1146 |
void CreatePageSelectorL(TInt aResourceId);
|
williamr@2
|
1147 |
|
williamr@2
|
1148 |
TInt WaitAsRequired();
|
williamr@2
|
1149 |
|
williamr@2
|
1150 |
void StopWaitingAsRequired();
|
williamr@2
|
1151 |
|
williamr@2
|
1152 |
TKeyResponse TryAnimateButtonAndExitL(TInt aKeycode);
|
williamr@2
|
1153 |
|
williamr@2
|
1154 |
void GetAutoValues();
|
williamr@2
|
1155 |
|
williamr@2
|
1156 |
void CommonConstructSleepingDialogL(TInt aResourceId);
|
williamr@2
|
1157 |
|
williamr@2
|
1158 |
void SetBorderStyle();
|
williamr@2
|
1159 |
|
williamr@2
|
1160 |
void FadeBehindPopup(TBool aFade);
|
williamr@2
|
1161 |
|
williamr@2
|
1162 |
void DoFadeBehindPopup(TBool aFade);
|
williamr@2
|
1163 |
|
williamr@2
|
1164 |
void DoResourceChangeLayout();
|
williamr@2
|
1165 |
|
williamr@2
|
1166 |
// From MAknFadedComponent
|
williamr@2
|
1167 |
|
williamr@2
|
1168 |
IMPORT_C virtual TInt CountFadedComponents();
|
williamr@2
|
1169 |
|
williamr@2
|
1170 |
IMPORT_C virtual CCoeControl* FadedComponent(TInt aIndex);
|
williamr@2
|
1171 |
|
williamr@2
|
1172 |
private:
|
williamr@2
|
1173 |
|
williamr@2
|
1174 |
CEikMover* iTitleBar;
|
williamr@2
|
1175 |
|
williamr@2
|
1176 |
CEikDialogPageSelector* iPageSelector;
|
williamr@2
|
1177 |
|
williamr@2
|
1178 |
CEikButtonGroupContainer* iButtonGroupContainer;
|
williamr@2
|
1179 |
|
williamr@2
|
1180 |
CEikDialogButtonCommandObserver* iButtonCommandObserver;
|
williamr@2
|
1181 |
|
williamr@2
|
1182 |
TInt iDialogFlags;
|
williamr@2
|
1183 |
|
williamr@2
|
1184 |
TInt* iExitConfirmed;
|
williamr@2
|
1185 |
|
williamr@2
|
1186 |
TBool iIsEditable ;
|
williamr@2
|
1187 |
|
williamr@2
|
1188 |
TAknPopupFader iPopupFader;
|
williamr@2
|
1189 |
|
williamr@2
|
1190 |
CActiveSchedulerWait iWait; // owned, safe to use as direct member data.
|
williamr@2
|
1191 |
|
williamr@2
|
1192 |
public :
|
williamr@2
|
1193 |
|
williamr@2
|
1194 |
/**
|
williamr@2
|
1195 |
* Access to CEikDialog's extension object.
|
williamr@2
|
1196 |
*
|
williamr@2
|
1197 |
* @return Pointer to extension object.
|
williamr@2
|
1198 |
* Constructed in @c CEikDialog::BaseContructL
|
williamr@2
|
1199 |
*/
|
williamr@2
|
1200 |
IMPORT_C CEikDialogExtension* Extension() const;
|
williamr@2
|
1201 |
|
williamr@2
|
1202 |
private :
|
williamr@2
|
1203 |
|
williamr@2
|
1204 |
CEikDialogExtension* iExtension ; // owned
|
williamr@2
|
1205 |
|
williamr@2
|
1206 |
private:
|
williamr@2
|
1207 |
|
williamr@2
|
1208 |
friend class CEikDialogButtonCommandObserver;
|
williamr@2
|
1209 |
|
williamr@2
|
1210 |
friend class CEikDialogExtension;
|
williamr@2
|
1211 |
|
williamr@2
|
1212 |
friend class CAknDialog;
|
williamr@2
|
1213 |
|
williamr@2
|
1214 |
friend class CAknCharMap;
|
williamr@2
|
1215 |
|
williamr@2
|
1216 |
friend class CAknCharMapDialog;
|
williamr@2
|
1217 |
|
williamr@2
|
1218 |
friend class CAknNoteDialog;
|
williamr@2
|
1219 |
|
williamr@2
|
1220 |
friend class CAknMediatorFacade;
|
williamr@2
|
1221 |
|
williamr@2
|
1222 |
public: // added JIn to allow access to dialog flags.
|
williamr@2
|
1223 |
|
williamr@2
|
1224 |
/**
|
williamr@2
|
1225 |
* Gets flags of the dialog.
|
williamr@2
|
1226 |
*
|
williamr@2
|
1227 |
* @return Dialog flags.
|
williamr@2
|
1228 |
*/
|
williamr@2
|
1229 |
IMPORT_C TInt DialogFlags();
|
williamr@2
|
1230 |
|
williamr@2
|
1231 |
protected:
|
williamr@2
|
1232 |
|
williamr@2
|
1233 |
/**
|
williamr@2
|
1234 |
* Sets the current Dialog into the Page selector
|
williamr@2
|
1235 |
*/
|
williamr@2
|
1236 |
void RegisterDialgWithPageSelector();
|
williamr@2
|
1237 |
|
williamr@2
|
1238 |
//
|
williamr@2
|
1239 |
// Deprecated interfaces.
|
williamr@2
|
1240 |
// Defined in EIKDLGUT.CPP.
|
williamr@2
|
1241 |
//
|
williamr@2
|
1242 |
public: // Declare auto interfaces.
|
williamr@2
|
1243 |
|
williamr@2
|
1244 |
/**
|
williamr@2
|
1245 |
* @deprecated Not supported.
|
williamr@2
|
1246 |
*/
|
williamr@2
|
1247 |
IMPORT_C void DeclareAutoTextEditorL(TInt aId,TDes* aText);
|
williamr@2
|
1248 |
|
williamr@2
|
1249 |
/**
|
williamr@2
|
1250 |
* @deprecated Not supported.
|
williamr@2
|
1251 |
*/
|
williamr@2
|
1252 |
IMPORT_C void DeclareAutoNumberEditor(TInt aId,TInt* aNumber);
|
williamr@2
|
1253 |
|
williamr@2
|
1254 |
/**
|
williamr@2
|
1255 |
* @deprecated Not supported.
|
williamr@2
|
1256 |
*/
|
williamr@2
|
1257 |
IMPORT_C void DeclareAutoRangeEditor(TInt aId,SEikRange* aRange);
|
williamr@2
|
1258 |
|
williamr@2
|
1259 |
/**
|
williamr@2
|
1260 |
* @deprecated Not supported.
|
williamr@2
|
1261 |
*/
|
williamr@2
|
1262 |
IMPORT_C void DeclareAutoTimeEditor(TInt aId,TTime* aTime);
|
williamr@2
|
1263 |
|
williamr@2
|
1264 |
/**
|
williamr@2
|
1265 |
* @deprecated Not supported.
|
williamr@2
|
1266 |
*/
|
williamr@2
|
1267 |
IMPORT_C void DeclareAutoDateEditor(TInt aId,TTime* aDate);
|
williamr@2
|
1268 |
|
williamr@2
|
1269 |
/**
|
williamr@2
|
1270 |
* @deprecated Not supported.
|
williamr@2
|
1271 |
*/
|
williamr@2
|
1272 |
IMPORT_C void DeclareAutoTimeAndDateEditor(TInt aId,TTime* aTimeAndDate);
|
williamr@2
|
1273 |
|
williamr@2
|
1274 |
/**
|
williamr@2
|
1275 |
* @deprecated Not supported.
|
williamr@2
|
1276 |
*/
|
williamr@2
|
1277 |
IMPORT_C void DeclareAutoDurationEditor(TInt aId,
|
williamr@2
|
1278 |
TTimeIntervalSeconds* aDuration);
|
williamr@2
|
1279 |
|
williamr@2
|
1280 |
/**
|
williamr@2
|
1281 |
* @deprecated Not supported.
|
williamr@2
|
1282 |
*/
|
williamr@2
|
1283 |
IMPORT_C void DeclareAutoTimeOffsetEditor(TInt aId,
|
williamr@2
|
1284 |
TTimeIntervalSeconds* aTimeOffset);
|
williamr@2
|
1285 |
|
williamr@2
|
1286 |
// IMPORT_C void DeclareAutoLatitudeEditor(TInt aId,
|
williamr@2
|
1287 |
// SEikDegreesMinutesDirection* aLatitude);
|
williamr@2
|
1288 |
// IMPORT_C void DeclareAutoLongitudeEditor(TInt aId,SEikDegreesMinutesDirection* aLongitude);
|
williamr@2
|
1289 |
|
williamr@2
|
1290 |
/**
|
williamr@2
|
1291 |
* @deprecated Not supported.
|
williamr@2
|
1292 |
*/
|
williamr@2
|
1293 |
IMPORT_C void DeclareAutoFixedPointEditor(TInt aId,TInt* aValue);
|
williamr@2
|
1294 |
|
williamr@2
|
1295 |
/**
|
williamr@2
|
1296 |
* @deprecated Not supported.
|
williamr@2
|
1297 |
*/
|
williamr@2
|
1298 |
IMPORT_C void DeclareAutoSecretEditor(TInt aId,TDes* aText);
|
williamr@2
|
1299 |
|
williamr@2
|
1300 |
public: // Add auto interfaces.
|
williamr@2
|
1301 |
|
williamr@2
|
1302 |
/**
|
williamr@2
|
1303 |
* @deprecated Not supported.
|
williamr@2
|
1304 |
*/
|
williamr@2
|
1305 |
IMPORT_C void AddAutoTextEditorL(const TDesC& aPrompt,TInt aId,TInt aFlags,TInt aWidthInChars,TInt aNoOfLines,TDes* aReturn);
|
williamr@2
|
1306 |
|
williamr@2
|
1307 |
/**
|
williamr@2
|
1308 |
* @deprecated Not supported.
|
williamr@2
|
1309 |
*/
|
williamr@2
|
1310 |
IMPORT_C void AddAutoGlobalTextEditorL(const TDesC& aPrompt,TInt aId,TInt aFlags,TInt aWidthInChars,TInt aNoOfLines,TInt aTextLimit,CGlobalText* aReturn,TInt aFontControlFlags=EGulFontControlAll,TInt aFontNameFlags=EGulNoSymbolFonts);
|
williamr@2
|
1311 |
|
williamr@2
|
1312 |
/**
|
williamr@2
|
1313 |
* @deprecated Not supported.
|
williamr@2
|
1314 |
*/
|
williamr@2
|
1315 |
IMPORT_C void AddAutoRichTextEditorL(const TDesC& aPrompt,TInt aId,TInt aFlags,TInt aWidthInChars,TInt aNoOfLines,TInt aTextLimit,CGlobalText* aReturn,TInt aFontControlFlags=EGulFontControlAll,TInt aFontNameFlags=EGulNoSymbolFonts);
|
williamr@2
|
1316 |
|
williamr@2
|
1317 |
/**
|
williamr@2
|
1318 |
* @deprecated Not supported.
|
williamr@2
|
1319 |
*/
|
williamr@2
|
1320 |
IMPORT_C void AddAutoNumberEditorL(const TDesC& aPrompt,TInt aId,TInt aMin,TInt aMax,TInt* aReturn);
|
williamr@2
|
1321 |
|
williamr@2
|
1322 |
/**
|
williamr@2
|
1323 |
* @deprecated Not supported.
|
williamr@2
|
1324 |
*/
|
williamr@2
|
1325 |
IMPORT_C void AddAutoRangeEditorL(const TDesC& aPrompt,TInt aId,TInt aMin,TInt aMax,HBufC* aSeparatorText,SEikRange* aReturn);
|
williamr@2
|
1326 |
|
williamr@2
|
1327 |
/**
|
williamr@2
|
1328 |
* @deprecated Not supported.
|
williamr@2
|
1329 |
*/
|
williamr@2
|
1330 |
IMPORT_C void AddAutoTimeEditorL(const TDesC& aPrompt,TInt aId,const TTime& aMin,const TTime& aMax,TBool aNoSeconds,TTime* aReturn);
|
williamr@2
|
1331 |
|
williamr@2
|
1332 |
/**
|
williamr@2
|
1333 |
* @deprecated Not supported.
|
williamr@2
|
1334 |
*/
|
williamr@2
|
1335 |
IMPORT_C void AddAutoDateEditorL(const TDesC& aPrompt,TInt aId,const TTime& aMin,const TTime& aMax, TBool aNoPopout,TTime* aReturn);
|
williamr@2
|
1336 |
|
williamr@2
|
1337 |
/**
|
williamr@2
|
1338 |
* @deprecated Not supported.
|
williamr@2
|
1339 |
*/
|
williamr@2
|
1340 |
IMPORT_C void AddAutoTimeAndDateEditorL(const TDesC& aPrompt,TInt aId,const TTime& aMin,const TTime& aMax,TBool aNoSeconds,TBool aNoPopout,HBufC* aInterveningText,TTime* aReturn);
|
williamr@2
|
1341 |
|
williamr@2
|
1342 |
/**
|
williamr@2
|
1343 |
* @deprecated Not supported.
|
williamr@2
|
1344 |
*/
|
williamr@2
|
1345 |
IMPORT_C void AddAutoDurationEditorL(const TDesC& aPrompt,TInt aId,const TTimeIntervalSeconds& aMin,const TTimeIntervalSeconds& aMax,TBool aNoSeconds,TTimeIntervalSeconds* aReturn);
|
williamr@2
|
1346 |
|
williamr@2
|
1347 |
/**
|
williamr@2
|
1348 |
* @deprecated Not supported.
|
williamr@2
|
1349 |
*/
|
williamr@2
|
1350 |
IMPORT_C void AddAutoTimeOffsetEditorL(const TDesC& aPrompt,TInt aId,const TTimeIntervalSeconds& aMin,const TTimeIntervalSeconds& aMax,TBool aNoSeconds,TTimeIntervalSeconds* aReturn);
|
williamr@2
|
1351 |
|
williamr@2
|
1352 |
// IMPORT_C void AddAutoLatitudeEditorL(const TDesC& aPrompt,TInt aId,HBufC* aDegreeSign,HBufC* aMinuteSign,HBufC* aSecondSign,HBufC* aTextForNorth,TChar aKeyToMatchForNorth,HBufC* aTextForSouth,TChar aKeyToMatchForSouth,SEikDegreesMinutesDirection* aReturn,TInt aFlags=0);
|
williamr@2
|
1353 |
// IMPORT_C void AddAutoLongitudeEditorL(const TDesC& aPrompt,TInt aId,HBufC* aDegreeSign,HBufC* aMinuteSign,HBufC* aSecondSign,HBufC* aTextForEast,TChar aKeyToMatchForEast,HBufC* aTextForWest,TChar aKeyToMatchForWest,SEikDegreesMinutesDirection* aReturn,TInt aFlags=0);
|
williamr@2
|
1354 |
|
williamr@2
|
1355 |
/**
|
williamr@2
|
1356 |
* @deprecated Not supported.
|
williamr@2
|
1357 |
*/
|
williamr@2
|
1358 |
IMPORT_C void AddAutoFloatEditorL(const TDesC& aPrompt,TInt aId,const TReal& aMin,const TReal& aMax,TReal* aReturn);
|
williamr@2
|
1359 |
|
williamr@2
|
1360 |
/**
|
williamr@2
|
1361 |
* @deprecated Not supported.
|
williamr@2
|
1362 |
*/
|
williamr@2
|
1363 |
IMPORT_C void AddAutoFixedPointEditorL(const TDesC& aPrompt,TInt aId,TInt aMin,TInt aMax,TInt* aRetValue,TInt aDecimalPlaces);
|
williamr@2
|
1364 |
|
williamr@2
|
1365 |
/**
|
williamr@2
|
1366 |
* @deprecated Not supported.
|
williamr@2
|
1367 |
*/
|
williamr@2
|
1368 |
IMPORT_C void AddAutoSecretEditorL(const TDesC& aPrompt,TInt aId,TDes* aReturn);
|
williamr@2
|
1369 |
|
williamr@2
|
1370 |
protected: // Set state interfaces.
|
williamr@2
|
1371 |
|
williamr@2
|
1372 |
/**
|
williamr@2
|
1373 |
* @deprecated Not supported.
|
williamr@2
|
1374 |
*/
|
williamr@2
|
1375 |
IMPORT_C void SetLabelL(TInt aControlId, const TDesC& aDes);
|
williamr@2
|
1376 |
|
williamr@2
|
1377 |
/**
|
williamr@2
|
1378 |
* @deprecated Not supported.
|
williamr@2
|
1379 |
*/
|
williamr@2
|
1380 |
IMPORT_C void SetLabelL(TInt aControlId, TInt aResourceId);
|
williamr@2
|
1381 |
|
williamr@2
|
1382 |
/**
|
williamr@2
|
1383 |
* @deprecated Not supported.
|
williamr@2
|
1384 |
*/
|
williamr@2
|
1385 |
IMPORT_C void SetLabelReserveLengthL(TInt aControlId, TInt aLength);
|
williamr@2
|
1386 |
|
williamr@2
|
1387 |
/**
|
williamr@2
|
1388 |
* @deprecated Not supported.
|
williamr@2
|
1389 |
*/
|
williamr@2
|
1390 |
IMPORT_C void SetEdwinTextL(TInt aControlId, const TDesC* aDes);
|
williamr@2
|
1391 |
|
williamr@2
|
1392 |
/**
|
williamr@2
|
1393 |
* @deprecated Not supported.
|
williamr@2
|
1394 |
*/
|
williamr@2
|
1395 |
IMPORT_C void SetTextEditorTextL(TInt aControlId,const CGlobalText* aGlobalText);
|
williamr@2
|
1396 |
|
williamr@2
|
1397 |
/**
|
williamr@2
|
1398 |
* @deprecated Not supported.
|
williamr@2
|
1399 |
*/
|
williamr@2
|
1400 |
IMPORT_C void ResetSecretEditor(TInt aControlId);
|
williamr@2
|
1401 |
|
williamr@2
|
1402 |
/**
|
williamr@2
|
1403 |
* @deprecated Not supported.
|
williamr@2
|
1404 |
*/
|
williamr@2
|
1405 |
IMPORT_C void SetFloatingPointEditorValueL(TInt aControlId, const TReal* aValue);
|
williamr@2
|
1406 |
|
williamr@2
|
1407 |
/**
|
williamr@2
|
1408 |
* @deprecated Not supported.
|
williamr@2
|
1409 |
*/
|
williamr@2
|
1410 |
IMPORT_C void SetFixedPointEditorValueL(TInt aControlId,TInt aValue);
|
williamr@2
|
1411 |
|
williamr@2
|
1412 |
/**
|
williamr@2
|
1413 |
* @deprecated Not supported.
|
williamr@2
|
1414 |
*/
|
williamr@2
|
1415 |
IMPORT_C void SetFixedPointEditorDecimal(TInt aControlId, TInt aDecimal);
|
williamr@2
|
1416 |
|
williamr@2
|
1417 |
/**
|
williamr@2
|
1418 |
* @deprecated Not supported.
|
williamr@2
|
1419 |
*/
|
williamr@2
|
1420 |
IMPORT_C void SetNumberEditorMinAndMax(TInt aControlId, TInt aMinimumValue, TInt aMaximumValue); // only values inside the initial min and max are permitted
|
williamr@2
|
1421 |
|
williamr@2
|
1422 |
/**
|
williamr@2
|
1423 |
* @deprecated Not supported.
|
williamr@2
|
1424 |
*/
|
williamr@2
|
1425 |
IMPORT_C void SetNumberEditorValue(TInt aControlId, TInt aNumber);
|
williamr@2
|
1426 |
|
williamr@2
|
1427 |
/**
|
williamr@2
|
1428 |
* @deprecated Not supported.
|
williamr@2
|
1429 |
*/
|
williamr@2
|
1430 |
IMPORT_C void SetFloatEditorMinAndMax(TInt aControlId,TInt aMin,TInt aMax);
|
williamr@2
|
1431 |
|
williamr@2
|
1432 |
/**
|
williamr@2
|
1433 |
* @deprecated Not supported.
|
williamr@2
|
1434 |
*/
|
williamr@2
|
1435 |
IMPORT_C void SetFloatEditorValueL(TInt aControlId,TReal aFloat);
|
williamr@2
|
1436 |
|
williamr@2
|
1437 |
/**
|
williamr@2
|
1438 |
* @deprecated Not supported.
|
williamr@2
|
1439 |
*/
|
williamr@2
|
1440 |
IMPORT_C void SetRangeEditorMinAndMax(TInt aControlId, TInt aMinimumValue, TInt aMaximumValue); // only values inside the initial min and max are permitted
|
williamr@2
|
1441 |
|
williamr@2
|
1442 |
/**
|
williamr@2
|
1443 |
* @deprecated Not supported.
|
williamr@2
|
1444 |
*/
|
williamr@2
|
1445 |
IMPORT_C void SetRangeEditorValue(TInt aControlId, const SEikRange& aRange);
|
williamr@2
|
1446 |
|
williamr@2
|
1447 |
/**
|
williamr@2
|
1448 |
* @deprecated Not supported.
|
williamr@2
|
1449 |
*/
|
williamr@2
|
1450 |
IMPORT_C void SetTTimeEditorMinAndMax(TInt aControlId, const TTime& aMinimumTime, const TTime& aMaximumTime); // only values inside the initial min and max are permitted
|
williamr@2
|
1451 |
|
williamr@2
|
1452 |
/**
|
williamr@2
|
1453 |
* @deprecated Not supported.
|
williamr@2
|
1454 |
*/
|
williamr@2
|
1455 |
IMPORT_C void SetTTimeEditorValue(TInt aControlId, const TTime& aTime);
|
williamr@2
|
1456 |
|
williamr@2
|
1457 |
/**
|
williamr@2
|
1458 |
* @deprecated Not supported.
|
williamr@2
|
1459 |
*/
|
williamr@2
|
1460 |
IMPORT_C void SetDurationEditorMinAndMax(TInt aControlId, const TTimeIntervalSeconds& aMinimumDuration, const TTimeIntervalSeconds& aMaximumDuration); // only values inside the initial min and max are permi
|
williamr@2
|
1461 |
|
williamr@2
|
1462 |
/**
|
williamr@2
|
1463 |
* @deprecated Not supported.
|
williamr@2
|
1464 |
*/
|
williamr@2
|
1465 |
IMPORT_C void SetDurationEditorValue(TInt aControlId, const TTimeIntervalSeconds& aDuration);
|
williamr@2
|
1466 |
|
williamr@2
|
1467 |
/**
|
williamr@2
|
1468 |
* @deprecated Not supported.
|
williamr@2
|
1469 |
*/
|
williamr@2
|
1470 |
IMPORT_C void SetTimeOffsetEditorMinAndMax(TInt aControlId, const TTimeIntervalSeconds& aMinimumTimeOffset, const TTimeIntervalSeconds& aMaximumTimeOffset); // only values inside the initial min and max are
|
williamr@2
|
1471 |
|
williamr@2
|
1472 |
/**
|
williamr@2
|
1473 |
* @deprecated Not supported.
|
williamr@2
|
1474 |
*/
|
williamr@2
|
1475 |
IMPORT_C void SetTimeOffsetEditorValue(TInt aControlId, const TTimeIntervalSeconds& aTimeOffset);
|
williamr@2
|
1476 |
|
williamr@2
|
1477 |
// IMPORT_C void SetLatitudeEditorValue(TInt aControlId, const SEikDegreesMinutesDirection& aLatitude);
|
williamr@2
|
1478 |
// IMPORT_C void SetLongitudeEditorValue(TInt aControlId, const SEikDegreesMinutesDirection& aLongitude);
|
williamr@2
|
1479 |
|
williamr@2
|
1480 |
/**
|
williamr@2
|
1481 |
* @deprecated Not supported.
|
williamr@2
|
1482 |
*/
|
williamr@2
|
1483 |
IMPORT_C void SetListBoxCurrentItem(TInt aControlId, TInt aItem);
|
williamr@2
|
1484 |
|
williamr@2
|
1485 |
/**
|
williamr@2
|
1486 |
* @deprecated Not supported.
|
williamr@2
|
1487 |
*/
|
williamr@2
|
1488 |
IMPORT_C void SetFileNameL(TInt aControlId, const TDesC* aFileName);
|
williamr@2
|
1489 |
|
williamr@2
|
1490 |
protected: // Get state interfaces.
|
williamr@2
|
1491 |
|
williamr@2
|
1492 |
/**
|
williamr@2
|
1493 |
* @deprecated Not supported.
|
williamr@2
|
1494 |
*/
|
williamr@2
|
1495 |
IMPORT_C void GetLabelText(TDes& aDes,TInt aControlId) const;
|
williamr@2
|
1496 |
|
williamr@2
|
1497 |
/**
|
williamr@2
|
1498 |
* @deprecated Not supported.
|
williamr@2
|
1499 |
*/
|
williamr@2
|
1500 |
IMPORT_C void GetEdwinText(TDes& aDes,TInt aControlId) const;
|
williamr@2
|
1501 |
|
williamr@2
|
1502 |
/**
|
williamr@2
|
1503 |
* @deprecated Not supported.
|
williamr@2
|
1504 |
*/
|
williamr@2
|
1505 |
IMPORT_C void GetTextEditorText(CGlobalText*& aGlobalText,TInt aControlId);
|
williamr@2
|
1506 |
|
williamr@2
|
1507 |
/**
|
williamr@2
|
1508 |
* @deprecated Not supported.
|
williamr@2
|
1509 |
*/
|
williamr@2
|
1510 |
IMPORT_C void GetSecretEditorText(TDes& aDes,TInt aControlId) const;
|
williamr@2
|
1511 |
|
williamr@2
|
1512 |
/**
|
williamr@2
|
1513 |
* @deprecated Not supported.
|
williamr@2
|
1514 |
*/
|
williamr@2
|
1515 |
IMPORT_C TReal FloatingPointEditorValue(TInt aControlId) const;
|
williamr@2
|
1516 |
|
williamr@2
|
1517 |
/**
|
williamr@2
|
1518 |
* @deprecated Not supported.
|
williamr@2
|
1519 |
*/
|
williamr@2
|
1520 |
IMPORT_C TInt FixedPointEditorValue(TInt aControlId) const;
|
williamr@2
|
1521 |
|
williamr@2
|
1522 |
/**
|
williamr@2
|
1523 |
* @deprecated Not supported.
|
williamr@2
|
1524 |
*/
|
williamr@2
|
1525 |
IMPORT_C TInt FixedPointEditorDecimal(TInt aControlId) const;
|
williamr@2
|
1526 |
|
williamr@2
|
1527 |
/**
|
williamr@2
|
1528 |
* @deprecated Not supported.
|
williamr@2
|
1529 |
*/
|
williamr@2
|
1530 |
IMPORT_C TReal FloatEditorValue(TInt aControlId) const;
|
williamr@2
|
1531 |
|
williamr@2
|
1532 |
/**
|
williamr@2
|
1533 |
* @deprecated Not supported.
|
williamr@2
|
1534 |
*/
|
williamr@2
|
1535 |
IMPORT_C TInt NumberEditorValue(TInt aControlId) const;
|
williamr@2
|
1536 |
|
williamr@2
|
1537 |
/**
|
williamr@2
|
1538 |
* @deprecated Not supported.
|
williamr@2
|
1539 |
*/
|
williamr@2
|
1540 |
IMPORT_C SEikRange RangeEditorValue(TInt aControlId) const;
|
williamr@2
|
1541 |
|
williamr@2
|
1542 |
/**
|
williamr@2
|
1543 |
* @deprecated Not supported.
|
williamr@2
|
1544 |
*/
|
williamr@2
|
1545 |
IMPORT_C TTime TTimeEditorValue(TInt aControlId) const;
|
williamr@2
|
1546 |
|
williamr@2
|
1547 |
/**
|
williamr@2
|
1548 |
* @deprecated Not supported.
|
williamr@2
|
1549 |
*/
|
williamr@2
|
1550 |
IMPORT_C TTimeIntervalSeconds DurationEditorValue(TInt aControlId) const;
|
williamr@2
|
1551 |
|
williamr@2
|
1552 |
/**
|
williamr@2
|
1553 |
* @deprecated Not supported.
|
williamr@2
|
1554 |
*/
|
williamr@2
|
1555 |
IMPORT_C TTimeIntervalSeconds TimeOffsetEditorValue(TInt aControlId) const;
|
williamr@2
|
1556 |
|
williamr@2
|
1557 |
// IMPORT_C SEikDegreesMinutesDirection LatitudeEditorValue(TInt aControlId) const;
|
williamr@2
|
1558 |
// IMPORT_C SEikDegreesMinutesDirection LongitudeEditorValue(TInt aControlId) const;
|
williamr@2
|
1559 |
|
williamr@2
|
1560 |
/**
|
williamr@2
|
1561 |
* @deprecated Not supported.
|
williamr@2
|
1562 |
*/
|
williamr@2
|
1563 |
IMPORT_C void GetAutoValuesFromPage(CEikCapCArray* aLines);
|
williamr@2
|
1564 |
|
williamr@2
|
1565 |
/**
|
williamr@2
|
1566 |
* @deprecated Not supported.
|
williamr@2
|
1567 |
*/
|
williamr@2
|
1568 |
IMPORT_C TInt ListBoxCurrentItem(TInt aControlId) const;
|
williamr@2
|
1569 |
|
williamr@2
|
1570 |
/**
|
williamr@2
|
1571 |
* @deprecated Not supported.
|
williamr@2
|
1572 |
*/
|
williamr@2
|
1573 |
IMPORT_C void GetFileName(TFileName* aFileName,TInt aControlId) const;
|
williamr@2
|
1574 |
|
williamr@2
|
1575 |
/**
|
williamr@2
|
1576 |
* Only has effect on forms, call this after adding or deleting lines.
|
williamr@2
|
1577 |
*
|
williamr@2
|
1578 |
* @param aRedraw Whether to redraw the page. Usually expect this to be
|
williamr@2
|
1579 |
* @c ETrue.
|
williamr@2
|
1580 |
*/
|
williamr@2
|
1581 |
IMPORT_C void UpdatePageL(TBool aRedraw);
|
williamr@2
|
1582 |
|
williamr@2
|
1583 |
public:
|
williamr@2
|
1584 |
|
williamr@2
|
1585 |
/**
|
williamr@2
|
1586 |
* From @c CEikDialog (@c MEikDialogPageObserver).
|
williamr@2
|
1587 |
*
|
williamr@2
|
1588 |
* The interface method which is called when dialog page is tapped with
|
williamr@2
|
1589 |
* a stylus.
|
williamr@2
|
1590 |
*
|
williamr@2
|
1591 |
* @param aEventID An event identification number.
|
williamr@2
|
1592 |
*/
|
williamr@2
|
1593 |
IMPORT_C virtual void HandleDialogPageEventL(TInt aEventID);
|
williamr@2
|
1594 |
|
williamr@2
|
1595 |
/**
|
williamr@2
|
1596 |
* Instantiates mediator support and send a command with given parameters
|
williamr@2
|
1597 |
* when a dialog is brought to display.
|
williamr@2
|
1598 |
*
|
williamr@2
|
1599 |
* @since 3.1
|
williamr@2
|
1600 |
* @param aDialogIndex unique index to identify a dialog within the category.
|
williamr@2
|
1601 |
* @param aCatUid gategory uid, if default paramter is passed, application
|
williamr@2
|
1602 |
* uid is used as a category.
|
williamr@2
|
1603 |
*/
|
williamr@2
|
1604 |
IMPORT_C void PublishDialogL(TInt aDialogIndex, TUid aCatUid = KNullUid);
|
williamr@2
|
1605 |
|
williamr@2
|
1606 |
/**
|
williamr@2
|
1607 |
* Instantiates mediator support and passes possible feedback to given
|
williamr@2
|
1608 |
* intance. If no observer is set, dialog tries to handle feedback by it
|
williamr@2
|
1609 |
* self.
|
williamr@2
|
1610 |
* Please note that no commands will be instantiated unless command
|
williamr@2
|
1611 |
* identifiers are are set using @c PublishDialogL.
|
williamr@2
|
1612 |
*
|
williamr@2
|
1613 |
* @since 3.1
|
williamr@2
|
1614 |
* @param aObserver Pointer to instance implementing
|
williamr@2
|
1615 |
* @c MAknDialogMediatorObserver API. Can be NULL.
|
williamr@2
|
1616 |
*/
|
williamr@2
|
1617 |
IMPORT_C void SetMediatorObserver(MAknDialogMediatorObserver* aObserver);
|
williamr@2
|
1618 |
|
williamr@2
|
1619 |
/* @since 3.1
|
williamr@2
|
1620 |
* Tries to slide the dialog to the screen. If there is not enough memory for
|
williamr@2
|
1621 |
* sliding, the dialog appears as before.
|
williamr@2
|
1622 |
*
|
williamr@2
|
1623 |
* Method is exported because of delayed notes.
|
williamr@2
|
1624 |
*
|
williamr@2
|
1625 |
* @return void
|
williamr@2
|
1626 |
*/
|
williamr@2
|
1627 |
IMPORT_C void SlideDialog();
|
williamr@2
|
1628 |
|
williamr@2
|
1629 |
public:
|
williamr@2
|
1630 |
/** @since 3.2
|
williamr@2
|
1631 |
* Sets dialog to be multilinequery.
|
williamr@2
|
1632 |
*
|
williamr@2
|
1633 |
* This is called by multiline query only. Changes tab-key behaviour
|
williamr@2
|
1634 |
* of the dialog page. Tab key works differently for forms and
|
williamr@2
|
1635 |
* multiline queries.
|
williamr@2
|
1636 |
*
|
williamr@2
|
1637 |
* @param aIsMultilineQuery Whether this dialog is multiline query
|
williamr@2
|
1638 |
*/
|
williamr@2
|
1639 |
IMPORT_C void SetMultilineQuery(TBool aIsMultilineQuery);
|
williamr@2
|
1640 |
};
|
williamr@2
|
1641 |
|
williamr@2
|
1642 |
#endif
|