|
|
|||
Location:
QikTTimeEditor.h
Link against: qikctl.lib
class CQikTTimeEditor : public CEikBorderedControl;
This class provides methods and members for time and date handling. The base class for time, date, time/date and duration editors. it's inherited by QikTimeEditor , by QikDateEditor , by QikTimeAndDateEditor and by QikDurationEditor .
This class is not intended for user derivation.
MEikBorderedControl - 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 handlingDefined in CQikTTimeEditor:
ConstructL(), Draw(), DrawContent(), EDisableWrapTime, EFiveMinuteSteps, EForce24HourFormat, EMirroredLayout, EWithoutPopoutCalendar, EWithoutPopoutPicker, Font(), GetColorUseListL(), GetMinimumAndMaximum(), HandleResourceChange(), MinimumSize(), SetMinimumAndMaximum(), SetTimeL(), SetWrapTime(), Time(), anonymous, iDateString, iTimeString, ~CQikTTimeEditor()
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(),
ConstructFromResourceL(),
CountComponentControls(),
FocusChanged(),
GetHelpContext(),
HandleControlArrayEventL(),
HandlePointerBufferReadyL(),
HandlePointerEventL(),
HasBorder(),
InputCapabilities(),
MakeVisible(),
MopSupplyObject(),
OfferKeyEventL(),
PositionChanged(),
PrepareForFocusGainL(),
PrepareForFocusLossL(),
RequestRelayout(),
SetAdjacent(),
SetBorder(),
SetContainerWindowL(),
SetDimmed(),
SetLayoutManagerL(),
SetNeighbor(),
SetParent(),
SetTextBaselineSpacing(),
SizeChanged(),
TextBaselineOffset(),
WriteInternalStateL(),
iBorder
Inherited from MEikBorderedControl:
ETypeId
Inherited from MObjectProvider:
MopGetObject(),
MopGetObjectNoChaining()
virtual ~CQikTTimeEditor();
Default constructor.
This function constructs an uninitialised CQikTTimeEditor . It is the first stage in two stage construction. ConstructL() should be called to initialise the editor's maximum and minimum values, initial value and flags.
IMPORT_C void ConstructL(const TTime &aMinimumTime, const TTime &aMaximumTime, const TTime &aInitialTime, TUint32 aFlags);
Second phase construction.
The function completes the construction of a newly-allocated time/date/duration editor (CQikTTimeEditor ), by setting its minimum, maximum and initial values. The AM/PM settings and time separator characters specified in class TLocale are honoured. The function should be called by the container, in derived classes, only if the control is not constructed from a resource file.
The aFlags parameter enables sub-classes to enforce certain behaviour. Possible flags are given in this classes anonymous enum.
The function does not check that the initial time is between the maximum and minimum values, and it does not check that the maximum time is greater than the minimum time.
The function sets the default behaviour to wrap the time.
|
CQikTTimeEditor()IMPORT_C void SetMinimumAndMaximum(const TTime &aMinimumTime, const TTime &aMaximumTime);
Set minimum and maximum time values allowed for this control. The editor will not allow users to enter values outside these bounds.
|
IMPORT_C void GetMinimumAndMaximum(TTime &aMinimumTime, TTime &aMaximumTime) const;
Get the minimum and maximum time values allowed for this control. The editor will not allow users to enter values outside these bounds.
|
IMPORT_C void SetTimeL(const TTime &aTime);
Set the time stored in this control.
|
IMPORT_C TTime Time() const;
Gets the time actually stored in this control.
|
IMPORT_C const CFont *Font() const;
Gets the font used to draw editor text. This is used by the framework to establish the minimum size of the control.
|
SetFont()IMPORT_C void SetWrapTime(TBool aWrap);
Sets if the time shall wrap when it comes to its maimum/minimum values.
|
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 TSize MinimumSize();
Gets the minimum size of the control.
|
protected: virtual IMPORT_C void Draw(const TRect &aRect) const;
Draws the control's border.
|
CCoeControl::Draw()protected: virtual void DrawContent(CWindowGc &aGc, const TRect &aRect) const=0;
|
n/a
Time/date/duration editor flags. There are equivalent flags for use in resources.
EQikDateWithoutPopoutCalendar
|
protected: TBuf< 50 > iDateString;