|
|
|||
Location:
QikDateEditor.h
Link against: qikctl.lib
class CQikDateEditor : public CQikTTimeEditor, private MEikCalendarObserver, public MQikCommandListOwner, public MQikCommandHandler;
Date editor.
This editor simply displays a date. On a tap, a calendar/date picker is displayed, this can be used to select a new date.
The editor has day, month and year fields, and two separator characters. Global locale information is used to determine field order and the characters used to separate the date components, see TLocale . Associated resource is QIK_DATE_EDITOR.
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. A flag can be passed to CQikTTimeEditor::ConstructL() to disable the calendar/date picker popout.
This class is not intended for user derivation.
Note:
This class implements the MEikCalendarObserver interface. However its members are not exported, and hence do not form part of the public API.
MQikCommandHandler - Interface for classes responsible of executing commandsMQikCommandListOwner - Interface for classes adding commandsMEikCalendarObserver - Calendar observer interfaceMEikBorderedControl - 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 handlingCQikDateEditor - Date editorDefined in CQikDateEditor:
CQikDateEditor(), ConstructFromResourceL(), DrawContent(), GetColorUseListL(), GetMinimumAndMaximumAndInitialDatesForCalendarL(), HandleCommandL(), HandlePointerEventL(), HandleResourceChange(), InputCapabilities(), MapCommandHandler(), MinimumSize(), OfferKeyEventL(), PrepareForFocusGainL(), PrepareForFocusLossL(), SetDateFromCalendarAndDrawNow(), ~CQikDateEditor()
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(),
HasBorder(),
MakeVisible(),
MopSupplyObject(),
PositionChanged(),
RequestRelayout(),
SetAdjacent(),
SetBorder(),
SetContainerWindowL(),
SetDimmed(),
SetLayoutManagerL(),
SetNeighbor(),
SetParent(),
SetTextBaselineSpacing(),
SizeChanged(),
TextBaselineOffset(),
WriteInternalStateL(),
iBorder
Inherited from CQikTTimeEditor:
ConstructL(),
Draw(),
EDisableWrapTime,
EFiveMinuteSteps,
EForce24HourFormat,
EMirroredLayout,
EWithoutPopoutCalendar,
EWithoutPopoutPicker,
Font(),
GetMinimumAndMaximum(),
SetMinimumAndMaximum(),
SetTimeL(),
SetWrapTime(),
Time(),
anonymous,
iDateString,
iTimeString
Inherited from MEikBorderedControl:
ETypeId
Inherited from MObjectProvider:
MopGetObject(),
MopGetObjectNoChaining()
Inherited from MQikCommandHandler:
HandleAttemptDimmedSelectionL()
IMPORT_C CQikDateEditor();
Default constructor.
This function constructs an uninitialised CQikDateEditor . 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, CQikTTimeEditor::EQikTimeWithoutPopout may be passed to the aFlags variable.
IMPORT_C ~CQikDateEditor();
Destructor. The destructor frees any resources owned by the editor, prior to its destruction.
virtual IMPORT_C TSize MinimumSize();
Gets the minimum size of the control.
|
virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aResourceReader);
Second phase construction from a resource.
This function completes the construction of a newly-allocated date editor from a QIK_DATE_EDITOR resource. The minimum and maximum dates and the editor flags are read from the resource, and CQikTTimeEditor::ConstructL() is called with these settings. The initial date is set to the maximum date value.
|
virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;
Gets the list of logical colors employed in the drawing of 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. Colors or fonts for example.
|
virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
Offers key events to the controller.
|
|
virtual IMPORT_C void DrawContent(CWindowGc &aGc, const TRect &aRect) const;
Draw the control's contents.
|
virtual IMPORT_C void GetMinimumAndMaximumAndInitialDatesForCalendarL(TTime &aMinimumDate, TTime &aMaximumDate, TTime &aInitialDate) const;
Gets initialisation information for a CEikCalendar . The information includes the maximum and minimum permissible dates for display in a CEikCalendar , and the date which should be selected initially. This function is called from within CEikCalendar::ExecuteLD() to provide initial information for the calendar's display. Panics if aMinimumDate is not before aMaximumDate .
Implementations of this pure virtual function should alter the values of aMinimumDate , aMaximumDate and aInitialDate appropriately.
|
virtual IMPORT_C void SetDateFromCalendarAndDrawNow(const TTime &aDate);
Sets the observer's date from the calendar selection.
This function is called when a the user has chosen a date from the calendar. It should update the internal state of the observer object to reflect the chosen date, and also redraw the program's screen.
|
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 HandleCommandL(CQikCommand &aCommand);
Called when a softkey or menupane item has been selected.
|
|
protected: virtual IMPORT_C void HandlePointerEventL(const TPointerEvent &aPointerEvent);
Handles pointer events.
|
CreatePopupL()CCoeControl::HandlePointerEventL()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 .
|