|
|
|||
Location:
QikTimeEditor.h
Link against: qikctl.lib
class CQikTimeEditor : public CQikTTimeEditor, public MCoeControlObserver, public MQikCommandListOwner, public MQikCommandHandler;
Time editor.
This editor displays a time. On a tap a Time Picker control is popped up this can be used to select a new time.
12 and 24-hour format are supported. When 12-hour format is used, and am or pm field is displayed after the time. Locale information is used to determine the time separator and format. Locale information is set and retrieved using class TLocale .
The base class CQikTTimeEditor provides the members 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 CQikTTimeEditor::ConstructL() to enforce 24 hour format, and to disable the Time Picker popout.
This class is not intended for user derivation. The associated resource is QIK_TIME_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 handlingCQikTimeEditor - Defined in CQikTimeEditor:
CQikTimeEditor(), ConstructFromResourceL(), GetColorUseListL(), HandleCommandL(), HandleControlEventL(), HandleResourceChange(), InputCapabilities(), MapCommandHandler(), MinimumSize(), OfferKeyEventL(), PrepareForFocusGainL(), PrepareForFocusLossL(), ~CQikTimeEditor()
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(),
MakeVisible(),
MopSupplyObject(),
PositionChanged(),
RequestRelayout(),
SetAdjacent(),
SetBorder(),
SetContainerWindowL(),
SetDimmed(),
SetLayoutManagerL(),
SetNeighbor(),
SetParent(),
SetTextBaselineSpacing(),
SizeChanged(),
TextBaselineOffset(),
WriteInternalStateL(),
iBorder
Inherited from CQikTTimeEditor:
ConstructL(),
Draw(),
DrawContent(),
EDisableWrapTime,
EFiveMinuteSteps,
EForce24HourFormat,
EMirroredLayout,
EWithoutPopoutCalendar,
EWithoutPopoutPicker,
Font(),
GetMinimumAndMaximum(),
SetMinimumAndMaximum(),
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 CQikTimeEditor();
Default constructor.
This function constructs an uninitialised CQikTimeEditor . 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 CQikTTimeEditor::ConstructL() (if no resource file is used).
If ConstructL() is used, EQikTimeWithoutPopout and EQikTimeForce24HourFormat may be passed to the aFlags variable.
IMPORT_C ~CQikTimeEditor();
Default destructor.
The destructor frees any resources owned by the editor, including the Time picker popout, prior to its destruction.
virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aResourceReader);
Second phase construction from a resource file (.rss).
This function completes the construction of a newly-allocated time editor from a QIK_TIME_EDITOR resource. The minimum and maximum times, and the flags settings are read from the resource, and CQikTTimeEditor::ConstructL() is called with these settings. The initial time is set to the maximum time value.
|
virtual IMPORT_C TSize MinimumSize();
Gets the minimum size possible for this control.
|
virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;
Gets the list of logical colors 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. colors or fonts.
|
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);
From MQikCommandListOwner
|
|
virtual IMPORT_C void HandleCommandL(CQikCommand &aCommand);
From MQikCommandHandler
|
MQikCommandListOwner::HandleCommandL()virtual IMPORT_C void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEventType);
Handles control events.
Inherited by CCoeControl . Defines the behaviour of this control in case of EEventRequestExit and EEventRequestCancel events.
|
protected: virtual IMPORT_C TCoeInputCapabilities InputCapabilities() const;
Gets the editor's input capabilities.
This editor supports entry of numbers that are TCoeInputCapabilities::EWesternNumericIntegerNegative , or TCoeInputCapabilities::EWesternNumericIntegerPositive .
|