class CEikNumberEditor : public CEikMfne |
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.
Public Member Functions | |
---|---|
CEikNumberEditor () | |
IMPORT_C void | ConstructFromResourceL ( TResourceReader &) |
IMPORT_C void | ConstructL ( TInt , TInt , TInt ) |
IMPORT_C void | GetMinimumAndMaximum ( TInt &, TInt &) |
IMPORT_C void | HandlePointerEventL (const TPointerEvent &) |
IMPORT_C TInt | Number () |
IMPORT_C void | SetMinimumAndMaximum ( TInt , TInt ) |
IMPORT_C void | SetNumber ( TInt ) |
Private Member Functions | |
---|---|
IMPORT_C void | CEikMfne_Reserved () |
IMPORT_C void * | ExtensionInterface ( TUid ) |
void | RefreshFromLocale () |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType | |
CEikMfne:TFeatureId | |
CEikMfne:TFingerSupportParams |
Private Attributes | |
---|---|
CEikMfneNumber * | iNumber |
TInt | iSpare |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iContext | |
CCoeControl::iPosition | |
CCoeControl::iSize | |
CEikBorderedControl::iBorder |
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] |
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.
TResourceReader & aResourceReader | A resource file reader. |
IMPORT_C void | ConstructL | ( | TInt | aMinimumValue, |
TInt | aMaximumValue, | |||
TInt | aInitialValue | |||
) |
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.
IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl
TUid aInterface |
IMPORT_C void | GetMinimumAndMaximum | ( | TInt & | aMinimumValue, |
TInt & | aMaximumValue | |||
) | const |
Gets the integer editor's minimum and maximum values.
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
const TPointerEvent & aPointerEvent | The pointer event. |
IMPORT_C TInt | Number | ( | ) | const |
Gets the integer editor's value.
void | RefreshFromLocale | ( | ) | [private] |
IMPORT_C void | SetMinimumAndMaximum | ( | TInt | aMinimumValue, |
TInt | aMaximumValue | |||
) |
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.
IMPORT_C void | SetNumber | ( | TInt | aNumber | ) |
Sets the integer editor's value.
The control is not redrawn.
TInt aNumber | The editor's new value. |
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.