| class CEikFloatingPointEditor : public CAknNumericEdwin |
This class presents an editor modifying a real. The decimal place can occur anywhere. Exponential notation is allowed.
Validation, consisting of a check that the contents are parsable as a number (using TLex::Val()) and a range check, is carried out when PrepareForFocusLossL is called. Invalid contents cause a leave of that method.
Value() only returns a value corresponding reliably to the value in the editor after a non-leaving call to PrepareForFocusLossL.
| Public Member Functions | |
|---|---|
| CEikFloatingPointEditor() | |
| IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
| IMPORT_C void | ConstructL(const TReal &, const TReal &, TInt) |
| IMPORT_C void | GetMinMax(TReal &, TReal &) |
| IMPORT_C TValidationStatus | GetValueAsReal(TReal &) |
| IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
| IMPORT_C void | HandleResourceChange(TInt) |
| IMPORT_C TCoeInputCapabilities | InputCapabilities() |
| IMPORT_C TKeyResponse | OfferKeyEventL(const TKeyEvent &, TEventCode) |
| IMPORT_C void | PrepareForFocusLossL() |
| IMPORT_C void | SetMinMax(TReal, TReal) |
| IMPORT_C void | SetValueL(const TReal *) |
| IMPORT_C TReal | Value() |
| Private Member Functions | |
|---|---|
| IMPORT_C void * | ExtensionInterface(TUid) |
| IMPORT_C void | Reserved_3() |
| Private Attributes | |
|---|---|
| TReal | iMax |
| TReal | iMin |
| TInt | iSpare |
| TReal | iValue |
| IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
From resource constructor. Refer to eikon.rh for the FLPTED resource structure
| TResourceReader & aReader | Resource reader positioned at a FLPTED resource location |
| IMPORT_C void | ConstructL | ( | const TReal & | aMin, |
| const TReal & | aMax, | |||
| TInt | aTextLimit | |||
| ) | ||||
2nd stage constructor
| IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl
| TUid aInterface |
| IMPORT_C void | GetMinMax | ( | TReal & | aMin, |
| TReal & | aMax | |||
| ) | const | |||
Get minimum and maximum valid values.
| IMPORT_C TValidationStatus | GetValueAsReal | ( | TReal & | aValue | ) |
Read out the value from the editor as a Real. Validation status of the current value
| TReal & aValue |
| IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
From CCoeControl. Handles pointer events
| const TPointerEvent & aPointerEvent | The pointer event. |
| IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [virtual] |
Update contents of editor on certain resource change events
| TInt aType |
| IMPORT_C TCoeInputCapabilities | InputCapabilities | ( | ) | const [virtual] |
Sets the input capabilities of the editor
| IMPORT_C TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
| TEventCode | aType | |||
| ) | [virtual] | |||
Specific Key handling for numeric editor
| const TKeyEvent & aKeyEvent | |
| TEventCode aType |
| IMPORT_C void | PrepareForFocusLossL | ( | ) | [virtual] |
Called by framework when focus is being taken off editor. May be called by client code.
| IMPORT_C void | SetMinMax | ( | TReal | aMin, |
| TReal | aMax | |||
| ) | ||||
Set minimum and maximum valid values.
| IMPORT_C void | SetValueL | ( | const TReal * | aValue | ) |
Set the value in the editor.
| const TReal * aValue | pointer to value to set |
| IMPORT_C TReal | Value | ( | ) | const |
Read out the value from the editor as a Real. Value can only be relied on after a non-leaving call to PrepareForFocusLossL().
Value in the editor