|
|
|||
Location:
QikNumericEditor.h
Link against: qikctl.lib
class CQikNumericEditor : public CCoeControl, public MCoeControlObserver, public MQikTextRepresentationInterface;
Numeric editor base class.
This base class provides a number of methods which are inherited by the concrete number editor classes CQikFloatingPointEditor and CQikNumberEditor .
MQikTextRepresentationInterface - 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 classDefined in CQikNumericEditor:
BaseConstructL(), CQikNumericEditor(), CommandDeleteL(), ComponentControl(), CountComponentControls(), DecreaseValueL(), Draw(), Edwin(), FocusChanged(), GetColorUseListL(), GetTextL(), HandleControlEventL(), HandlePointerEventL(), HandleResourceChange(), IncreaseValueL(), InputCapabilities(), MinimumSize(), MopSupplyObject(), OfferKeyEventL(), PositionChanged(), SetControlValueObserver(), SetDimmed(), SetSpinnerArrows(), SetTextL(), SizeChanged(), TextRepresentationL(), ValidateKeyEvent(), ValidateTextL(), iControlValueObserver, ~CQikNumericEditor()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from CCoeControl:
AccumulatedZoom(),
ActivateGc(),
ActivateL(),
BackedUpWindow(),
Background(),
CapturesPointer(),
ClaimPointerGrab(),
CloseWindow(),
Components(),
ConstructFromResourceL(),
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(),
PrepareForFocusGainL(),
PrepareForFocusLossL(),
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(),
WriteInternalStateL(),
ZoomWithType(),
iCoeEnv,
iContext,
iPosition,
iSize
Inherited from MCoeControlObserver:
EEventInteractionRefused,
EEventPrepareFocusTransition,
EEventRequestCancel,
EEventRequestExit,
EEventRequestFocus,
EEventStateChanged,
TCoeEvent
Inherited from MObjectProvider:
MopGetObject(),
MopGetObjectNoChaining()
IMPORT_C ~CQikNumericEditor();
Destructor. The destructor frees all resources owned by the object, prior to its destruction.
protected: IMPORT_C CQikNumericEditor();
Protected default constructor.
This protected constructor is empty, and exists to prevent objects of this class from being constructed. This class is intended only as an abstract base for other classes.
Constructs an incomplete CQikNumericEditor. Construction of the CQikNumericEditor is not complete until BaseConstructL(TInt aTextLimit, TBool aSpinnerArrows) has been called.
CBaseConstructL()virtual IMPORT_C TSize MinimumSize();
Gets the minimum size of the control.
|
virtual IMPORT_C void SetDimmed(TBool aDimmed);
Sets the control to be dimmed.
|
virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
Handles key events if the numeric editor has focus.
|
|
virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;
Gets the list of logical colors used to draw the control. Pairs the colors with an explanation of how they are used and appends this information 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. colors or fonts.
|
IMPORT_C const CEikEdwin &Edwin() const;
Returns the CEikEdwin control of the internal CQikNumericEditorEdwin component.
|
virtual IMPORT_C HBufC *TextRepresentationL() const;
This method shall return a textual representation of the controls current value
|
virtual IMPORT_C void SetControlValueObserver(MQikControlValueObserver *aObserver);
This method is used to set the control value observer that shall later be notified of control value changes.
|
protected: IMPORT_C void BaseConstructL(TInt aTextLimit, TBool aSpinnerArrows=ETrue);
Base constructor.
This is called in the ConstructL() of derived classes to create and set up the control's editor window.
It is the second part of the construction process and it Completes the construction of the CQikNumericEditor object.
|
protected: IMPORT_C void SetTextL(const TDesC &aText);
Sets the control's Edwin's text to be displayed.
|
protected: IMPORT_C void GetTextL(TDes &aText) const;
Gets the control's Edwin's text to be displayed.
|
protected: virtual IMPORT_C void IncreaseValueL();
Increase the editor control's value.
This function has an empty implementation, but may be over-ridden in derived classes.
protected: virtual IMPORT_C void DecreaseValueL();
Decrease the editor control's value.
This function has an empty implementation, but may be over-ridden in derived classes
protected: virtual IMPORT_C TBool ValidateKeyEvent(const TKeyEvent &aKeyEvent, TEventCode aType) const;
Validates key events (key pressed by the user).
This function is called by OfferKeyEventL() to validate that events to be handled are appropriate to the control. The implementation provided by this function always returns ETrue , however it may be overloaded in derived classes to provide more complex error checking. Then the programmer must remember to return true for EKeyDownArrow and EKeyUpArrow events to let the controls be scrolled with arrow keys.
|
|
protected: virtual IMPORT_C TBool ValidateTextL(const TDes &aText) const;
Validate a complete text.
|
|
protected: IMPORT_C void SetSpinnerArrows(TBool aSpinnerArrows);
|
protected: IMPORT_C void CommandDeleteL(CQikCommand &aCommand);
Called when a softkey or menupane item has been selected.
|
protected: virtual IMPORT_C void SizeChanged();
Notifies that the control's size has changed and updates it.
protected: virtual IMPORT_C void PositionChanged();
Notifies that the control's position has changed and updates it.
protected: virtual IMPORT_C void Draw(const TRect &aRect) const;
Draws the control.
|
CCoeControl::Draw()protected: virtual IMPORT_C void FocusChanged(TDrawNow aDrawNow);
Notifies that the focus has changed and orders a redraw.
|
protected: virtual IMPORT_C void HandlePointerEventL(const TPointerEvent &aPointerEvent);
Handles pointer events:
EButton1Down (does nothing actually, it should be implemented in derived class(es) ).
EButtonRepeat (if it happens over a focused spinner arrow, it increases or decreases the control's value for the respective arrow).
|
protected: virtual IMPORT_C TInt CountComponentControls() const;
Gets the number of controls within this editor control.
|
protected: virtual IMPORT_C CCoeControl *ComponentControl(TInt aIndex) const;
Gets a pointer to the Edwin and the highlightcontrol owned by this control.
As there is only one component inside here, aIndex does not matter.
|
|
protected: virtual IMPORT_C TCoeInputCapabilities InputCapabilities() const;
Gets the control's supported input capabilities.
|
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 HandleControlEventL(CCoeControl *aControl, TCoeEvent aEventType);
Handles control events. The implementation simply passes an event up to this control's observer.
|
protected: MQikControlValueObserver * iControlValueObserver;