#include <mw/eikmfne.h>
class CEikRangeEditor : public CEikMfne |
Public Member Functions | |
---|---|
CEikRangeEditor() | |
virtual IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
IMPORT_C void | ConstructL(TInt, TInt, const SEikRange &, HBufC *) |
IMPORT_C void | GetMinimumAndMaximum(TInt &, TInt &) |
virtual IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C SEikRange | Range() |
IMPORT_C void | SetMinimumAndMaximum(TInt, TInt) |
IMPORT_C void | SetRange(const SEikRange &) |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iContext | |
CCoeControl::iPosition | |
CCoeControl::iSize | |
CEikBorderedControl::iBorder |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType | |
CEikMfne:TFeatureId | |
CEikMfne:TFingerSupportParams |
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.
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] |
Reimplemented from CCoeControl::ConstructFromResourceL(TResourceReader &)
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.
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
aMinimumValue | The minimum value for the range editor. |
aMaximumValue | The maximum value for the range editor. |
aInitialRange | Struct containing upper and lower range limits. Must be within the minimum and maximum values. |
aSeparatorText | The text to be used to separate the numeric values. |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
Reimplemented from CEikMfne::HandlePointerEventL(const TPointerEvent &)
From CCoeControl.
Handles pointer events.
Parameter | Description |
---|---|
aPointerEvent | The pointer event. |
IMPORT_C SEikRange | Range | ( | ) | const |
Gets the range editor's current values.
Can only be called if CEikMfne::PrepareForFocusLossL() succeeded
Returns: Struct containing current range values.
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.
Parameter | Description |
---|---|
aMinimumValue | The minimum value for the range editor. |
aMaximumValue | The maximum value for the range editor. |
IMPORT_C void | SetRange | ( | const SEikRange & | aRange | ) |
Sets the range editor's current values.
Parameter | Description |
---|---|
aRange | Struct containing new range values. |