class CEikRangeEditor : public CEikMfne |
Numeric range editor.
This editor supports editing an integer range. It has two fields; the first represents the lower value and the second the upper value. The second value must be greater than, or equal to, the first.
Minimum and maximum values for the editor are specified during construction. If a number is entered which is not within the editor's minimum and maximum values, it is automatically reset to the nearest allowable value.
The editor has an associated resource struct RANGE_EDITOR and control factory identifier EEikCtRangeEditor.
Public Member Functions | |
---|---|
CEikRangeEditor () | |
IMPORT_C void | ConstructFromResourceL ( TResourceReader &) |
IMPORT_C void | ConstructL ( TInt , TInt , const SEikRange &, HBufC *) |
IMPORT_C void | GetMinimumAndMaximum ( TInt &, TInt &) |
IMPORT_C void | HandlePointerEventL (const TPointerEvent &) |
IMPORT_C SEikRange | Range () |
IMPORT_C void | SetMinimumAndMaximum ( TInt , TInt ) |
IMPORT_C void | SetRange (const SEikRange &) |
Private Member Functions | |
---|---|
IMPORT_C void | CEikMfne_Reserved () |
IMPORT_C void * | ExtensionInterface ( TUid ) |
void | FieldIsAboutToBeDeHighlighted ( CEikMfneField *, TBool &) |
void | RefreshFromLocale () |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType | |
CEikMfne:TFeatureId | |
CEikMfne:TFingerSupportParams |
Private Attributes | |
---|---|
CEikMfneNumber * | iLowerLimit |
TInt | iSpare |
CEikMfneNumber * | iUpperLimit |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iContext | |
CCoeControl::iPosition | |
CCoeControl::iSize | |
CEikBorderedControl::iBorder |
IMPORT_C | CEikRangeEditor | ( | ) |
Default constructor.
This function should be used as the first stage in two stage construction, followed by a call to either ConstructFromResourceL() to initialise the editor's field values from a resource file, or ConstructL() if no resource file is used.
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aResourceReader | ) | [virtual] |
Second phase constructor from resource.
This function completes construction of a newly-allocated range editor. It sets the minimum and maximum values, initial range and separator text as specified by the resource.
TResourceReader & aResourceReader | A resource reader. |
IMPORT_C void | ConstructL | ( | TInt | aMinimumValue, |
TInt | aMaximumValue, | |||
const SEikRange & | aInitialRange, | |||
HBufC * | aSeparatorText | |||
) |
Second phase constructor.
This function completes construction of a range editor. It sets the minimum and maximum values, initial range and separator text. It should be called by the container only if the control is not constructed from a resource file.
TInt aMinimumValue | The minimum value for the range editor. |
TInt aMaximumValue | The maximum value for the range editor. |
const SEikRange & aInitialRange | Struct containing upper and lower range limits. Must be within the minimum and maximum values. |
HBufC * aSeparatorText | The text to be used to separate the numeric values. |
IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl
TUid aInterface |
void | FieldIsAboutToBeDeHighlighted | ( | CEikMfneField * | aField, |
TBool & | aDrawAllFields | |||
) | [private, virtual] |
Empty virtual function.
Called by HandleInteraction() when switching from the current field. Can be implemented by derived classes to maintain consistency between fields, e.g. in a range editor.
CEikMfneField * aField | The current field. |
TBool & aDrawAllFields | On return, whether all fields have changed and need to be redrawn. |
IMPORT_C void | GetMinimumAndMaximum | ( | TInt & | aMinimumValue, |
TInt & | aMaximumValue | |||
) | const |
Gets the range editor's minimum and maximum values.
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
const TPointerEvent & aPointerEvent | The pointer event. |
IMPORT_C SEikRange | Range | ( | ) | const |
Gets the range editor's current values.
Can only be called if CEikMfne::PrepareForFocusLossL() succeeded
IMPORT_C void | SetMinimumAndMaximum | ( | TInt | aMinimumValue, |
TInt | aMaximumValue | |||
) |
Sets the range editor's minimum and maximum values.
Any values are permitted. If the range values are outside the new minimum / maximum they are changed to be within the new minimum / maximum.
IMPORT_C void | SetRange | ( | const SEikRange & | aRange | ) |
Sets the range editor's current values.
const SEikRange & aRange | Struct containing new range values. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.