#include <mw/eikclb.h>
class CEikColumnListBox : public CEikTextListBox |
Public Member Functions | |
---|---|
CEikColumnListBox() | |
virtual IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
virtual IMPORT_C void | ConstructL(const CCoeControl *, TInt) |
IMPORT_C void | EditItemL(TInt, TInt) |
IMPORT_C void | EnableExtendedDrawingL() |
IMPORT_C void | EnableStretching(const TBool) |
virtual IMPORT_C void | FocusChanged(TDrawNow) |
virtual IMPORT_C void | GetColorUseListL(CArrayFix< TCoeColorUse > &) |
virtual IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
virtual IMPORT_C void | HandleResourceChange(TInt) |
IMPORT_C CColumnListBoxItemDrawer * | ItemDrawer() |
virtual IMPORT_C CListBoxView * | MakeViewClassInstanceL() |
IMPORT_C CTextListBoxModel * | Model() |
IMPORT_C TTypeUid::Ptr | MopSupplyObject(TTypeUid) |
void | SetIconSizes() |
Protected Member Functions | |
---|---|
virtual IMPORT_C void | CreateItemDrawerL() |
virtual IMPORT_C void | CreateModelL() |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType | |
CEikListBox:@113 | |
CEikListBox:TFlags | |
CEikListBox:TReasonForFocusLost | |
CEikListBox:TScrollBarOwnerShip |
Column list box control.
This is a list box whose lines consist of cells that are grouped vertically into columns. The columns can be either textual or graphical, and column widths and fonts can be set explicitly through CColumnListBoxData.
In many cases list is in a container which sits on top of the control stack. The container receives all focus events and should hand them to the list too. E.g. void CContainer::FocusChanged( TDrawNow aDrawNow ) { ... some code ... if( iListBox ) iListBox->SetFocus( IsFocused(), aDrawNow ); }
When switching components programmatically, e.g. from one list to another in the same view, make sure that you remove focus from the other component.
In more complex cases you may have to add a dummy interceptor control to the top of control stack to hand focus events to list.
Make sure you handle resource changes correctly. If resource handle chain is solid it should reach CCoeControl::HandleResourceChange, which informs
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
Reimplemented from CEikTextListBox::ConstructFromResourceL(TResourceReader &)
Second-phase construction from a resource.
This function completes the construction of a column list box, initialising any members from the specified resource reader.
Parameter | Description |
---|---|
aReader | A resource file reader |
IMPORT_C void | ConstructL | ( | const CCoeControl * | aParent, |
TInt | aFlags = 0 | |||
) | [virtual] |
Reimplemented from CEikTextListBox::ConstructL(const CCoeControl *,TInt)
By default Symbian 2nd phase constructor is private.
This function completes the construction of a column list box.
Parameter | Description |
---|---|
aParent | Parent control for the column list box. |
aFlags | Flags for the column list box. |
IMPORT_C void | CreateItemDrawerL | ( | ) | [protected, virtual] |
Reimplemented from CEikTextListBox::CreateItemDrawerL()
This member is internal and not intended for use.
IMPORT_C void | EnableExtendedDrawingL | ( | ) |
This method needs to be called to enable extended drawing features such as skinning, pictograph drawing and marquee text in the listbox draw routine.
Methods CEikFormattedCellListBox::ConstructL and CEikFormattedCellListBox::ConstructFromResourceL call this method. So, you only need to call this if your listbox implementation does not call either of those.
This method can be safely called more than once. Item drawer must be created before calling this method, or a panic is raised.
IMPORT_C void | EnableStretching | ( | const TBool | aEnabled | ) |
Enables/disables list stretching. When a column list is stretched its layout is optimized to take advantage of the extra screen space. This is intented for devices with a large screen. This feature might be set as default by a product specific flag.
Item drawer must be created before calling this method.
Parameter | Description |
---|---|
aEnabled | ETrue to enable list stretching. |
IMPORT_C void | FocusChanged | ( | TDrawNow | aDrawNow | ) | [virtual] |
Reimplemented from CEikListBox::FocusChanged(TDrawNow)
From CEikListBox
Handles focus changes.
The function emphasises or de-emphasises the view as needed, and shows or hides the matcher cursor.
Parameter | Description |
---|---|
aDrawNow | If EDrawNow, a redraw is performed immediately |
IMPORT_C void | GetColorUseListL | ( | CArrayFix< TCoeColorUse > & | aColorUseList | ) | const [virtual] |
Reimplemented from CEikTextListBox::GetColorUseListL(CArrayFix< TCoeColorUse > &)const
From CCoeControl.
Not used in S60 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.
Parameter | Description |
---|---|
aColorUseList | The colour list |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
Reimplemented from CEikTextListBox::HandlePointerEventL(const TPointerEvent &)
From CCoeControl.
Handles pointer events.
This function gets called whenever a pointer event occurs in the control, i.e. when the pointer is within the control's extent, or when the control has grabbed the pointer. The control should implement this function to handle pointer events.
Note: events of type EButton1Down are processed before HandlePointerEventL() is called, in order to transfer keyboard focus to the control in which the EButton1Down event occurred.
If overriding HandlePointerEventL(), the implementation must include a base call to CCoeControl's HandlePointerEventL().
Parameter | Description |
---|---|
aPointerEvent | The pointer event |
IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [virtual] |
Reimplemented from CEikTextListBox::HandleResourceChange(TInt)
From CCoeControl.
Handles a change to the control's resources.
The types of resources handled are those which are shared across the environment, e.g. colours or fonts. For colour scheme changes, DrawDeferred() is called in order to redraw the control.
If overriding HandleResourceChange(), the implementation must include a base call to CCoeControl's HandleResourceChange().
Handles a change to the control's resources of type aType which are shared across the environment, e.g. colors or fonts.
Parameter | Description |
---|---|
aType | A message UID value |
IMPORT_C CColumnListBoxItemDrawer * | ItemDrawer | ( | ) | const |
Gets the object used by this list box to draw its items.
Returns: A pointer to the list box drawer.
IMPORT_C CListBoxView * | MakeViewClassInstanceL | ( | ) | [virtual] |
Reimplemented from CEikListBox::MakeViewClassInstanceL()
From CEikListBox.
Creates the list box view. The function is called by @ ConstructL() to create an instance of the appropriate list box view class for this list box. The returned instance is owned by this object, and does not have to have its second-phase constructor run. This function is called by CreateViewL().
Returns: Pointer to a newly constructed list box view for this object.
IMPORT_C CTextListBoxModel * | Model | ( | ) | const |
Reimplemented from CEikTextListBox::Model()const
Gets the list box model.
Returns: Pointer to the model used by this list box
IMPORT_C TTypeUid::Ptr | MopSupplyObject | ( | TTypeUid | aUid | ) |
Reimplemented from CCoeControl::MopSupplyObject(TTypeUid)
From CCoeControl.
Retrieves an object of the same type as that encapsulated in aId.
This function is used to allow controls to ask their owners for access to other objects that they own.
Other than in the case where NULL is returned, the object returned must be of the same object type - that is, the ETypeId member of the object pointed to by the pointer returned by this function must be equal to the iUid member of aUid.
Parameter | Description |
---|---|
aUid | An encapsulated object type ID. |
Returns: Pointer to the type UID of the wanted object.