#include <mw/eikmfne.h>
class CEikNumberEditor : public CEikMfne |
Public Member Functions | |
---|---|
CEikNumberEditor() | |
virtual IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
IMPORT_C void | ConstructL(TInt, TInt, TInt) |
IMPORT_C void | GetMinimumAndMaximum(TInt &, TInt &) |
virtual IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C TInt | Number() |
IMPORT_C void | SetMinimumAndMaximum(TInt, TInt) |
IMPORT_C void | SetNumber(TInt) |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iContext | |
CCoeControl::iPosition | |
CCoeControl::iSize | |
CEikBorderedControl::iBorder |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType | |
CEikMfne:TFeatureId | |
CEikMfne:TFingerSupportParams |
Integer editor.
This control supports editing a single integer value. If a number is entered which is not within the range specified by the maximum and minimum control values it is automatically reset to the nearest allowable value.
The editor has an associated resource struct NUMBER_EDITOR and control factory identifier EEikCtNumberEditor.
IMPORT_C | CEikNumberEditor | ( | ) |
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 construction from a resource file.
The function reads the maximum and minimum editor values from a NUMBER_EDITOR resource, and sets the initial number to be the same as the maximum value.
Parameter | Description |
---|---|
aResourceReader | A resource file reader. |
Second-phase constructor.
Completes the construction of an integer editor. It should be called by container only if the editor is not constructed from a resource.
Sets the minimum and maximum values that can be entered into the editor, and the initial value.
Parameter | Description |
---|---|
aMinimumValue | The minimum allowable value. |
aMaximumValue | The maximum allowable value. |
aInitialValue | The initial value. |
Gets the integer editor's minimum and maximum values.
Parameter | Description |
---|---|
aMinimumValue | On return, contains the integer editor's minimum allowable value. |
aMaximumValue | On return, contains the integer editor's maximum allowable value. |
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 TInt | Number | ( | ) | const |
Gets the integer editor's value.
Returns: The integer editor's value.
Sets the minimum and maximum editor values.
Only values inside the initial minimum and maximum are permitted.
If the editor's value is outside the new bounds when the function is called, it is reset to the nearest allowable value.
Parameter | Description |
---|---|
aMinimumValue | The minimum allowable value. |
aMaximumValue | The maximum allowable value. |
IMPORT_C void | SetNumber | ( | TInt | aNumber | ) |
Sets the integer editor's value.
The control is not redrawn.
Parameter | Description |
---|---|
aNumber | The editor's new value. |