API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib
Required Capabilities
None
#include <eiklbx.h>
Inherits CEikBorderedControl, and MEikScrollBarObserver.
Inherited by CAknGrid, CEikSnakingListBox, and CEikTextListBox.
CEikListBox
implements the basics of a list box. It has a scroll bar frame, an item drawer, and a model, and reports events to a list
box observer.
List boxes display a number of items within a scrolling frame; the items in a list box which are visible at one time are represented by a list box view.
Writing derived classes:
This class may be derived from to provide specialisations of the basic list box behaviour. It is usual when subclassing CEikListBox to also provide specialisations of CListItemDrawer and CListBoxView for representing the data of such a list box effectively
Public Types |
|
enum | TFlags { EMultipleSelection = SLafListBox::EMultipleSelection, ENoExtendedSelection = SLafListBox::ENoExtendedSelection, EIncrementalMatching = SLafListBox::EIncrementalMatching, EPopout = SLafListBox::EPopout, ELeftDownInViewRect = SLafListBox::ELeftDownInViewRect, EItemDoubleClicked = SLafListBox::EItemDoubleClicked, EKeepModel = SLafListBox::EKeepModel, EScrollBarSizeExcluded = SLafListBox::EScrollBarSizeExcluded, EStateChanged = SLafListBox::EStateChanged, ECreateOwnWindow = SLafListBox::ECreateOwnWindow, ENoFirstLetterMatching = SLafListBox::ENoFirstLetterMatching, EPaintedSelection = SLafListBox::EPaintedSelection, ELoopScrolling = 0x1000, EEnterMarks = 0x2000, EShiftEnterMarks = 0x4000, EViewerFlag = 0x8000, EPageAtOnceScrolling = 0x8000, EDisableHighlight = 0x8000, ES60StyleMultiselection = SLafListBox::ES60StyleMultiselection, ES60StyleMarkable = SLafListBox::ES60StyleMarkable } |
Construction flags. More... |
|
enum | { KEikMaxMatchingBufferLength = 2 } |
enum | TScrollBarOwnerShip { ENotOwnedExternally = 0x0000, EOwnedExternally = 0x0001 } |
Indicates who owns the scroll bar. More... |
|
Public Member Functions |
|
IMPORT_C | ~CEikListBox () |
Destructor. |
|
IMPORT_C | CEikListBox () |
C++ default constructor. |
|
IMPORT_C void | ConstructL (MListBoxModel *aListBoxModel, CListItemDrawer *aListItemDrawer, const CCoeControl *aParent, TInt aFlags=0) |
Handles 2nd phase construction. |
|
IMPORT_C void | ConstructL (MListBoxModel *aListBoxModel, CListItemDrawer *aListItemDrawer, const CCoeControl *aParent, TGulBorder aBorder, TInt aFlags=0) |
Handles 2nd phase construction. |
|
virtual IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
Informs the CEikListbox of a key press. |
|
virtual IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
Handling of pointer event within the CEikListBox . |
|
virtual IMPORT_C void | SetContainerWindowL (const CCoeControl &aContainer) |
Creates an own window for the list box or draws the list box to an old window defined by the aContainer . |
|
virtual IMPORT_C TSize | MinimumSize () |
Checks the minimum size needed for the list box. |
|
virtual IMPORT_C void | SetDimmed (TBool aDimmed) |
This function sets a flag within the control which indicates whether or not the control is dimmed (greyed out). |
|
virtual IMPORT_C void | HandleScrollEventL (CEikScrollBar *aScrollBar, TEikScrollEvent aEventType) |
Used for scrolling through the items in the list box. |
|
IMPORT_C MListBoxModel * | Model () const |
Gets the list box data model. |
|
IMPORT_C CListBoxView * | View () const |
Gets the list box view. |
|
IMPORT_C TInt | TopItemIndex () const |
Gets the index number of the top item. |
|
virtual IMPORT_C void | SetTopItemIndex (TInt aItemIndex) const |
Sets the selected item to be the top item. |
|
IMPORT_C TInt | BottomItemIndex () const |
Gets for the bottom items index. |
|
IMPORT_C TInt | CurrentItemIndex () const |
Gets the index number of the selected item. |
|
IMPORT_C void | SetCurrentItemIndex (TInt aItemIndex) const |
Changes the current item index to the selected item index. |
|
IMPORT_C void | SetCurrentItemIndexAndDraw (TInt aItemIndex) const |
Changes the current item index to the selected item index and redraws the view. |
|
IMPORT_C const CListBoxView::CSelectionIndexArray * | SelectionIndexes () const |
Gets for list boxes selection indexes. |
|
IMPORT_C void | SetSelectionIndexesL (CListBoxView::CSelectionIndexArray *aArrayOfSelectionIndexes) |
Assigns a array of selection indexes for the list box. |
|
IMPORT_C void | ClearSelection () |
Clears the selection from the view. |
|
IMPORT_C void | HandleItemAdditionL () |
Handles the addition of item to the list box. |
|
IMPORT_C void | HandleItemRemovalL () |
Handles the removal of an item from the list box. |
|
IMPORT_C void | HandleItemAdditionL (CArrayFix< TInt > &aArrayOfNewIndexesAfterAddition) |
Handles the addition of new items to the list box and updates selection indexes array. |
|
IMPORT_C void | HandleItemRemovalL (CArrayFix< TInt > &aArrayOfOldIndexesBeforeRemoval) |
Handles the removal of items to the list box and updates selection indexes array. |
|
IMPORT_C void | Reset () |
Deletes the item editor. |
|
IMPORT_C void | AddItemChangeObserverL (MListBoxItemChangeObserver *aObserver) |
Adds an item change observer to the listbox. |
|
IMPORT_C TBool | RemoveItemChangeObserver (MListBoxItemChangeObserver *aObserver) |
Removes an item change observer from the listbox. |
|
virtual IMPORT_C void | SetItemHeightL (TInt aHeight) |
Sets the height of the item to the selected value. |
|
IMPORT_C TInt | ItemHeight () const |
Gets height of the item. |
|
IMPORT_C CEikScrollBarFrame * | CreateScrollBarFrameL (TBool aPreAlloc=EFalse) |
Creates a scrollbar frame. |
|
IMPORT_C void | SetScrollBarFrame (CEikScrollBarFrame *aScrollBarFrame, TScrollBarOwnerShip aOwnerShip) |
Sets the given scroll bar frame for the list box with the given ownership leve. |
|
IMPORT_C CEikScrollBarFrame *const |
ScrollBarFrame () |
Gets pointer for the scroll bar frame. |
|
virtual IMPORT_C void | UpdateScrollBarsL () |
Updates all scroll bars. |
|
IMPORT_C void | CalculatePopoutRect (TInt aTargetItemIndex, TInt aTargetYPos, TRect &aListBoxRect, TInt aMinHeightInNumOfItems=1) |
Gets the size of the rectangle required to display a pop out. |
|
IMPORT_C TSize | CalcSizeInPixels (TInt aWidthAsNumOfChars, TInt aHeightAsNumOfItems) const |
Gets the size of the list box in pixels based on the height of the list box in items and the length of the items in characters.
|
|
IMPORT_C TInt | CalcWidthBasedOnNumOfChars (TInt aNumOfChars) const |
Gets the width of the list box in pixels based on the width of the list box in characters. |
|
IMPORT_C TInt | CalcHeightBasedOnNumOfItems (TInt aNumOfItems) const |
Gets the height of the list box in pixels based on the width of the list box in characters. |
|
IMPORT_C TInt | CalcWidthBasedOnRequiredItemWidth (TInt aTextWidthInPixels) const |
Gets the width of the list box in pixels based on the width of the list box text in pixels. |
|
IMPORT_C void | DrawItem (TInt aItemIndex) const |
Draws a list box item, first scrolling the list to make it visible if it is not already. |
|
IMPORT_C void | ScrollToMakeItemVisible (TInt aItemIndex) const |
Makes an item visible in the list, scrolling it if necessary. |
|
IMPORT_C void | RedrawItem (TInt aItemIndex) |
Redraws list item. |
|
IMPORT_C void | SetListBoxObserver (MEikListBoxObserver *aObserver) |
Sets the observer for the list box. |
|
IMPORT_C TInt | VerticalInterItemGap () const |
Gets the size of the vertical gap between items. |
|
IMPORT_C void | SetLaunchingButton (CEikButtonBase *aButton) |
Provides a call back mechanism to the button which just launched a popout menu. |
|
IMPORT_C void | SetItemEditor (MEikListBoxEditor *aEditor) |
Selects an item editor for the list box. |
|
IMPORT_C void | ResetItemEditor () |
Resets the list boxes item editor. |
|
IMPORT_C MEikListBoxEditor * | ItemEditor () |
Gets item editor for the current class. |
|
virtual IMPORT_C void | EditItemL (TInt aMaxLength) |
Creates an item editor and starts editing the current item. |
|
IMPORT_C void | StopEditingL (TBool aUpdateModel) |
Stops editing and deletes the item editor. |
|
virtual IMPORT_C TInt | ShortcutValueForNextList () |
No Implementation. |
|
virtual IMPORT_C void | SetShortcutValueFromPrevList (TInt aValue) |
No Implementation. |
|
IMPORT_C TRect | HighlightRect () const |
Gets the position and the size of the list box. |
|
virtual IMPORT_C void | GetColorUseListL (CArrayFix< TCoeColorUse > &aColorUseList) const |
From CCoeControl . |
|
virtual IMPORT_C void | HandleResourceChange (TInt aType) |
From CCoeControl . |
|
virtual IMPORT_C void | ActivateL () |
From CCoeControl . |
|
IMPORT_C TCoeInputCapabilities | InputCapabilities () const |
From CCoeControl . |
|
IMPORT_C TInt | EventModifiers () |
IMPORT_C TBool | IsMultiselection () |
IMPORT_C CEikScrollBarFrame * | CreateScrollBarFrameL (TBool aPreAlloc, TBool aRemote) |
Creates a scrollbar for the listbox. |
|
IMPORT_C CEikScrollBarFrame * | CreateScrollBarFrameL (TBool aPreAlloc, TBool aRemote, TBool aWindowOwning) |
Creates a scrollbar for the listbox. |
|
IMPORT_C void | EnableMSKObserver (TBool aEnable) |
By default markable listbox has middle softkey observer, which handles Mark / Unmark functionality. |
|
void | DoShiftMSKMarkingL () |
Called from MSK observer when shift+MSK have been pressed. |
|
void | InformMSKButtonGroupDeletion () |
This method is only called by CEikButtonGroupContainer when MSK observer is enabled and CEikButtonGroupContainer is deleted. |
|
IMPORT_C void | AddSelectionObserverL (MListBoxSelectionObserver *aObserver) |
Adds a selection (item marking) observer to the listbox. |
|
IMPORT_C void | RemoveSelectionObserver (MListBoxSelectionObserver *aObserver) |
Removes a selection (item marking) observer from the listbox. |
|
void | ChangeSelectionMode (TBool aEnable) |
This switches listbox into selection mode. |
|
Protected Types |
|
enum | TReasonForFocusLost { EFocusLostToExternalControl, EFocusLostToInternalEditor } |
Used for indicating the reason why the item lost focus. More... |
|
Protected Member Functions |
|
virtual IMPORT_C void | FocusChanged (TDrawNow aDrawNow) |
Responds to a change in focus. |
|
virtual IMPORT_C void | SizeChanged () |
Responds to changes to the size and position of the contents of this control. |
|
virtual IMPORT_C void | HandleViewRectSizeChangeL () |
Handles the change in case that the size of the view rectangle for the list box changes. |
|
virtual IMPORT_C TInt | CountComponentControls () const |
Gets the number of controls contained in a compound control. |
|
virtual IMPORT_C CCoeControl * | ComponentControl (TInt aIndex) const |
Gets an indexed component of a compound control. |
|
IMPORT_C void | CreateMatchBufferL () |
Creates a buffer for checking how well two strings match up. |
|
IMPORT_C void | ClearMatchBuffer () const |
Empties the match buffer . |
|
IMPORT_C void | MatchTypedCharL (TUint aCode) |
Checks matching for the given character. |
|
IMPORT_C void | UndoLastChar () |
Undoes changes from the match buffer that have been caused by the last match with a character. |
|
IMPORT_C TBool | LastCharMatched () const |
Checks if the last character matched with the string. |
|
virtual IMPORT_C void | UpdateScrollBarThumbs () const |
Updates the position of this list box’s scroll bars’ thumbs to reflect the horizontal and vertical position of the list view
within the list. |
|
virtual IMPORT_C TInt | HorizScrollGranularityInPixels () const |
Get horizontal scroll granularity in pixels. |
|
virtual IMPORT_C TInt | HorizontalNudgeValue () const |
Gets the number of grains to move horizontally when a nudge button is tapped. |
|
virtual IMPORT_C void | AdjustTopItemIndex () const |
Called by various functions of this class to ensure that the top item index is always a sane value. |
|
IMPORT_C void | SimulateArrowKeyEventL (TKeyCode aKeyCode) |
Simulates an arrow key event. |
|
virtual IMPORT_C void | HandleLeftArrowKeyL (CListBoxView::TSelectionMode aSelectionMode) |
Handles a left arrow key event. |
|
virtual IMPORT_C void | HandleRightArrowKeyL (CListBoxView::TSelectionMode aSelectionMode) |
Handles a right arrow key event. |
|
IMPORT_C void | RestoreCommonListBoxPropertiesL (TResourceReader &aReader) |
Restores the list box properties shared by all subclasses from a resource reader. |
|
virtual IMPORT_C void | ConstructL (const CCoeControl *aParent, TInt aFlags=0) |
Second-phase constructor. |
|
virtual IMPORT_C void | CreateViewL () |
Completes the list box view’s construction. |
|
virtual IMPORT_C CListBoxView * | MakeViewClassInstanceL () |
Creates the list box view. |
|
IMPORT_C void | SetViewRectFromClientRect (const TRect &aClientRect) |
Sets the view rectangle from the client rectangle making sure a whole number of items is displayed. |
|
virtual IMPORT_C void | RestoreClientRectFromViewRect (TRect &aClientRect) const |
Calculates the client area. |
|
virtual IMPORT_C TInt | AdjustRectHeightToWholeNumberOfItems (TRect &aRect) const |
Rounds down the height of the rectangle (if necessary) so that only a whole number of items can be displayed inside the list
box. |
|
IMPORT_C TMargins8 | ListBoxMargins () const |
Gets list box margins. |
|
IMPORT_C TInt | HorizontalMargin () const |
This function gets the horizontal margin. |
|
IMPORT_C TInt | VerticalMargin () const |
This function gets the vertical margin. |
|
IMPORT_C void | SetHorizontalMargin (TInt aMargin) |
Sets the horizontal margin. |
|
IMPORT_C void | SetVerticalMargin (TInt aMargin) |
Sets the vertical margin. |
|
IMPORT_C RIncrMatcherBase * | MatchBuffer () const |
Gets a pointer to the match buffer. |
|
IMPORT_C TInt | ViewRectHeightAdjustment () const |
Gets the view rectangle height adjustment. |
|
IMPORT_C TRgb | BackColor () const |
Gets the background colour. |
|
IMPORT_C void | SetViewRectHeightAdjustment (TInt aAdjustment) |
Sets the view rectangle height adjustment. |
|
virtual IMPORT_C void | ReportListBoxEventL (MEikListBoxObserver::TListBoxEvent aEvent) |
Reports a list box event to any observer of this list box. |
|
virtual IMPORT_C void | Draw (const TRect &aRect) const |
Redraws the specified area of this list box into the specified rectangle. |
|
IMPORT_C void | ClearMargins () const |
Clears the list box margins. |
|
virtual IMPORT_C void | UpdateCurrentItem (TInt aItemIndex) const |
Sets an item as the current item, even if it is not currently visible. |
|
virtual IMPORT_C void | HandleDragEventL (TPoint aPointerPos) |
Handles drag events. |
|
IMPORT_C TBool | ItemExists (TInt aItemIndex) const |
Tests whether an item exists. |
|
IMPORT_C void | DrawMatcherCursor () const |
Draws the matcher cursor in the correct location for the current match. |
|
IMPORT_C void | UpdateViewColors () |
Updates the view colours in line with the colours in effect for the Uikon environment. |
|
IMPORT_C void | UpdateItemDrawerColors () |
Updates the item drawer colours in line with the colours in effect for the Uikon environment. |
|
IMPORT_C void | FireItemChange () |
Notifies item change observers about item change. |
|
IMPORT_C void | SetReasonForFocusLostL (TReasonForFocusLost aReasonForFocusLost) |
Sets the reason for the list box’s loss of focus. |
|
IMPORT_C TReasonForFocusLost | ReasonForFocusLostL () |
Gets the reason for the list box’s loss of focus. |
|
IMPORT_C TBool | IsMatchBuffer () const |
Tests whether the list box match buffer exists. |
|
void | CheckCreateExtensionL () |
Checks for a list box extension. |
|
TBool | CheckCreateExtension () |
Checks for a list box extension. |
|
void | CheckCreateBufferL () |
Checks the list box match buffer exists. |
|
CMatchBuffer * | Buffer () const |
Gets the list box match buffer. |
|
IMPORT_C void | CreateScrollBarFrameLayout (TEikScrollBarFrameLayout &aLayout) const |
Creates a scroll bar frame layout according to aLayout . |
|
void | UpdateMarkUnmarkMSKL () const |
If MiddleSoftKey is either Mark or Unmark, this method sets MSK according to the current item selection state. |
|
Static Protected Member Functions |
|
static IMPORT_C TInt | InterItemGap () |
Gets the vertical gap between elements in the list box. |
|
Protected Attributes |
|
TInt | iListBoxFlags |
Flags for this list box. |
|
CListBoxView * | iView |
This List box's view. |
|
CListItemDrawer * | iItemDrawer |
Item drawer for this list box. |
|
MListBoxModel * | iModel |
Data model for this list box. |
|
TInt | iItemHeight |
Height of each item in the list. |
|
CEikScrollBarFrame * | iSBFrame |
The scroll bar used by this control. |
|
TScrollBarOwnerShip | iSBFrameOwned |
Identifies if the scroll bar is owned by this list. |
|
TInt | iRequiredHeightInNumOfItems |
The required height of this list box expressed in terms of a number of items. |
|
CEikButtonBase * | iLaunchingButton |
Defines which button launched the popout. |
|
MEikListBoxObserver * | iListBoxObserver |
The button which just launched a popout menu. |
|
Friends |
|
class | CListBoxExt |
class | AknListBoxShortCutsImplementation |
class | AknListBoxLayouts |
|
|
|
Used for indicating the reason why the item lost focus. |
|
Indicates who owns the scroll bar. |
|
Destructor. |
|
C++ default constructor. |
|
From Sets the control as ready to be drawn. The application should call this function on all controls that are not components in a compound control. The purpose of this function is that controls are not always ready to be drawn as soon as they have been constructed. For example, it may not be possible to set the control's extent during construction, but its extent should always be set before it is drawn. Similarly, if a control is to be made invisible, this should be done before it is activated.
The default implementation sets a flag in the control to indicate it is ready to be drawn. If the control is a compound control,
the default implementation also calls
Notes:
This function can be overridden. This is useful for doing late initialisation of the control, using information that was not
available at the time the control was created. For example, a text editor might override
If overriding |
|
Adds an item change observer to the listbox. Duplicates are not checked (i.e. adding the same observer multiple times is not prevented).
|
|
Adds a selection (item marking) observer to the listbox. Duplicates are not checked (i.e. adding the same observer multiple times is not prevented).
|
|
Rounds down the height of the rectangle (if necessary) so that only a whole number of items can be displayed inside the list box.
Reimplemented in CAknGrid, CAknColumnListBox, CAknFormGraphicStyleListBox, CEikFormattedCellListBox, and CEikSnakingListBox. |
|
Called by various functions of this class to ensure that the top item index is always a sane value.
The implementation in Reimplemented in CAknGrid, and CEikSnakingListBox. |
|
Gets the background colour.
|
|
Gets for the bottom items index.
|
|
Gets the list box match buffer.
|
|
Gets the height of the list box in pixels based on the width of the list box in characters. Returns the number of items times the height of the font in pixels.
|
|
Gets the size of the list box in pixels based on the height of the list box in items and the length of the items in characters.
Returns
|
|
Gets the size of the rectangle required to display a pop out.
|
|
Gets the width of the list box in pixels based on the width of the list box in characters. Returns the number of characters times the width of a character in pixels.
|
|
Gets the width of the list box in pixels based on the width of the list box text in pixels. returns the width of the whole list box in pixels, which includes the text width and the width of elements in the list box that have an effect on the overall width.
|
|
This switches listbox into selection mode. Basicly only changes MSK and informs selection observers about the change.
|
|
Checks the list box match buffer exists. If a buffer does not exist, one is created. |
|
Checks for a list box extension. Creates one if not present.
|
|
Checks for a list box extension. Attempts to create one if not present. This function leaves if an extension cannot be created. |
|
Clears the list box margins. The list box is redrawn only if redraws are enabled for the list box view. |
|
Empties the match buffer . |
|
Clears the selection from the view. |
|
Gets an indexed component of a compound control.
There are two ways to implement a compound control. One way is to override this function. The other way is to use the Note: Within a compound control each component control is identified by an index, where the index depends on the order the controls were added: the first is given an index of 0, the next an index of 1, and so on.
Reimplemented in AknListBoxLinesTemplate< CEikSettingsListBox >, AknListBoxLinesTemplate< CAknColumnListBox >, and AknListBoxLinesTemplate< CEikFormattedCellListBox >. |
|
Second-phase constructor.
This protected form is overridden non-virtually by the second-phase constructors of each subclass, and should be invoked by
them using
Reimplemented in CAknGrid, CEikColumnListBox, CEikFormattedCellListBox, CEikTextListBox, and CEikSnakingTextListBox. |
|
Handles 2nd phase construction.
Sets the border that is to be drawn outside the list box. Request another
|
|
Handles 2nd phase construction.
Sets list box model and list item drawer. Request another
|
|
Gets the number of controls contained in a compound control.
There are two ways to implement a compound control. One way is to override this function. The other way is to use the
Reimplemented in CAknGrid, AknListBoxLinesTemplate< CEikSettingsListBox >, AknListBoxLinesTemplate< CAknColumnListBox >, and AknListBoxLinesTemplate< CEikFormattedCellListBox >. |
|
Creates a buffer for checking how well two strings match up. |
|
Creates a scrollbar for the listbox. The caller may choose if the scrollbar is requested remotely via the mop chain from parent control
|
|
Creates a scrollbar for the listbox. The caller may choose if the scrollbar is requested remotely via the mop chain from parent control
|
|
Creates a scrollbar frame.
|
|
Creates a scroll bar frame layout according to
|
|
Completes the list box view’s construction.
This function is called by |
|
Gets the index number of the selected item.
|
|
Called from MSK observer when shift+MSK have been pressed.
|
|
Redraws the specified area of this list box into the specified rectangle.
Reimplemented from CEikBorderedControl. Reimplemented in CAknGMSStyleGrid, CAknSetStyleListBox, AknListBoxLinesTemplate< CEikSettingsListBox >, AknListBoxLinesTemplate< CAknColumnListBox >, and AknListBoxLinesTemplate< CEikFormattedCellListBox >. |
|
Draws a list box item, first scrolling the list to make it visible if it is not already.
|
|
Draws the matcher cursor in the correct location for the current match.
If there is no match buffer, this function returns immediately; otherwise the cursor is drawn on the current item using
A list box control’s matcher cursor is an on-screen cursor which is drawn to indicate to the user the location of the current
text. Whether the cursor is drawn is dependent on the Note, that CListBoxView::DrawMatcherCursor() is not implemented in S60. |
|
Creates an item editor and starts editing the current item.
The editor can edit the current item up to a maximum length of The function only creates a new editor if one does not already exist.
|
|
By default markable listbox has middle softkey observer, which handles Mark / Unmark functionality. By this method, the caller may disable default observer.
|
|
|
|
Notifies item change observers about item change.
Subclasses must call this method if they have implemented item handling functions (e.g. |
|
Responds to a change in focus.
This is called whenever the control gains or loses focus, as a result of a call to
The default implementation is empty, and should be overridden by the
Reimplemented in CAknGrid, CEikColumnListBox, and CEikFormattedCellListBox. |
|
From
Gets the list of logical colours employed in the drawing of the control, paired with an explanation of how they are used.
Appends the list to
Reimplemented from CEikBorderedControl. Reimplemented in CEikColumnListBox, CEikFormattedCellListBox, CEikSnakingListBox, CEikTextListBox, and CEikSnakingTextListBox. |
|
Handles drag events.
This function is called by
Reimplemented in CAknGrid, and CEikSnakingListBox. |
|
Handles the addition of new items to the list box and updates selection indexes array. NOTE. This algorithm can not handle position of the list highlight nor can it update the top item index correctly.
|
|
Handles the addition of item to the list box. Reimplemented in CAknGrid. |
|
Handles the removal of items to the list box and updates selection indexes array. NOTE. This algorithm cannot handle position of the list highlight nor can it update the top item index correctly.
|
|
Handles the removal of an item from the list box. Reimplemented in CAknGrid. |
|
Handles a left arrow key event.
The method used to handle the event depends on the selection mode, e.g. whether the user has pressed the
Reimplemented in CEikSnakingListBox. |
|
Handling of pointer event within the Used for e.g. selecting an item from the list box.
Reimplemented from CEikBorderedControl. Reimplemented in CAknGMSStyleGrid, CAknGrid, CAknColumnListBox, CAknSingleStyleListBox, CAknSingleGraphicStyleListBox, CAknSingleGraphicHeadingStyleListBox, CAknSingleLargeStyleListBox, CAknDoubleNumberStyleListBox, CAknDoubleTimeStyleListBox, CAknDouble2GraphicStyleListBox, CAknDouble2LargeStyleListBox, CAknSettingStyleListBox, CAknSinglePopupMenuStyleListBox, CAknSingleGraphicPopupMenuStyleListBox, CAknSingleGraphicBtPopupMenuStyleListBox, CAknSingleHeadingPopupMenuStyleListBox, CAknSingleGraphicHeadingPopupMenuStyleListBox, CAknDoublePopupMenuStyleListBox, CAknSinglePopupSubmenuStyleListBox, CAknDoubleLargeGraphicPopupMenuStyleListBox, CAknDouble2PopupMenuStyleListBox, CAknSingle2GraphicPopupMenuStyleListBox, CAknDoubleGraphicPopupMenuStyleListBox, CAknSetStyleListBox, CAknFormGraphicStyleListBox, CAknFormGraphicWideStyleListBox, CAknPinbStyleGrid, CAknQdialStyleGrid, CAknCaleMonthStyleGrid, CAknPopupSettingList, CEikColumnListBox, CEikFormattedCellListBox, CEikSnakingListBox, CEikSettingsListBox, CEikTextListBox, and CEikSnakingTextListBox. |
|
From
Handles a change to the list box’s resources of type
Reimplemented from CEikBorderedControl. Reimplemented in CAknGrid, CAknPopupSettingList, CEikColumnListBox, CEikFormattedCellListBox, CEikSnakingListBox, CEikTextListBox, and CEikSnakingTextListBox. |
|
Handles a right arrow key event.
The method used to handle the event depends on the selection mode, e.g. whether the user has pressed the
Reimplemented in CEikSnakingListBox. |
|
Used for scrolling through the items in the list box.
Implements MEikScrollBarObserver. Reimplemented in CAknGrid. |
|
Handles the change in case that the size of the view rectangle for the list box changes. Reimplemented in CAknGrid, and CEikSnakingListBox. |
|
Gets the position and the size of the list box.
|
|
This function gets the horizontal margin.
Use
|
|
Gets the number of grains to move horizontally when a nudge button is tapped. For simple list boxes, this value is a fraction of the width of the client area.
Reimplemented in CAknGrid, and CEikSnakingListBox. |
|
Get horizontal scroll granularity in pixels. The granularity is the minimum size of a horizontal move of the client area.
Reimplemented in CAknGrid, and CEikSnakingListBox. |
|
This method is only called by CEikButtonGroupContainer when MSK observer is enabled and CEikButtonGroupContainer is deleted.
|
|
From Gets the input capabilities of the control and all its components.
|
|
Gets the vertical gap between elements in the list box.
|
|
Tests whether the list box match buffer exists.
|
|
|
Gets item editor for the current class.
|
|
Tests whether an item exists.
|
|
Gets height of the item.
|
|
Checks if the last character matched with the string.
|
|
Gets list box margins.
|
|
Creates the list box view.
The function is called by
Reimplemented in CAknGMSStyleGrid, CAknGrid, CAknColumnListBox, CAknSingleGraphicHeadingStyleListBox, CAknSetStyleListBox, CEikColumnListBox, CEikFormattedCellListBox, CEikSnakingListBox, and CEikSettingsListBox. |
|
Gets a pointer to the match buffer. Returns NULL if the match buffer does not exist.
|
|
Checks matching for the given character.
|
|
Checks the minimum size needed for the list box.
Reimplemented in CAknGMSStyleGrid, CAknSingleStyleListBox, CAknSingleGraphicStyleListBox, CAknSingleGraphicHeadingStyleListBox, CAknSingleLargeStyleListBox, CAknDoubleNumberStyleListBox, CAknDoubleTimeStyleListBox, CAknDouble2GraphicStyleListBox, CAknDouble2LargeStyleListBox, CAknSettingStyleListBox, CAknSinglePopupMenuStyleListBox, CAknSingleGraphicPopupMenuStyleListBox, CAknSingleHeadingPopupMenuStyleListBox, CAknSingleGraphicHeadingPopupMenuStyleListBox, CAknDoublePopupMenuStyleListBox, CAknSinglePopupSubmenuStyleListBox, CAknDoubleLargeGraphicPopupMenuStyleListBox, CAknDouble2PopupMenuStyleListBox, CAknSingle2GraphicPopupMenuStyleListBox, CAknDoubleGraphicPopupMenuStyleListBox, CAknSetStyleListBox, CAknFormGraphicStyleListBox, CAknFormGraphicWideStyleListBox, CAknPinbStyleGrid, CAknQdialStyleGrid, and CAknCaleMonthStyleGrid. |
|
Gets the list box data model.
Reimplemented in CAknGrid, CEikColumnListBox, CEikFormattedCellListBox, CEikTextListBox, and CEikSnakingTextListBox. |
|
Informs the
Reimplemented in CAknGMSStyleGrid, and CAknGrid. |
|
Gets the reason for the list box’s loss of focus.
|
|
Redraws list item.
|
|
Removes an item change observer from the listbox.
|
|
Removes a selection (item marking) observer from the listbox.
|
|
Reports a list box event to any observer of this list box. This function returns immediately if no observer is set.
|
|
Deletes the item editor. |
|
Resets the list boxes item editor. |
|
Calculates the client area.
This method is called by various functions of this class to recalculate the extent of the client area from
Reimplemented in CAknGrid, and CEikSnakingListBox. |
|
Restores the list box properties shared by all subclasses from a resource reader.
This function is not called within
|
|
Gets pointer for the scroll bar frame.
|
|
Makes an item visible in the list, scrolling it if necessary.
|
|
Gets for list boxes selection indexes.
|
|
Creates an own window for the list box or draws the list box to an old window defined by the
|
|
Changes the current item index to the selected item index. Does not redraw the list. If the item was not previously visible it is set to the top item in the view.
|
|
Changes the current item index to the selected item index and redraws the view.
|
|
This function sets a flag within the control which indicates whether or not the control is dimmed (greyed out).
|
|
Sets the horizontal margin.
|
|
Selects an item editor for the list box.
|
|
Sets the height of the item to the selected value.
Reimplemented in CAknGrid. |
|
Provides a call back mechanism to the button which just launched a popout menu.
|
|
Sets the observer for the list box.
|
|
Sets the reason for the list box’s loss of focus. This is required so the list box can determine whether loss of focus is due to an external control or an internal component.
|
|
Sets the given scroll bar frame for the list box with the given ownership leve.
|
|
Assigns a array of selection indexes for the list box.
|
|
No Implementation.
|
|
Sets the selected item to be the top item.
Reimplemented in CAknGrid, and CEikSnakingListBox. |
|
Sets the vertical margin.
|
|
Sets the view rectangle from the client rectangle making sure a whole number of items is displayed.
|
|
Sets the view rectangle height adjustment.
|
|
No Implementation.
|
|
Simulates an arrow key event.
If the list box flags include
|
|
Responds to changes to the size and position of the contents of this control. For a simple control this might include text or graphics. For a compound control it sets the size and position of the components. It has an empty default implementation and should be implemented by the CCoeControl-derived class.
The function is called whenever Reimplemented in CAknGMSStyleGrid, CAknGrid, CAknSingleStyleListBox, CAknSingleGraphicStyleListBox, CAknSingleGraphicHeadingStyleListBox, CAknSingleLargeStyleListBox, CAknDoubleNumberStyleListBox, CAknDoubleTimeStyleListBox, CAknDouble2GraphicStyleListBox, CAknDouble2LargeStyleListBox, CAknSettingStyleListBox, CAknSinglePopupMenuStyleListBox, CAknSingleGraphicPopupMenuStyleListBox, CAknSingleGraphicBtPopupMenuStyleListBox, CAknSingleHeadingPopupMenuStyleListBox, CAknSingleGraphicHeadingPopupMenuStyleListBox, CAknDoublePopupMenuStyleListBox, CAknSinglePopupSubmenuStyleListBox, CAknDoubleLargeGraphicPopupMenuStyleListBox, CAknDouble2PopupMenuStyleListBox, CAknSingle2GraphicPopupMenuStyleListBox, CAknDoubleGraphicPopupMenuStyleListBox, CAknSetStyleListBox, CAknFormGraphicStyleListBox, CAknFormGraphicWideStyleListBox, CAknPinbStyleGrid, CAknQdialStyleGrid, CAknCaleMonthStyleGrid, CEikSnakingListBox, AknListBoxLinesTemplate< CEikSettingsListBox >, AknListBoxLinesTemplate< CAknColumnListBox >, and AknListBoxLinesTemplate< CEikFormattedCellListBox >. |
|
Stops editing and deletes the item editor.
The function reports an
|
|
Gets the index number of the top item.
|
|
Undoes changes from the match buffer that have been caused by the last match with a character. |
|
Sets an item as the current item, even if it is not currently visible. Redraws the list box to reflect the change. This should not be called from within another Draw function.
|
|
Updates the item drawer colours in line with the colours in effect for the Uikon environment. Has no effect if there is no item drawer. |
|
If MiddleSoftKey is either Mark or Unmark, this method sets MSK according to the current item selection state. |
|
Updates all scroll bars. Reimplemented in CAknGrid. |
|
Updates the position of this list box’s scroll bars’ thumbs to reflect the horizontal and vertical position of the list view within the list. Reimplemented in CAknGrid. |
|
Updates the view colours in line with the colours in effect for the Uikon environment. Has no effect if there is no view. |
|
Gets the size of the vertical gap between items. This space is used by the view to allow a box to be drawn around each item.
|
|
This function gets the vertical margin.
This function is deprecated, use
|
|
Gets the list box view.
|
|
Gets the view rectangle height adjustment.
These are the adjustments that were made to the view rectangle when the
|
|
|
|
|
Item drawer for this list box. |
|
Height of each item in the list. |
|
Defines which button launched the popout. |
|
Flags for this list box. |
|
The button which just launched a popout menu. |
|
Data model for this list box. |
|
The required height of this list box expressed in terms of a number of items. |
|
The scroll bar used by this control. |
|
Identifies if the scroll bar is owned by this list. |
|
This List box's view. |