|
|
|||
Location:
QikDurationEditor.h
Link against: qikctl.lib
class CQikDurationEditor : public CQikTTimeEditor, public MCoeControlObserver, public MQikCommandListOwner, public MQikCommandHandler;
Duration editor.
This editor displays a time duration. On a tap, a time picker control is displayed this can be used to select a new duration. Global locale information is used to determine the time separator see TLocale .
Members are provided for setting the maximum and minimum values that the user may enter into the editor, and for getting and setting the current editor value. Flags can be passed to either of the second phase constructors to disable the Time picker popout.
This class derives from CQikTTimeEditor and is not intended for user derivation. Associated resource is QIK_DURATION_EDITOR .
MQikCommandHandler - Interface for classes responsible of executing commandsMQikCommandListOwner - Interface for classes adding commandsMCoeControlObserver - Interface for a control to send events to its observer controlMEikBorderedControl - Interface for bordered controlsMObjectProvider - 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 derivedCEikBorderedControl - A control which is drawn surrounded by a rectangular borderCQikTTimeEditor - This class provides methods and members for time and date handlingCQikDurationEditor - Duration editorDefined in CQikDurationEditor:
CQikDurationEditor(), ConstructFromResourceL(), ConstructL(), Duration(), GetColorUseListL(), GetMinimumAndMaximum(), HandleCommandL(), HandleControlEventL(), HandleResourceChange(), MapCommandHandler(), MinimumSize(), OfferKeyEventL(), PrepareForFocusGainL(), PrepareForFocusLossL(), SetDurationL(), SetMinimumAndMaximum(), ~CQikDurationEditor()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from CCoeControl:
AccumulatedZoom(),
ActivateGc(),
BackedUpWindow(),
Background(),
CapturesPointer(),
ClaimPointerGrab(),
CloseWindow(),
Components(),
ControlContext(),
ControlEnv(),
CopyControlContextFrom(),
CreateBackedUpWindowL(),
CreateWindowL(),
DeactivateGc(),
DrawBackground(),
DrawDeferred(),
DrawForeground(),
DrawNow(),
DrawableWindow(),
EAbsoluteZoom,
ERelativeZoom,
EnableDragEvents(),
FindBackground(),
FindFontProvider(),
GetColor(),
GetGc(),
GrabbingComponent(),
HandleComponentControlsResourceChange(),
HandleRedrawEvent(),
HitTest(),
IgnoreEventsUntilNextPointerUp(),
Index(),
InitComponentArrayL(),
IsActivated(),
IsBackedUp(),
IsBeingDestroyed(),
IsBlank(),
IsDimmed(),
IsFocused(),
IsNonFocusing(),
IsReadyToDraw(),
IsVisible(),
LayoutManager(),
MaximumWidth(),
Observer(),
OverrideColorL(),
OwnsWindow(),
Parent(),
Position(),
PositionRelativeToScreen(),
Rect(),
RecursivelyMergedInputCapabilities(),
ReportEventL(),
Reserved_CCoeControl_10(),
Reserved_CCoeControl_11(),
Reserved_CCoeControl_12(),
Reserved_CCoeControl_13(),
ResetGc(),
ScreenFont(),
SetAllowStrayPointers(),
SetBackground(),
SetBlank(),
SetCanDrawOutsideRect(),
SetComponentsToInheritVisibility(),
SetControlContext(),
SetCornerAndSize(),
SetExtent(),
SetExtentToWholeScreen(),
SetFocus(),
SetFocusing(),
SetFontProviderL(),
SetGc(),
SetGloballyCapturing(),
SetHitTest(),
SetMaximumWidth(),
SetMopParent(),
SetNonFocusing(),
SetObserver(),
SetPointerCapture(),
SetPosition(),
SetRect(),
SetSize(),
SetSizeWithoutNotification(),
SetUniqueHandle(),
SetZoomFactorL(),
Size(),
SystemGc(),
TZoomType,
TextDrawer(),
UniqueHandle(),
Window(),
ZoomWithType(),
iCoeEnv,
iContext,
iPosition,
iSize
Inherited from CEikBorderedControl:
ActivateL(),
Border(),
ComponentControl(),
CountComponentControls(),
FocusChanged(),
GetHelpContext(),
HandleControlArrayEventL(),
HandlePointerBufferReadyL(),
HandlePointerEventL(),
HasBorder(),
InputCapabilities(),
MakeVisible(),
MopSupplyObject(),
PositionChanged(),
RequestRelayout(),
SetAdjacent(),
SetBorder(),
SetContainerWindowL(),
SetDimmed(),
SetLayoutManagerL(),
SetNeighbor(),
SetParent(),
SetTextBaselineSpacing(),
SizeChanged(),
TextBaselineOffset(),
WriteInternalStateL(),
iBorder
Inherited from CQikTTimeEditor:
Draw(),
DrawContent(),
EDisableWrapTime,
EFiveMinuteSteps,
EForce24HourFormat,
EMirroredLayout,
EWithoutPopoutCalendar,
EWithoutPopoutPicker,
Font(),
SetTimeL(),
SetWrapTime(),
Time(),
anonymous,
iDateString,
iTimeString
Inherited from MCoeControlObserver:
EEventInteractionRefused,
EEventPrepareFocusTransition,
EEventRequestCancel,
EEventRequestExit,
EEventRequestFocus,
EEventStateChanged,
TCoeEvent
Inherited from MEikBorderedControl:
ETypeId
Inherited from MObjectProvider:
MopGetObject(),
MopGetObjectNoChaining()
Inherited from MQikCommandHandler:
HandleAttemptDimmedSelectionL()
IMPORT_C CQikDurationEditor();
Default constructor.
This function constructs an uninitialised CQikDurationEditor . 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 ~CQikDurationEditor();
Destructor. The destructor frees any resources owned by the editor, including the Time picker popout, prior to its destruction.
IMPORT_C void ConstructL(TTimeIntervalSeconds aMinimumDuration, TTimeIntervalSeconds aMaximumDuration, TTimeIntervalSeconds aInitialDuration, TUint32 aFlags);
Second phase construction. This function should be called by the container, in derived classes, only if the control is not constructed from a resource file.
The function completes the construction of a newly-allocated duration editor, by setting its minimum, maximum and initial values, and the editor flags. The time separator characters specified in class TLocale are honoured.
The function does not check that the initial time is between the maximum and minimum values, and it does not check that the maximum duration is greater than the minimum duration.
|
IMPORT_C void SetMinimumAndMaximum(TTimeIntervalSeconds aMinimumDuration, TTimeIntervalSeconds aMaximumDuration);
Sets the duration editor's maximum and minimum permissible values. The editor will not allow users to enter values outside these bounds.
|
IMPORT_C void GetMinimumAndMaximum(TTimeIntervalSeconds &aMinimumDuration, TTimeIntervalSeconds &aMaximumDuration) const;
Gets the duration editor's maximum and minimum permissible values. The editor will not allow users to enter values outside these bounds.
|
IMPORT_C void SetDurationL(TTimeIntervalSeconds aDuration);
Sets the editor's current duration value.
|
IMPORT_C TTimeIntervalSeconds Duration() const;
Gets the editor's current duration value.
|
virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aResourceReader);
Second phase construction from a resource.
This function completes the construction of a newly-allocated duration editor from a QIK_DURATION_EDITOR resource. The minimum and maximum values and the editor flags are read from the resource, and ConstructL() is called with these settings. The initial duration is set to the maximum duration value.
|
virtual IMPORT_C TSize MinimumSize();
Gets the minimum size of the control.
|
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 which are shared across the environment. Colors or fonts for example.
|
virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
Handles key events.
|
|
virtual IMPORT_C void PrepareForFocusGainL();
Notifier called upon before the control gains focus.
virtual IMPORT_C void PrepareForFocusLossL();
Notifier called upon before the control loses focus.
virtual IMPORT_C MQikCommandHandler *MapCommandHandler(CQikCommand &aCommand);
|
|
virtual IMPORT_C void HandleCommandL(CQikCommand &aCommand);
|
virtual IMPORT_C void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEventType);
Handles control events.
The function gets events for the time picker popout - it may or may not retrieve the duration value (depending on whether the popout was cancelled) and then destroys popout.
|