|
|
|||
Location:
QikFloatingPointEditor.h
Link against: qikctl.lib
class CQikFloatingPointEditor : public CQikNumericEditor, public MQikControlStreamInterface, public MQikCommandHandler, public MQikCommandListOwner;
Floating point editor.
This control supports editing a single floating point value. The maximum and minimum numbers which can be entered into the editor may be set. Values outside these bounds are invalid, and a warning is given when an attempt is made to remove focus. The class also specifies the maximum length of the editor, in characters. The associated resource is QIK_FLOATING_POINT_EDITOR
This class is not intended for user derivation.
MQikCommandListOwner - Interface for classes adding commandsMQikCommandHandler - Interface for classes responsible of executing commandsMQikControlStreamInterface - MQikControlStreamInterface is used by controls to be able to handle cancel behaviour from e.gMQikTextRepresentationInterface - MQikTextRepresentationInterface should be implemented by controls that are normally shown in a container pop-out e.gMCoeControlObserver - Interface for a control to send events to its observer controlMObjectProvider - An interface that allows an object to be part of a network of object providersCBase - Base class for all classes to be instantiated on the heapCCoeControl - Control base class from which all other controls are derivedCQikNumericEditor - Numeric editor base classCQikFloatingPointEditor - Floating point editorDefined in CQikFloatingPointEditor:
CQikFloatingPointEditor(), ConstructFromResourceL(), ConstructL(), GetColorUseListL(), GetMinimumAndMaximum(), HandleCommandL(), HandleResourceChange(), InputCapabilities(), MapCommandHandler(), MopSupplyObject(), OfferKeyEventL(), PrepareForFocusGainL(), PrepareForFocusLossL(), RestoreUserDataL(), SetMinimumAndMaximum(), SetValueL(), StoreUserDataL(), ValidateKeyEvent(), ValidateTextL(), Value(), WriteInternalStateL(), ~CQikFloatingPointEditor()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from CCoeControl:
AccumulatedZoom(),
ActivateGc(),
ActivateL(),
BackedUpWindow(),
Background(),
CapturesPointer(),
ClaimPointerGrab(),
CloseWindow(),
Components(),
ControlContext(),
ControlEnv(),
CopyControlContextFrom(),
CreateBackedUpWindowL(),
CreateWindowL(),
DeactivateGc(),
DrawBackground(),
DrawDeferred(),
DrawForeground(),
DrawNow(),
DrawableWindow(),
EAbsoluteZoom,
ERelativeZoom,
EnableDragEvents(),
FindBackground(),
FindFontProvider(),
GetColor(),
GetGc(),
GetHelpContext(),
GrabbingComponent(),
HandleComponentControlsResourceChange(),
HandleControlArrayEventL(),
HandlePointerBufferReadyL(),
HandleRedrawEvent(),
HasBorder(),
HitTest(),
IgnoreEventsUntilNextPointerUp(),
Index(),
InitComponentArrayL(),
IsActivated(),
IsBackedUp(),
IsBeingDestroyed(),
IsBlank(),
IsDimmed(),
IsFocused(),
IsNonFocusing(),
IsReadyToDraw(),
IsVisible(),
LayoutManager(),
MakeVisible(),
MaximumWidth(),
Observer(),
OverrideColorL(),
OwnsWindow(),
Parent(),
Position(),
PositionRelativeToScreen(),
Rect(),
RecursivelyMergedInputCapabilities(),
ReportEventL(),
RequestRelayout(),
Reserved_CCoeControl_10(),
Reserved_CCoeControl_11(),
Reserved_CCoeControl_12(),
Reserved_CCoeControl_13(),
ResetGc(),
ScreenFont(),
SetAdjacent(),
SetAllowStrayPointers(),
SetBackground(),
SetBlank(),
SetCanDrawOutsideRect(),
SetComponentsToInheritVisibility(),
SetContainerWindowL(),
SetControlContext(),
SetCornerAndSize(),
SetExtent(),
SetExtentToWholeScreen(),
SetFocus(),
SetFocusing(),
SetFontProviderL(),
SetGc(),
SetGloballyCapturing(),
SetHitTest(),
SetLayoutManagerL(),
SetMaximumWidth(),
SetMopParent(),
SetNeighbor(),
SetNonFocusing(),
SetObserver(),
SetParent(),
SetPointerCapture(),
SetPosition(),
SetRect(),
SetSize(),
SetSizeWithoutNotification(),
SetTextBaselineSpacing(),
SetUniqueHandle(),
SetZoomFactorL(),
Size(),
SystemGc(),
TZoomType,
TextBaselineOffset(),
TextDrawer(),
UniqueHandle(),
Window(),
ZoomWithType(),
iCoeEnv,
iContext,
iPosition,
iSize
Inherited from CQikNumericEditor:
BaseConstructL(),
CommandDeleteL(),
ComponentControl(),
CountComponentControls(),
DecreaseValueL(),
Draw(),
Edwin(),
FocusChanged(),
GetTextL(),
HandleControlEventL(),
HandlePointerEventL(),
IncreaseValueL(),
MinimumSize(),
PositionChanged(),
SetControlValueObserver(),
SetDimmed(),
SetSpinnerArrows(),
SetTextL(),
SizeChanged(),
TextRepresentationL(),
iControlValueObserver
Inherited from MCoeControlObserver:
EEventInteractionRefused,
EEventPrepareFocusTransition,
EEventRequestCancel,
EEventRequestExit,
EEventRequestFocus,
EEventStateChanged,
TCoeEvent
Inherited from MObjectProvider:
MopGetObject(),
MopGetObjectNoChaining()
Inherited from MQikCommandHandler:
HandleAttemptDimmedSelectionL()
IMPORT_C CQikFloatingPointEditor();
Default constructor.
This function constructs an uninitialised CQikFloatingPointEditor . It 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 ConstructL(TReal aMinimumValue, TReal aMaximumValue, TInt aTextLimit);
Second phase construction. This function completes the construction of a newly-allocated floating point editor. This function should be used instead of ConstructFromResourceL() when not initialising from a resource file.
This function sets the minimum and maximum values that the user is able to enter into the editor, and the maximum length of the editor in characters. If the aMinimumValue is greater than aMaximumValue the values are swapped.
|
IMPORT_C TReal Value() const;
Gets the editor's current value.
|
IMPORT_C void SetValueL(TReal aValue);
sets the control's actual value in a cyclic way between iMinimumValue and iMinimumValue . If aValue exceed than the control's maximum value the actual value will be set to the minimum value. If aValue will result smaller than the control's minimum value the actual value will be set to the maximum value. CoeControl will be informed of the change for a redraw of the displayed value.
|
IMPORT_C void GetMinimumAndMaximum(TReal &aMinimum, TReal &aMaximum) const;
public gives the control's minimum and maximum values
|
SetMinimumAndMaximum(TReal aMinimum, TReal aMaximum)IMPORT_C void SetMinimumAndMaximum(TReal aMinimum, TReal aMaximum);
public sets the Minimum and Maximum values possible for this control
|
#GetMinimumAndMaximum(TReal& aMinimum, TReal& aMaximum)virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aReader);
Second phase construction from a resource.
This function completes the construction of a newly-allocated floating point editor from a QIK_FLOATING_POINT_EDITOR resource file (.rss). The minimum and maximum values and the maximum number of characters that can be displayed in the editor are read from the resource, and ConstructL() is called with these settings.
The initial value must be set using SetValueL().
|
virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;
Gets the list of logical colours employed in the drawing of the control, paired with an explanation of how they are used. Appends the list to aColorUseList.
|
virtual IMPORT_C void HandleResourceChange(TInt aType);
Handles a change to the control's resources of type aType which are shared across the environment, e.g. colours or fonts.
|
virtual IMPORT_C void StoreUserDataL(RWriteStream &aWriteStream) const;
Stores the value of the editor when the pop-out is launched.
|
virtual IMPORT_C void RestoreUserDataL(RReadStream &aReadStream);
Restores the value of the editor when the cancel soft key is pressed.
|
virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
Public Handles key events.
|
|
protected: virtual IMPORT_C TBool ValidateKeyEvent(const TKeyEvent &aKeyEvent, TEventCode aType) const;
protected validate a key pressed by the user
|
|
protected: virtual IMPORT_C TBool ValidateTextL(const TDes &aText) const;
protected Validates a text to see if it contains any illigal characters
|
|
protected: virtual IMPORT_C void HandleCommandL(CQikCommand &aCommand);
HandleCommandL is called when the command has been activated by the user.
|
protected: virtual IMPORT_C MQikCommandHandler *MapCommandHandler(CQikCommand &aCommand);
Called from the CQikCommandManager for each command being added which do not already has its handler set.
|
|
protected: virtual IMPORT_C void PrepareForFocusLossL();
protected prepare the control to lose the focus
protected: virtual IMPORT_C void PrepareForFocusGainL();
protected prepare the control to gain the focus
protected: virtual IMPORT_C TCoeInputCapabilities InputCapabilities() const;
protected returns the input capabilities of this control
|
protected: virtual IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
Gets an object whose type is encapsulated by the specified TTypeUid object.
|
|
protected: virtual IMPORT_C void WriteInternalStateL(RWriteStream &aWriteStream) const;
Writes the internal state of the control and its components to aStream. Does nothing in release mode. Designed to be overridden and base called by subclasses.
|