#include <mw/eikfpne.h>
class CEikFloatingPointEditor : public CAknNumericEdwin |
Public Member Functions | |
---|---|
CEikFloatingPointEditor() | |
virtual 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 &) |
virtual IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
virtual IMPORT_C void | HandleResourceChange(TInt) |
virtual IMPORT_C TCoeInputCapabilities | InputCapabilities() |
virtual IMPORT_C TKeyResponse | OfferKeyEventL(const TKeyEvent &, TEventCode) |
virtual IMPORT_C void | PrepareForFocusLossL() |
IMPORT_C void | SetMinMax(TReal, TReal) |
IMPORT_C void | SetValueL(const TReal *) |
IMPORT_C TReal | Value() |
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.
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
Reimplemented from CEikEdwin::ConstructFromResourceL(TResourceReader &)
From resource constructor. Refer to eikon.rh for the FLPTED resource structure
Parameter | Description |
---|---|
aReader | Resource reader positioned at a FLPTED resource location |
IMPORT_C TValidationStatus | GetValueAsReal | ( | TReal & | aValue | ) |
Read out the value from the editor as a Real.
Returns: Validation status of the current value
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
Reimplemented from CAknNumericEdwin::HandlePointerEventL(const TPointerEvent &)
From CCoeControl. Handles pointer events
Parameter | Description |
---|---|
aPointerEvent | The pointer event. |
IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [virtual] |
Reimplemented from CEikEdwin::HandleResourceChange(TInt)
Update contents of editor on certain resource change events
IMPORT_C TCoeInputCapabilities | InputCapabilities | ( | ) | const [virtual] |
Reimplemented from CEikEdwin::InputCapabilities()const
Sets the input capabilities of the editor
IMPORT_C TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | aType | |||
) | [virtual] |
Reimplemented from CEikEdwin::OfferKeyEventL(const TKeyEvent &,TEventCode)
Specific Key handling for numeric editor
IMPORT_C void | PrepareForFocusLossL | ( | ) | [virtual] |
Reimplemented from CCoeControl::PrepareForFocusLossL()
Called by framework when focus is being taken off editor. May be called by client code.
IMPORT_C void | SetValueL | ( | const TReal * | aValue | ) |
Set the value in the editor.
Parameter | Description |
---|---|
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().
Returns: Value in the editor