|
|
|
Location:
EIKCHLST.H
Link against: eikctl.lib
class CEikChoiceListBase : public CEikBorderedControl, public MCoeControlObserver;
Base class for a choice list control.
A choice list is a CEikBorderedControl that enables users to select one or more items.
MCoeControlObserver - 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 borderCEikChoiceListBase - Base class for a choice list controlDefined in CEikChoiceListBase:
ActivateL(), AllowPopout(), Array(), Array(), CEikChoiceListBase(), CEikChoiceListBase_Reserved_1(), CalculateTextWidth(), ContentHasChangedL(), CreatePopoutL(), CurrentItem(), CurrentItemChangedL(), CursorPos(), DesCArray(), DesCArray(), DestroyArray(), DestroyPopout(), DisplayCursor(), Draw(), DrawContent(), DrawContentNow(), EArrayOwnedExternally, EIncrementalMatching, EMirrorOutput, ENoPopout, FocusChanged(), Font(), HandleControlEventL(), HandleInteractionConfirmedL(), HandlePointerEventL(), InputCapabilities(), KEikMaxMatchingBufLength, MatchTypedChar(), OfferKeyEventL(), PopoutCurrentItem(), ResetMatchBuf(), SetAdjacent(), SetArrayExternalOwnership(), SetArrayL(), SetArrayL(), SetCurrentItem(), SetIncrementalMatching(), SizeChanged(), TFlags, TextEdgeMargin(), TextRect(), UndoLastChar(), anonymous, iArray, iChoiceListFlags, iCurrentItem, iMatchBuf, iMaxDisplayChar, ~CEikChoiceListBase()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from CCoeControl:
AccumulatedZoom(),
ActivateGc(),
BackedUpWindow(),
Background(),
CapturesPointer(),
ClaimPointerGrab(),
CloseWindow(),
ComponentArrayExists(),
Components(),
ControlContext(),
ControlEnv(),
CopyControlContextFrom(),
CreateBackedUpWindowL(),
CreateWindowL(),
DeactivateGc(),
DrawBackground(),
DrawDeferred(),
DrawForeground(),
DrawNow(),
DrawableWindow(),
EAbsoluteZoom,
ERelativeZoom,
EnableDragEvents(),
FindBackground(),
FindFontProvider(),
GetColor(),
GetGc(),
GetTextDrawer(),
GrabbingComponent(),
HandleComponentControlsResourceChange(),
HandleRedrawEvent(),
HitTest(),
IgnoreEventsUntilNextPointerUp(),
Index(),
InitComponentArrayL(),
IsActivated(),
IsBackedUp(),
IsBeingDestroyed(),
IsBlank(),
IsDimmed(),
IsFocused(),
IsNonFocusing(),
IsReadyToDraw(),
IsVisible(),
LayoutManager(),
MaximumWidth(),
MopNext(),
Observer(),
OverrideColorL(),
OwnsWindow(),
Parent(),
Position(),
PositionRelativeToScreen(),
Rect(),
RecursivelyMergedInputCapabilities(),
ReportEventL(),
Reserved_2(),
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:
Border(),
ComponentControl(),
ConstructFromResourceL(),
CountComponentControls(),
GetColorUseListL(),
GetHelpContext(),
HandleControlArrayEventL(),
HandlePointerBufferReadyL(),
HandleResourceChange(),
HasBorder(),
MakeVisible(),
MinimumSize(),
MopSupplyObject(),
PositionChanged(),
PrepareForFocusGainL(),
PrepareForFocusLossL(),
RequestRelayout(),
SetBorder(),
SetContainerWindowL(),
SetDimmed(),
SetLayoutManagerL(),
SetNeighbor(),
SetParent(),
SetTextBaselineSpacing(),
TextBaselineOffset(),
WriteInternalStateL(),
iBorder
Inherited from MCoeControlObserver:
EEventInteractionRefused,
EEventPrepareFocusTransition,
EEventRequestCancel,
EEventRequestExit,
EEventRequestFocus,
EEventStateChanged,
MCoeControlObserver_Reserved1(),
MCoeControlObserver_Reserved2(),
TCoeEvent
Inherited from MEikBorderedControl:
ETypeId
Inherited from MObjectProvider:
MObjectProvider_Reserved1(),
MObjectProvider_Reserved2(),
MopGetObject(),
MopGetObjectNoChaining()
IMPORT_C ~CEikChoiceListBase();
Destructor.
Deletes the match buffer and array of choice list options.
protected: IMPORT_C CEikChoiceListBase();
Protected constructor.
Constructs a CEikBordered control with a rectangular border.
IMPORT_C TInt CurrentItem() const;
Gets the current item.
|
IMPORT_C void SetCurrentItem(TInt aItem);
Sets the specified item as the current item.
|
IMPORT_C void SetIncrementalMatching(TBool aAllowIncrementalMatching);
Set whether incremental matching is allowed.
|
IMPORT_C void SetArrayExternalOwnership(TBool aArrayOwnedExternally);
Sets whether the array is externally owned. This does impact both on the iArray and iIconArray.
|
IMPORT_C const MDesC16Array *Array() const;
Gets the array of choice list options.
|
IMPORT_C MDesC16Array *Array();
Gets the array of choice list options.
|
IMPORT_C void SetArrayL(TInt aResourceId);
Sets the array of choice list options. It can only contain texts, or if icons should be used each item (text) should start with a index. This index maps the text with the icon. Icon index -1 is used to specify that a item dont have a icon.
|
IMPORT_C void SetArrayL(MDesC16Array *aArray);
Sets the array of choice list options. It can only contain texts, or if icons should be used each item (text) should start with a index. This index maps the text with the icon. Icon index -1 is used to specify that a item dont have a icon.
|
IMPORT_C const CDesCArray *DesCArray() const;
Gets the array of choice list options.
|
IMPORT_C CDesCArray *DesCArray();
Gets the array of choice list options.
The returned array should never be altered externally. If the data is altered, it is up to the caller to make sure that the index is correctly updated by calling CEikChoiceListBase::SetCurrentItem(TInt aItem)
|
IMPORT_C void AllowPopout(TBool aAllow);
Sets whether a popout from the choice list is permitted.
|
static IMPORT_C TInt TextEdgeMargin();
Gets the text's left margin.
This function returns the value of the KEikChoiceListTextEdge constant.
|
protected: virtual IMPORT_C void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEventType);
Handles control events.
|
protected: virtual IMPORT_C void HandlePointerEventL(const TPointerEvent &aPointerEvent);
Handles pointer events.
|
protected: virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aEventCode);
Passes the specified key event to the control.
Used to navigate the choice list. Neither EKeyDownArrow events nor EKeyUpArrow events are consumed.
|
|
protected: virtual IMPORT_C void SizeChanged();
Responds to a change in the control's viewing rectangle.
Changes the size of the control's font if necessary.
CCoeControl::SizeChangedL()protected: virtual IMPORT_C void ActivateL();
Sets the choice list control as ready to be drawn.
Calls CCoeControl::ActivateL() .
protected: virtual IMPORT_C void FocusChanged(TDrawNow aDrawNow);
Handles focus changes.
The function emphasizes or de-emphasizes the view as needed, and shows or hides the matcher cursor.
|
protected: virtual IMPORT_C void SetAdjacent(TInt aAdjacent);
Sets the control's adjacency.
This function should be called, before drawing, whenever the choice list is adjacent another control as this affects both control's borders.
|
protected: virtual IMPORT_C void Draw(const TRect &aRect) const;
Prepares the control's borders for drawing then draws the control.
|
protected: virtual IMPORT_C TCoeInputCapabilities InputCapabilities() const;
Gets the control's input capabilities.
|
protected: IMPORT_C TInt CursorPos() const;
Gets the cursor's position.
|
protected: IMPORT_C TInt CalculateTextWidth() const;
Gets the maximum width of a single character in pixels.
|
protected: virtual IMPORT_C TInt PopoutCurrentItem() const;
Gets the index of the current item.
|
protected: IMPORT_C void DrawContentNow() const;
Draws the choice list's content.
Activates the graphics context, calls CEikChoiceList::DrawContent() and deactivates the graphics context.
protected: virtual IMPORT_C void HandleInteractionConfirmedL();
Sets a user's selection from a popout as the current item, or resets the old item as the current item if no selection was made.
Calls ContentHasChangedL() to update the display if a user has made a selection.
Called by HandleControlEventL() on a user's request to exit a popout.
protected: virtual IMPORT_C void CurrentItemChangedL();
For subclasses: called upon when the current choice list item has been altered.
protected: IMPORT_C void DestroyArray();
Deletes the array if it is not set as externally owned.
protected: virtual IMPORT_C void MatchTypedChar(TUint aCode);
Matches a character typed by a user to a choice list item and sets the item as current.
If there is no match between the typed character and a choice list item the typed character is discarded.
|
protected: IMPORT_C void UndoLastChar();
Removes one character from the matcher buffer, then finds the first item that matches the new buffer, if any. Redraws the list box to reflect the change.
protected: IMPORT_C void DisplayCursor();
Draws the text cursor into the choice list control at the current item.
Has no effect if the control does not have focus.
protected: IMPORT_C void ContentHasChangedL();
Redraws the choice list content and reports the event.
Calls CEikChoiceListBase::DrawContentNow() .
Reports the event by calling ReportEventL(MCoeControlObserver::EEventStateChanged) .
If a match buffer exists it is deleted and the cursor is displayed.
protected: virtual IMPORT_C const CFont *Font() const;
Gets the choice list's font.
|
protected: virtual IMPORT_C TRect TextRect() const;
Retrieves a TRect describing the rect inside the control available for e.g. text drawing.
|
TFlags
Specifies array ownership, incremental matching and whether popouts are permitted from the choice list.
|
protected: TInt iMaxDisplayChar;
The maximum number of characters to be displayed in a single line.