API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib uiklaf.lib form.lib
Required Capabilities
None
#include <eikfpne.h>
Inherits CAknNumericEdwin.
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 |
|
IMPORT_C | CEikFloatingPointEditor () |
C++ constructor. |
|
IMPORT_C void | ConstructL (const TReal &aMin, const TReal &aMax, TInt aTextLimit) |
2nd stage constructor |
|
IMPORT_C TReal | Value () const |
Read out the value from the editor as a Real. |
|
IMPORT_C TValidationStatus | GetValueAsReal (TReal &aValue) |
Read out the value from the editor as a Real. |
|
IMPORT_C void | SetValueL (const TReal *aValue) |
Set the value in the editor. |
|
IMPORT_C void | SetMinMax (TReal aMin, TReal aMax) |
Set minimum and maximum valid values. |
|
IMPORT_C void | GetMinMax (TReal &aMin, TReal &aMax) const |
Get minimum and maximum valid values. |
|
virtual IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
From resource constructor. |
|
virtual IMPORT_C void | PrepareForFocusLossL () |
Called by framework when focus is being taken off editor. |
|
virtual IMPORT_C TCoeInputCapabilities | InputCapabilities () const |
Sets the input capabilities of the editor. |
|
virtual IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
Specific Key handling for numeric editor. |
|
virtual IMPORT_C void | HandleResourceChange (TInt aType) |
Update contents of editor on certain resource change events. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl. |
|
C++ constructor. |
|
From resource constructor. Refer to eikon.rh for the FLPTED resource structure
Reimplemented from CEikEdwin. |
|
2nd stage constructor |
|
Get minimum and maximum valid values.
|
|
Read out the value from the editor as a Real.
|
|
From CCoeControl. Handles pointer events
Reimplemented from CAknNumericEdwin. |
|
Update contents of editor on certain resource change events. Reimplemented from CEikEdwin. |
|
Sets the input capabilities of the editor. Reimplemented from CEikEdwin. |
|
Specific Key handling for numeric editor. Reimplemented from CEikEdwin. |
|
Called by framework when focus is being taken off editor. May be called by client code. |
|
Set minimum and maximum valid values.
|
|
Set the value in the editor.
|
|
Read out the value from the editor as a Real. Value can only be relied on after a non-leaving call to PrepareForFocusLossL().
|