API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib
Required Capabilities
None
#include <eikclbd.h>
Inherits CListBoxData.
CColumnListBoxData
class handles the data required to draw a column list box.
The class performs drawing for CColumnListBoxItemDrawer
. Columns are numbered from 0 from left to right, and extra column data can be set for each.
N.B.: The standard width of a column drawn by CColumnListListBoxData
is 0 pixels, so at the very least a column width should be set for each column in a column list box.
This class is not intended for user derivation.
Public Member Functions |
|
IMPORT_C | ~CColumnListBoxData () |
Destructor. |
|
IMPORT_C TInt | LastColumn () const |
Gets the index of the last defined column. |
|
IMPORT_C TInt | ColumnWidthPixel (TInt aColumn) const |
Gets the specified column’s width in pixels. |
|
IMPORT_C void | SetColumnWidthPixelL (TInt aColumn, TInt aWidth) |
Sets the specified column’s width in pixels. |
|
IMPORT_C TInt | ColumnHorizontalGap (TInt aColumn) const |
Not used in S60. |
|
IMPORT_C void | SetColumnHorizontalGapL (TInt aColumn, TInt aGap) |
Not used in S60. |
|
IMPORT_C TInt | ColumnBaselinePos (TInt aColumn) const |
Gets column's baseline. |
|
IMPORT_C void | SetColumnBaselinePosL (TInt aColumn, TInt aPos) |
Sets columns baseline position. |
|
IMPORT_C TMargins | ColumnMargins (TInt aColumn) const |
Gets column's margins. |
|
IMPORT_C void | SetColumnMarginsL (TInt aColumn, TMargins aMargins) |
Sets column's margins. |
|
IMPORT_C const CFont * | ColumnFont (TInt aColumn) const |
Gets font used by the column. |
|
IMPORT_C void | SetColumnFontL (TInt aColumn, const CFont *aFont) |
Sets column's font. |
|
IMPORT_C CGraphicsContext::TTextAlign | ColumnAlignment (TInt aColumn) const |
Gets the text alignment for the specified column. |
|
IMPORT_C void | SetColumnAlignmentL (TInt aColumn, CGraphicsContext::TTextAlign aAlign) |
Sets the text alignment for the specified column. |
|
IMPORT_C CGraphicsContext::TPenStyle | ColumnSeparatorStyle (TInt aColumn) const |
Not used in S60. |
|
IMPORT_C void | SetColumnSeparatorStyleL (TInt aColumn, CGraphicsContext::TPenStyle aStyle) |
Not used in S60. |
|
IMPORT_C TBool | ColumnIsOptional (TInt aColumn) const |
Checks whether the column is optional. |
|
IMPORT_C void | SetOptionalColumnL (TInt aColumn, TBool aIsOptional) |
Sets whether the column is optional. |
|
IMPORT_C TBool | ColumnIsGraphics (TInt aColumn) const |
Checks whether the column contains graphics. |
|
IMPORT_C void | SetGraphicsColumnL (TInt aColumn, TBool aIsGraphics) |
Sets whether the column shows graphics. |
|
IMPORT_C TBool | ColumnIsNumber (TInt aColumn) const |
Checks if the column is a number. |
|
IMPORT_C void | SetNumberColumnL (TInt aColumn, TBool aIsNumber) |
Sets whether the column is a number. |
|
IMPORT_C CArrayPtr< CGulIcon > * | IconArray () const |
Gets the icon array. |
|
IMPORT_C void | SetIconArray (CArrayPtr< CGulIcon > *aArray) |
Sets icon array. |
|
IMPORT_C TInt | ColumnTextClipGap (TInt aSubCellIndex) const |
Gets TextClipGap, the gap between words in a text clip, for the given column. |
|
IMPORT_C void | SetColumnTextClipGapL (TInt aSubCellIndex, TInt aSize) |
Sets columns TextClipGap, the gap between words in a text clip. |
|
IMPORT_C CFont * | Font (const TListItemProperties &aItemProperties, TInt aColumn) const |
Gets the specified font for the specified column. |
|
IMPORT_C TBool | MakeColumnRect (TInt aColumn, TRect &aRect) |
Gets the specified column’s surrounding rectangle. |
|
virtual IMPORT_C void | Draw (const TListItemProperties &aItemProperties, CWindowGc &aGc, const TDesC *aText, const TRect &aRect, TBool aHighlight, const TColors &aColors) const |
Draws a single row. |
|
void | DrawSimple (const TListItemProperties &aItemProperties, CWindowGc &aGc, const TDesC *aText, const TRect &aRect, TBool aHighlight, const TColors &aColors) const |
internal |
|
IMPORT_C void | SetSeparatorLinePosition (TAknSeparatorLinePosition aPosition) |
Sets position of listbox line. |
|
IMPORT_C TAknSeparatorLinePosition | SeparatorLinePosition () const |
Gives out separator line position. |
|
IMPORT_C CAknLayoutData * | LayoutData () const |
IMPORT_C TBool | LayoutInit () const |
IMPORT_C void | SetLayoutInit (TBool aValue) const |
IMPORT_C void | SetColumnUnderlined (TBitFlags32 aUnderlinedColumns) |
Enables / disables underlining per text column, if and only if TListItemProperties also has underlining enabled. |
|
IMPORT_C CCoeControl * | Control () const |
Gets CCoeControl for component. |
|
IMPORT_C void | SetControl (CCoeControl *aControl) |
Sets CCoeControl for current component. |
|
IMPORT_C MAknsControlContext * | SkinBackgroundContext () const |
Gets background skin context. |
|
void | SetSkinBackgroundContext (CAknsListBoxBackgroundControlContext *aContext) |
Sets background skin context. |
|
IMPORT_C void | SetSkinStyle (const TAknsItemID *aId, const TRect &aTileRect) |
Sets style for the skin fot list tiles. |
|
IMPORT_C void | SetListEndSkinStyle (const TAknsItemID *aId, const TRect &aRect) |
Sets skin style for the end of the list. |
|
IMPORT_C void | SetSkinHighlightFrame (const TAknsItemID *aFrameId, const TAknsItemID *aFrameCenterId) |
Sets skin for the highlighted frame. |
|
IMPORT_C void | SetSkinEnabledL (TBool aEnabled) |
Enables/Disables skin. |
|
void | CreatePictographInterfaceL () |
Creates a pictograph interface for the CColumnListBoxData . |
|
void | CreateMarqueeControlL () |
Creates a marquee control for the CColumnListBoxData and redraw. |
|
void | ResetMarquee () |
Resets marquee control. |
|
TInt | CurrentMarqueeItemIndex () |
Gets current marquee item index. |
|
void | SetCurrentMarqueeItemIndex (TInt aIndex) |
Sets the index for current marquee item. |
|
IMPORT_C void | EnableMarqueeL (TBool aEnable) |
Enables or disables the marquee. |
|
IMPORT_C void | SetColumnFontForRowL (TInt aRow, TInt aColumn, const CFont *aFont) |
Sets the font attached to the cell for each row separately. |
|
IMPORT_C const CFont * | RowAndColumnFont (TInt aRow, TInt aColumn) const |
Gets the font attached to the row and cell. |
|
void | SetCurrentItemIndex (TInt aIndex) |
Sets the current list item index. |
|
IMPORT_C void | SetSubCellIconSize (TInt aIndex, TSize aSize) |
Sets the subcell icon size. |
|
TSize | GetSubCellIconSize (TInt aIndex) |
Gets subcell icon size. |
|
IMPORT_C const CAknsEffectAnim * | HighlightAnim () const |
Gets the highlight animation . |
|
IMPORT_C void | AboutToDrawHighlightAnim () const |
This method should be called before drawing animated highlight. |
|
IMPORT_C void | SetHighlightAnimBackgroundDrawer (MColumnListBoxAnimBackgroundDrawer *aDrawer) |
Sets the observer for overriding default highlight input layer drawing functionality. |
|
IMPORT_C void | SetItemCellSize (const TSize &aSizeInPixels) |
Changes item cell size & resizes highlight animation. |
|
IMPORT_C TBool | HasHighlightAnim () const |
IMPORT_C TBool | DrawHighlightAnim (CBitmapContext &aGc, const TRect &aRect) const |
The preferred method for drawing highlight animation in derived classes. |
|
void | FocusGained () |
void | FocusLost () |
Called when the CColumnListBoxData is unselected. |
|
void | HandleResourceChange (TInt aType) |
Handles changing of an resource. |
|
void | SetupSkinContextL () |
Setup skin control context for handling background skins. |
|
void | SetESSTextColor (TRgb aTextColor) |
Sets text colour. |
|
void | SetESSHighlightedTextColor (TRgb aHighlightedTextColor) |
Sets text colour for highlighted text. |
|
IMPORT_C void | SetGraphicSubCellL (TInt aSubCell, const TAknWindowLineLayout &aGraphicLayout) |
IMPORT_C void | SetTextSubCellL (TInt aSubCell, const TAknTextLineLayout &aTextLayout) |
IMPORT_C void | SetConditionalSubCellL (TInt aSubCell, const TAknTextLineLayout &aTextLayout, TInt aAffectedSubCell) |
IMPORT_C void | SubCellsMightIntersect (const TBool aMightIntersect) |
IMPORT_C void | SetStretchableGraphicSubCellL (TInt aSubCell, const TAknWindowComponentLayout &aNormalLayout, const TAknWindowComponentLayout &aStretchedLayout) |
IMPORT_C void | SetStretchableTextSubCellL (TInt aSubCell, const TAknTextComponentLayout &aNormalLayout, const TAknTextComponentLayout &aStretchedLayout) |
IMPORT_C void | SetStretchableConditionalSubCellL (TInt aSubCell, const TAknTextComponentLayout &aNormalLayout, const TAknTextComponentLayout &aStretchedLayout, TInt aNormalSubCell, TInt aStretchedSubCell) |
IMPORT_C void | ResetSLSubCellArray () |
TBool | UsesScalableLayoutData () const |
void | EnableStretching (const TBool aEnabled) |
IMPORT_C TBool | StretchingEnabled () const |
IMPORT_C void | SetMarqueeParams (const TInt aLoops, const TInt aScrollAmount, const TInt aScrollDelay) |
Customizes marquee default behaviour. |
|
IMPORT_C void | SetMarqueeParams (const TInt aLoops, const TInt aScrollAmount, const TInt aScrollDelay, const TInt aInterval) |
Customizes marquee default behaviour. |
|
IMPORT_C TUint32 | CurrentItemTextWasClipped () const |
Tells whether current item has clipped text cells. |
|
Static Public Member Functions |
|
static IMPORT_C CColumnListBoxData * | NewL () |
Two-phased constructor. |
|
Protected Member Functions |
|
IMPORT_C | CColumnListBoxData () |
C++ default constructor. |
|
IMPORT_C void | ConstructLD () |
A second phase constructor. |
|
IMPORT_C void | ConstructLD (const TAknsItemID &aAnimationIID) |
Second phase constructor for subclasses that want to override highlight animation creation. |
|
IMPORT_C void | DrawText (CWindowGc &aGc, const TRect &aTextRect, const TDesC &aText, const TDesC &aClippedText, const TInt aBaselineOffset, const CGraphicsContext::TTextAlign aAlign, const CFont &aFont, const TBool aHighlight, const TBool aIsTextClipped) const |
Wraps the text drawing functinality with & without marquee into one function, so that inherited classes can modify their own
drawing behaviour more easily. |
|
Friends |
|
class | CColumnListBoxDataExtension |
Data Structures |
|
struct | SColumn |
class | TColors |
Represents the colours used within the border and for the optional single pixel border outlines. More... |
|
Destructor. |
|
C++ default constructor. |
|
This method should be called before drawing animated highlight. It will sync the animation with the background under the current highlight (only when current item index has changed). |
|
Gets the text alignment for the specified column.
|
|
Gets column's baseline.
|
|
Gets font used by the column.
|
|
Not used in S60. |
|
Checks whether the column contains graphics.
|
|
Checks if the column is a number.
|
|
Checks whether the column is optional.
|
|
Gets column's margins.
|
|
Not used in S60. |
|
Gets TextClipGap, the gap between words in a text clip, for the given column.
|
|
Gets the specified column’s width in pixels.
|
|
Second phase constructor for subclasses that want to override highlight animation creation.
|
|
A second phase constructor. Highlight animation will be created by default (if it is provided by the skin). |
|
Gets
|
|
Creates a marquee control for the |
|
Creates a pictograph interface for the |
|
Tells whether current item has clipped text cells.
|
|
Gets current marquee item index.
|
|
Draws a single row.
The text
|
|
The preferred method for drawing highlight animation in derived classes. Before calling this method you should check that highlight animation exists by calling HasHighlightAnim. In case of draw failure you should default to normal skinned highlight drawing. For example: TBool drawOk = EFalse; if( HasHighlightAnim() ) { drawOk = DrawHighlightAnim( gc, rect ); } if( !drawOk ) { ...do normal skinned draw }
|
|
internal |
|
Wraps the text drawing functinality with & without marquee into one function, so that inherited classes can modify their own drawing behaviour more easily.
|
|
Enables or disables the marquee.
|
|
|
|
Called when the
Informs the |
|
Gets the specified font for the specified column.
|
|
Gets subcell icon size.
|
|
Handles changing of an resource. Only supports skin change.
|
|
|
|
Gets the highlight animation .
|
|
Gets the icon array. These icons contain the bitmaps that are displayed in graphical columns.
|
|
Gets the index of the last defined column.
|
|
Gives out layout data for separator line drawing.
|
|
Checks if the layout has been initialized.
|
|
Gets the specified column’s surrounding rectangle.
|
|
Two-phased constructor. Allocates and constructs a column list box data object. Constructs an array in which the column data is held.
|
|
Resets marquee control. |
|
|
Gets the font attached to the row and cell.
|
|
Gives out separator line position.
|
|
Sets the text alignment for the specified column. If the column does not exist, it is added with the specified index to the array.
|
|
Sets columns baseline position.
|
|
Sets the font attached to the cell for each row separately.
|
|
Sets column's font.
|
|
Not used in S60. |
|
Sets column's margins.
|
|
Not used in S60. |
|
Sets columns TextClipGap, the gap between words in a text clip.
|
|
Enables / disables underlining per text column, if and only if
If this method is not called and
|
|
Sets the specified column’s width in pixels. If the column does not exist, one is added at the specified index, with the specifed width.
|
|
|
Sets
|
|
Sets the current list item index. Since S60 2.6 causes highlight animation tochange its background (only if the current item index changes). Do not call this method if the index is not the current item index.
|
|
Sets the index for current marquee item.
|
|
Sets text colour for highlighted text.
|
|
Sets text colour.
|
|
Sets whether the column shows graphics.
|
|
|
Sets the observer for overriding default highlight input layer drawing functionality.
Note that you should still call
|
|
Sets icon array.
|
|
Changes item cell size & resizes highlight animation. Called by list when item cell size changes. If you are using non-standard highlight sizes make sure to sync the list item cell size.
|
|
Sets the initialization .
|
|
Sets skin style for the end of the list.
|
|
Customizes marquee default behaviour.
|
|
Customizes marquee default behaviour.
Use this before enabling marquee (
|
|
Sets whether the column is a number.
|
|
Sets whether the column is optional.
|
|
Sets position of listbox line.
|
|
Sets background skin context. Changes ownership as well.
|
|
Enables/Disables skin.
Reimplemented from CListBoxData. |
|
Sets skin for the highlighted frame.
|
|
Sets style for the skin fot list tiles.
|
|
|
|
|
Sets the subcell icon size.
|
|
|
Setup skin control context for handling background skins. if no skin control context is found one is created. |
|
Gets background skin context.
|
|
|
|
|