CFsTreeList Class Reference

class CFsTreeList : public CBase

CFsTreeList is a component for creating and displaying hierarchical list using tree data structure.


			

Inherits from

Public Member Functions
~CFsTreeList()
IMPORT_C voidAddObserverL(MFsTreeListObserver &)
voidBeginUpdate()
IMPORT_C TFsTreeItemIdChild(const TFsTreeItemId, const TUint)
IMPORT_C TUintChildIndex(const TFsTreeItemId, const TFsTreeItemId)
IMPORT_C voidCollapseNodeL(const TFsTreeItemId)
IMPORT_C TBoolContains(const TFsTreeItemId)
IMPORT_C TUintCount()
IMPORT_C TUintCountChildren(const TFsTreeItemId)
IMPORT_C voidDisableKineticScrolling(TBool)
voidEndUpdateL()
IMPORT_C voidExpandNodeL(const TFsTreeItemId)
IMPORT_C TIntFadeInEffectTime()
IMPORT_C TIntFadeOutEffectTime()
IMPORT_C TFsTreeItemIdFocusedItem()
IMPORT_C TIntGetItemDisplayRectTarget(const TFsTreeItemId, TAlfRealRect &)
IMPORT_C voidGetMarkedItemsL(RFsTreeItemIdList &)
IMPORT_C voidGetScrollTime(TInt &, TReal &)
IMPORT_C TFsTreeListScrollbarsHasScrollBars()
IMPORT_C voidHideListL(const TBool, const TBool)
IMPORT_C TIntIndentation()
IMPORT_C TFsTreeItemIdInsertItemL(MFsTreeItemData &, MFsTreeItemVisualizer &, const TFsTreeItemId, const TInt, const TBool)
IMPORT_C TFsTreeItemIdInsertNodeL(MFsTreeItemData &, MFsTreeNodeVisualizer &, const TFsTreeItemId, const TInt, const TBool)
IMPORT_C TBoolIsEmpty(const TFsTreeItemId)
IMPORT_C TBoolIsExpanded(const TFsTreeItemId)
IMPORT_C TBoolIsFocused()
IMPORT_C TBoolIsItemsAlwaysExtended()
IMPORT_C TBoolIsMarked(const TFsTreeItemId)
IMPORT_C TBoolIsNode(const TFsTreeItemId)
IMPORT_C MFsTreeItemData &ItemData(const TFsTreeItemId)
IMPORT_C CFsTreeList *ItemMenu(TFsTreeItemId)
IMPORT_C MFsTreeItemVisualizer &ItemVisualizer(const TFsTreeItemId)
IMPORT_C TUintLevel(const TFsTreeItemId)
IMPORT_C TFsTreeListLoopingTypeLoopingType()
IMPORT_C voidMarkItemL(const TFsTreeItemId, TBool)
IMPORT_C TFsTreeListMarkTypeMarkType()
IMPORT_C voidMoveItemL(const TFsTreeItemId, const TFsTreeItemId, const TInt)
IMPORT_C CFsTreeList *NewL(CFsTreeVisualizerBase &, CAlfEnv &)
IMPORT_C TFsTreeItemIdParent(const TFsTreeItemId)
IMPORT_C voidRemoveAllL()
IMPORT_C voidRemoveChildrenL(const TFsTreeItemId)
IMPORT_C voidRemoveL(const TFsTreeItemId)
IMPORT_C voidRemoveObserver(MFsTreeListObserver &)
IMPORT_C TFsScrollbarVisibilityScrollbarVisibility()
IMPORT_C voidSetBorderL(const TBool, CAlfTexture *)
IMPORT_C voidSetDirectTouchMode(const TBool)
IMPORT_C voidSetFadeInEffectTime(TInt)
IMPORT_C voidSetFadeOutEffectTime(TInt)
IMPORT_C voidSetFocusedItemL(const TFsTreeItemId)
IMPORT_C voidSetFocusedL(const TBool)
IMPORT_C voidSetIndentationL(const TInt)
IMPORT_C voidSetItemDataL(MFsTreeItemData &, const TFsTreeItemId)
IMPORT_C voidSetItemVisualizerL(MFsTreeItemVisualizer &, const TFsTreeItemId)
IMPORT_C voidSetItemsAlwaysExtendedL(TBool)
IMPORT_C voidSetLoopingType(const TFsTreeListLoopingType)
IMPORT_C voidSetMarkTypeL(const TFsTreeListMarkType)
IMPORT_C voidSetScrollBarsL(const TFsTreeListScrollbars)
IMPORT_C voidSetScrollTime(TInt, TReal)
IMPORT_C voidSetScrollbarVisibilityL(const TFsScrollbarVisibility)
IMPORT_C voidSetShadowL(const TBool)
IMPORT_C voidSetSlideInDirection(MFsTreeVisualizer::TFsSlideEffect)
IMPORT_C voidSetSlideInDuration(TInt)
IMPORT_C voidSetSlideOutDirection(MFsTreeVisualizer::TFsSlideEffect)
IMPORT_C voidSetSlideOutDuration(TInt)
IMPORT_C voidSetTextMarqueeCycleStartDelay(const TInt)
IMPORT_C voidSetTextMarqueeRepetitions(const TInt)
IMPORT_C voidSetTextMarqueeSpeed(const TInt)
IMPORT_C voidSetTextMarqueeStartDelay(const TInt)
IMPORT_C voidSetTextMarqueeType(const TFsTextMarqueeType)
IMPORT_C voidSetTreeVisualizer(CFsTreeVisualizerBase &)
IMPORT_C voidShowListL(const TBool, const TBool)
IMPORT_C MFsTreeVisualizer::TFsSlideEffectSlideInDirection()
IMPORT_C TIntSlideInDuration()
IMPORT_C MFsTreeVisualizer::TFsSlideEffectSlideOutDirection()
IMPORT_C TIntSlideOutDuration()
IMPORT_C TIntTextMarqueeCycleStartDelay()
IMPORT_C TIntTextMarqueeRepetitions()
IMPORT_C TIntTextMarqueeSpeed()
IMPORT_C TIntTextMarqueeStartDelay()
IMPORT_C TFsTextMarqueeTypeTextMarqueeType()
IMPORT_C CFsAlfTextStyleManager &TextStyleManager()
IMPORT_C CAlfControl *TreeControl()
IMPORT_C CFsTreeVisualizerBase &TreeVisualizer()
IMPORT_C voidTreeVisualizerEventL(const TFsTreeVisualizerEvent, const TFsTreeItemId, const TPoint &)
Protected Member Functions
CFsTreeList(CAlfEnv &, CFsTreeVisualizerBase &)
IMPORT_C voidConstructL(CAlfEnv &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTFsTreeListMarkType { EFsTreeListNonMarkable, EFsTreeListMarkable, EFsTreeListMultiMarkable }
enumTFsTreeListScrollbars { EFsTreeListNoScrollbars, EFsTreeListVerticalScrollbar }
Protected Attributes
CAlfEnv *iEnv
TFsTreeItemId iFocusedItem
TFsTreeListScrollbars iHasScrollBars
TBool iIsLooping
TBool iListFocused
TFsTreeListMarkType iMarkType
RFsTreeListObservers iObservers
CFsAlfTextStyleManager *iTextStyleManager
CFsTree *iTree
CFsTreeControl *iTreeControl
CFsTreeVisualizerBase *iTreeVisualizer

Constructor & Destructor Documentation

CFsTreeList(CAlfEnv &, CFsTreeVisualizerBase &)

IMPORT_CCFsTreeList(CAlfEnv &aEnv,
CFsTreeVisualizerBase &aTreeV
)[protected]

C++ constructor

Parameters

CAlfEnv & aEnv
CFsTreeVisualizerBase & aTreeV

~CFsTreeList()

IMPORT_C~CFsTreeList()[virtual]

C++ destructor

Member Functions Documentation

AddObserverL(MFsTreeListObserver &)

IMPORT_C voidAddObserverL(MFsTreeListObserver &aTreeListObserver)

Adds observer to the list of observers

Parameters

MFsTreeListObserver & aTreeListObserverReference to the list observer

BeginUpdate()

voidBeginUpdate()

Child(const TFsTreeItemId, const TUint)

IMPORT_C TFsTreeItemIdChild(const TFsTreeItemIdaNodeId,
const TUintaIndex
)const

Gets the id of a child of the specified node with the position given

panic
EFsListPanicInvalidItemId The specified item id was not found in the list
panic
EFsListPanicInvalidItemType Item id was passed instead of the node id
panic
EFsListPanicIndexOutOfRange Specified index exceeds node's number of children

Parameters

const TFsTreeItemId aNodeIdId of a node
const TUint aIndexIndex of the child

ChildIndex(const TFsTreeItemId, const TFsTreeItemId)

IMPORT_C TUintChildIndex(const TFsTreeItemIdaNodeId,
const TFsTreeItemIdaItemId
)const

Returns the index of a child for a given parent

panic
EFsListPanicInvalidItemId The specified item id was not found in the list
panic
EFsListPanicInvalidItemType Item id was passed instead of the node id
panic
EFsListPanicIndexOutOfRange Specified index exceeds node's number of children

Parameters

const TFsTreeItemId aNodeIdId of a node
const TFsTreeItemId aItemIdId of a child

CollapseNodeL(const TFsTreeItemId)

IMPORT_C voidCollapseNodeL(const TFsTreeItemIdaNodeId)

Collapses the node. Does nothing when the node is already collapsed.

panic
EFsListPanicInvalidItemId The specified item id was not found in the list
panic
EFsListPanicInvalidItemType Item id was passed instead of the node id

Parameters

const TFsTreeItemId aNodeIdId of a node

ConstructL(CAlfEnv &)

IMPORT_C voidConstructL(CAlfEnv &aEnv)[protected]

Second phase constructor

Parameters

CAlfEnv & aEnvReference to the UI toolkit environment

Contains(const TFsTreeItemId)

IMPORT_C TBoolContains(const TFsTreeItemIdaItemId)const

Checks whether the item with specified id belongs to the list

Parameters

const TFsTreeItemId aItemIdId of an item

Count()

IMPORT_C TUintCount()const

Counts elements in the list

CountChildren(const TFsTreeItemId)

IMPORT_C TUintCountChildren(const TFsTreeItemIdaNodeId)const

Gets the number of children of the given node

panic
EFsListPanicInvalidItemId The specified item id was not found in the list
panic
EFsListPanicInvalidItemType Item id was passed instead of the node id

Parameters

const TFsTreeItemId aNodeIdId of the node

DisableKineticScrolling(TBool)

IMPORT_C voidDisableKineticScrolling(TBoolaDisable)

Disables kinetic scrolling (Drag events will not scroll the list).

Parameters

TBool aDisableETrue if kinetic scrolling should be disabled.

EndUpdateL()

voidEndUpdateL()

ExpandNodeL(const TFsTreeItemId)

IMPORT_C voidExpandNodeL(const TFsTreeItemIdaNodeId)

Expands the node. Does nothing when the node is already expanded.

panic
EFsListPanicInvalidItemId The specified item id was not found in the list
panic
EFsListPanicInvalidItemType Item id was passed instead of the node id

Parameters

const TFsTreeItemId aNodeIdId of a node

FadeInEffectTime()

IMPORT_C TIntFadeInEffectTime()

The functions returns fade-in's effect duration.

FadeOutEffectTime()

IMPORT_C TIntFadeOutEffectTime()

The functions returns fade-out's effect duration.

FocusedItem()

IMPORT_C TFsTreeItemIdFocusedItem()const

Gets the currently focused (highlighted) item id

GetItemDisplayRectTarget(const TFsTreeItemId, TAlfRealRect &)

IMPORT_C TIntGetItemDisplayRectTarget(const TFsTreeItemIdaItemId,
TAlfRealRect &aRect
)

Returns the items's target bounding rectangle in display coordinates if the item is visible. Display coordinates are defined relative to the display's visible area.

Parameters

const TFsTreeItemId aItemIdItem's ID.
TAlfRealRect & aRectOut parameter. If successfull, contains item's target rectangle.

GetMarkedItemsL(RFsTreeItemIdList &)

IMPORT_C voidGetMarkedItemsL(RFsTreeItemIdList &aMarkedItems)const

Gets the list of marked items

Parameters

RFsTreeItemIdList & aMarkedItemsReference to the array that the list will copy array of marked items' ids to

GetScrollTime(TInt &, TReal &)

IMPORT_C voidGetScrollTime(TInt &aScrollTime,
TReal &aScrollAcceleration
)

Function gets the values of scroll speed and its acceleration rate.

Parameters

TInt & aScrollTimeTime (in miliseconds) at which the list items are scrolled.
TReal & aScrollAccelerationRate of scroll acceleration when the up/down key is pressed for a long time.

HasScrollBars()

IMPORT_C TFsTreeListScrollbarsHasScrollBars()const

OLD API - to be removed. Returns information about scrollbars used by list visual

HideListL(const TBool, const TBool)

IMPORT_C voidHideListL(const TBoolaFadeOut = EFalse,
const TBoolaSlideOut = EFalse
)

Hides the list.

Parameters

const TBool aFadeOut = EFalseDefines if list visual should or shouldn't fade out from the screen.
const TBool aSlideOut = EFalseETrue if slide out effect should be used,EFalse if not

Indentation()

IMPORT_C TIntIndentation()const

Returns information whether list enables indention or not

InsertItemL(MFsTreeItemData &, MFsTreeItemVisualizer &, const TFsTreeItemId, const TInt, const TBool)

IMPORT_C TFsTreeItemIdInsertItemL(MFsTreeItemData &aItemD,
MFsTreeItemVisualizer &aItemV,
const TFsTreeItemIdaParentId,
const TIntaIndex = -1,
const TBoolaAllowRefresh = ETrue
)

Inserts new item as a child of parent given by Id with the given position

panic
EFsListPanicParentIdNotFound The specified parent id was not found
panic
EFsListPanicIndexOutOfRange Specified index exceeds node's number of children

Parameters

MFsTreeItemData & aItemDPointer to item's data
MFsTreeItemVisualizer & aItemVPointer to item's visualizer
const TFsTreeItemId aParentIdId of parent node
const TInt aIndex = -1Position of new item in the list of parent's children (if omitted, the item is inserted as last)
const TBool aAllowRefresh = ETrueBlocks/Allows view update after an item has been added to the tree list. Currently works only with scrollbar update.

InsertNodeL(MFsTreeItemData &, MFsTreeNodeVisualizer &, const TFsTreeItemId, const TInt, const TBool)

IMPORT_C TFsTreeItemIdInsertNodeL(MFsTreeItemData &aItemD,
MFsTreeNodeVisualizer &aNodeV,
const TFsTreeItemIdaParentId,
const TIntaIndex = -1,
const TBoolaAllowRefresh = ETrue
)

Inserts new node as a child of parent given by Id with the given position

panic
EFsListPanicParentIdNotFound The specified parent id was not found
panic
EFsListPanicIndexOutOfRange Specified index exceeds node's number of children

Parameters

MFsTreeItemData & aItemDPointer to node's data
MFsTreeNodeVisualizer & aNodeV
const TFsTreeItemId aParentIdId of parent node
const TInt aIndex = -1Position of new node in the list of parent's children (if omitted, the node is inserted as last)
const TBool aAllowRefresh = ETrue

IsEmpty(const TFsTreeItemId)

IMPORT_C TBoolIsEmpty(const TFsTreeItemIdaNodeId =  KFsTreeRootID )const

Checks if a node has children, if parameter is omitted, root of the list is checked to indicate if the list is empty

panic
EFsListPanicInvalidItemId The specified item id was not found in the list
panic
EFsListPanicInvalidItemType Item id was passed instead of the node id

Parameters

const TFsTreeItemId aNodeId =  KFsTreeRootID Id of a node

IsExpanded(const TFsTreeItemId)

IMPORT_C TBoolIsExpanded(const TFsTreeItemIdaNodeId)

Checks whether the node with specified id is expanded.

panic
EFsListPanicInvalidItemId The specified item id was not found in the list
panic
EFsListPanicInvalidItemType Item id was passed instead of the node id

Parameters

const TFsTreeItemId aNodeIdId of a node

IsFocused()

IMPORT_C TBoolIsFocused()const

Returns state of the focus

IsItemsAlwaysExtended()

IMPORT_C TBoolIsItemsAlwaysExtended()

IsMarked(const TFsTreeItemId)

IMPORT_C TBoolIsMarked(const TFsTreeItemIdaItemId)const

Checks whether the item with specified id is marked.

panic
EFsListPanicInvalidItemId The specified item id was not found in the list.

Parameters

const TFsTreeItemId aItemIdId of an item.

IsNode(const TFsTreeItemId)

IMPORT_C TBoolIsNode(const TFsTreeItemIdaItemId)const

Checks whether the item with specified id is a node

panic
EFsListPanicInvalidItemId The specified item id was not found in the list

Parameters

const TFsTreeItemId aItemIdId of an item

ItemData(const TFsTreeItemId)

IMPORT_C MFsTreeItemData &ItemData(const TFsTreeItemIdaItemId)const

Gets the reference to the item/node data (const)

panic
EFsListPanicInvalidItemId The specified item id was not found in the list

Parameters

const TFsTreeItemId aItemIdId of the item/node

ItemMenu(TFsTreeItemId)

IMPORT_C CFsTreeList *ItemMenu(TFsTreeItemIdaItemId)

Returns item visualizer for given item id.

Parameters

TFsTreeItemId aItemId

ItemVisualizer(const TFsTreeItemId)

IMPORT_C MFsTreeItemVisualizer &ItemVisualizer(const TFsTreeItemIdaItemId)const

Gets the reference to the item visualizer (const)

panic
EFsListPanicInvalidItemId The specified item id was not found in the list

Parameters

const TFsTreeItemId aItemIdId of the item

Level(const TFsTreeItemId)

IMPORT_C TUintLevel(const TFsTreeItemIdaItemId)const

Returns the level of an item in tree.

Parameters

const TFsTreeItemId aItemIdId of an item.

LoopingType()

IMPORT_C TFsTreeListLoopingTypeLoopingType()const

Returns information about looping type of the list.

MarkItemL(const TFsTreeItemId, TBool)

IMPORT_C voidMarkItemL(const TFsTreeItemIdaItemId,
TBoolaMarked
)

Marks the item.

panic
EFsListPanicInvalidItemId The specified item id was not found in the list
panic
EFsListPanicIsNonMarkable The list is non-markable

Parameters

const TFsTreeItemId aItemIdId of an item
TBool aMarkedETrue to set item marked, EFalse to unmarked.

MarkType()

IMPORT_C TFsTreeListMarkTypeMarkType()const

Returns information whether list is markable, non-markable or multi-markable

MoveItemL(const TFsTreeItemId, const TFsTreeItemId, const TInt)

IMPORT_C voidMoveItemL(const TFsTreeItemIdaItemId,
const TFsTreeItemIdaTargetNode,
const TIntaIndex = -1
)

Moves the item with given Id to the list of children of parent with given id

panic
EFsListPanicInvalidItemId The specified item id was not found in the list
panic
EFsListPanicParentIdNotFound The specified parent id was not found
panic
EFsListPanicInvalidItemType Item id was passed as a second param instead of the node id
panic
EFsListPanicIndexOutOfRange Specified index exceeds node's number of children

Parameters

const TFsTreeItemId aItemIdId of the item to be moved
const TFsTreeItemId aTargetNodeId of the new parent node
const TInt aIndex = -1Position of the item in the list of new parent's children (if omitted, the item/node is inserted as last)

NewL(CFsTreeVisualizerBase &, CAlfEnv &)

IMPORT_C CFsTreeList *NewL(CFsTreeVisualizerBase &aTreeV,
CAlfEnv &aEnv
)[static]

Two-phased constructor

Parameters

CFsTreeVisualizerBase & aTreeVPointer to the class responsible for visualizing tree structure
CAlfEnv & aEnvReference to the UI toolkit environment

Parent(const TFsTreeItemId)

IMPORT_C TFsTreeItemIdParent(const TFsTreeItemIdaItemId)const

Gets the parent's id for the specified item. If KFsTreeRootID is passed then KFsTreeNoneID is returned.

panic
EFsListPanicInvalidItemId The specified item id was not found in the list

Parameters

const TFsTreeItemId aItemIdId of an item

RemoveAllL()

IMPORT_C voidRemoveAllL()

Removes all items from the list.

RemoveChildrenL(const TFsTreeItemId)

IMPORT_C voidRemoveChildrenL(const TFsTreeItemIdaNodeId)

Removes all children of the given node.

panic
EFsListPanicInvalidItemId The specified item id was not found in the list
panic
EFsListPanicInvalidItemType Item id was passed instead of the node id

Parameters

const TFsTreeItemId aNodeIdId of the node

RemoveL(const TFsTreeItemId)

IMPORT_C voidRemoveL(const TFsTreeItemIdaItemId)

Removes the item with given Id from the list. If aItemId is a node all its children will be removed as well.

panic
EFsListPanicInvalidItemId The specified item id was not found in the list

Parameters

const TFsTreeItemId aItemIdId of the item to be removed

RemoveObserver(MFsTreeListObserver &)

IMPORT_C voidRemoveObserver(MFsTreeListObserver &aTreeListObserver)

Removes observer from the list of observers

panic
ETreeListPanicObserverNotFound The given observer was not registered previously

Parameters

MFsTreeListObserver & aTreeListObserverReference to the list observer

ScrollbarVisibility()

IMPORT_C TFsScrollbarVisibilityScrollbarVisibility()const

Returns information about scrollbars used by list visual

SetBorderL(const TBool, CAlfTexture *)

IMPORT_C voidSetBorderL(const TBoolaVisible,
CAlfTexture *aBorderTexture = 0
)[virtual]

Sets visiblity of the border

Parameters

const TBool aVisible
CAlfTexture * aBorderTexture = 0

SetDirectTouchMode(const TBool)

IMPORT_C voidSetDirectTouchMode(const TBoolaDirectTouchMode)

Sets direct touch mode.

Parameters

const TBool aDirectTouchModeETrue if list should work as in direct touch, EFalse otherwise.

SetFadeInEffectTime(TInt)

IMPORT_C voidSetFadeInEffectTime(TIntaFadeTime)

The functions sets fade-in's effect duration.

Parameters

TInt aFadeTimeA time in miliseconds for fade in effect.

SetFadeOutEffectTime(TInt)

IMPORT_C voidSetFadeOutEffectTime(TIntaFadeTime)

The functions sets fade-out's effect duration.

Parameters

TInt aFadeTimeA time in miliseconds for fade-out effect.

SetFocusedItemL(const TFsTreeItemId)

IMPORT_C voidSetFocusedItemL(const TFsTreeItemIdaItemId)

Sets the focus (highlight) upon the item with given id

panic
EFsListPanicInvalidItemId The specified item id was not found in the list

Parameters

const TFsTreeItemId aItemIdId of the item that is to be focused (highlighted)

SetFocusedL(const TBool)

IMPORT_C voidSetFocusedL(const TBoolaFocused)

Sets focus state of list component

Parameters

const TBool aFocusedstatus of the focus to be set

SetIndentationL(const TInt)

IMPORT_C voidSetIndentationL(const TIntaIndentation)

Enables or disables indention for list

Parameters

const TInt aIndentationIndentation in pixels.

SetItemDataL(MFsTreeItemData &, const TFsTreeItemId)

IMPORT_C voidSetItemDataL(MFsTreeItemData &aData,
const TFsTreeItemIdaItemId
)

Sets the reference to the item/node data

panic
EFsListPanicInvalidItemId The specified item id was not found in the list

Parameters

MFsTreeItemData & aDataReference to the item/node data
const TFsTreeItemId aItemIdId of the item/node

SetItemVisualizerL(MFsTreeItemVisualizer &, const TFsTreeItemId)

IMPORT_C voidSetItemVisualizerL(MFsTreeItemVisualizer &aVisualizer,
const TFsTreeItemIdaItemId
)

Sets the reference to the item visualizer

panic
EFsListPanicInvalidItemId The specified item id was not found in the list

Parameters

MFsTreeItemVisualizer & aVisualizerReference to the new item's visualizer
const TFsTreeItemId aItemIdId of the item

SetItemsAlwaysExtendedL(TBool)

IMPORT_C voidSetItemsAlwaysExtendedL(TBoolaAlwaysExtended)

The functions sets wether all item in the list should be always in extended state or in normal state. The list view is refreshed.

Parameters

TBool aAlwaysExtendedETrue if items should be always extended. EFalse if items should be in normal state.

SetLoopingType(const TFsTreeListLoopingType)

IMPORT_C voidSetLoopingType(const TFsTreeListLoopingTypeaLoopingType)

Sets type of list's looping.

Parameters

const TFsTreeListLoopingType aLoopingTypetype of list looping.

SetMarkTypeL(const TFsTreeListMarkType)

IMPORT_C voidSetMarkTypeL(const TFsTreeListMarkTypeaFlag)

Enables or disables marking of list items

Parameters

const TFsTreeListMarkType aFlagType of markability for the list

SetScrollBarsL(const TFsTreeListScrollbars)

IMPORT_C voidSetScrollBarsL(const TFsTreeListScrollbarsaFlag)

Old API - to be removed

Parameters

const TFsTreeListScrollbars aFlagScrollbar type for the list

SetScrollTime(TInt, TReal)

IMPORT_C voidSetScrollTime(TIntaScrollTime,
TRealaScrollAcceleration = 0.0
)

Function sets the time of list scroll per item and the scroll acceleration rate.

Parameters

TInt aScrollTimeTime (in miliseconds) at which the list items are scrolled.
TReal aScrollAcceleration = 0.0Rate of scroll acceleration when the up/down key is pressed for a long time. This is multiplied by the number of up/down key repeats. Acceleration rate should be in 0.0-1.0 range.

SetScrollbarVisibilityL(const TFsScrollbarVisibility)

IMPORT_C voidSetScrollbarVisibilityL(const TFsScrollbarVisibilityaVisibility)

Enables or disables scrollbars

Parameters

const TFsScrollbarVisibility aVisibility

SetShadowL(const TBool)

IMPORT_C voidSetShadowL(const TBoolaVisible)

Sets visiblity of the shadow

Parameters

const TBool aVisible

SetSlideInDirection(MFsTreeVisualizer::TFsSlideEffect)

IMPORT_C voidSetSlideInDirection(MFsTreeVisualizer::TFsSlideEffectaDirection)

The function sets direction of the slide in effect.

Parameters

MFsTreeVisualizer::TFsSlideEffect aDirectionA direction of the slide in effect.

SetSlideInDuration(TInt)

IMPORT_C voidSetSlideInDuration(TIntaTimeMiliseconds)

The function sets duration of the slide-in effect.

Parameters

TInt aTimeMilisecondsSlide in time in milliseconds.

SetSlideOutDirection(MFsTreeVisualizer::TFsSlideEffect)

IMPORT_C voidSetSlideOutDirection(MFsTreeVisualizer::TFsSlideEffectaDirection)

The function sets direction of the slide out effect.

Parameters

MFsTreeVisualizer::TFsSlideEffect aDirectionA direction of the slide out effect.

SetSlideOutDuration(TInt)

IMPORT_C voidSetSlideOutDuration(TIntaTimeMiliseconds)

The function sets duration of the slide-out effect.

Parameters

TInt aTimeMilisecondsSlide out time in milliseconds.

SetTextMarqueeCycleStartDelay(const TInt)

IMPORT_C voidSetTextMarqueeCycleStartDelay(const TIntaCycleStartDelay)

Sets a delay for each cycle start.

Parameters

const TInt aCycleStartDelayTime after which the text marquee cycle starts (in miliseconds).

SetTextMarqueeRepetitions(const TInt)

IMPORT_C voidSetTextMarqueeRepetitions(const TIntaMarqueeRepetitions)

Sets repetitions number of marquee cycle.

Parameters

const TInt aMarqueeRepetitions

SetTextMarqueeSpeed(const TInt)

IMPORT_C voidSetTextMarqueeSpeed(const TIntaPixelsPerSec)

Sets the speed of marquee.

Parameters

const TInt aPixelsPerSecHow many pixels per second.

SetTextMarqueeStartDelay(const TInt)

IMPORT_C voidSetTextMarqueeStartDelay(const TIntaStartDelay)

Sets delay for text marquee start.

Parameters

const TInt aStartDelayTime after which the text marquee starts (in miliseconds).

SetTextMarqueeType(const TFsTextMarqueeType)

IMPORT_C voidSetTextMarqueeType(const TFsTextMarqueeTypeaMarquee)

Sets the type of text marquee.

Parameters

const TFsTextMarqueeType aMarqueeType of marquee.

SetTreeVisualizer(CFsTreeVisualizerBase &)

IMPORT_C voidSetTreeVisualizer(CFsTreeVisualizerBase &aTreeV)

Sets a tree visualizer for the list

Parameters

CFsTreeVisualizerBase & aTreeVReference to the tree visualizer that the tree list will be using

ShowListL(const TBool, const TBool)

IMPORT_C voidShowListL(const TBoolaFadeIn = EFalse,
const TBoolaSlideIn = EFalse
)

Displays the list.

Parameters

const TBool aFadeIn = EFalseDefines if list visual should or shouldn't fade in to the screen.
const TBool aSlideIn = EFalseETrue if slide in effect should be used, EFalse if not.

SlideInDirection()

IMPORT_C MFsTreeVisualizer::TFsSlideEffectSlideInDirection()const

The function returns direction of the slide in effect.

SlideInDuration()

IMPORT_C TIntSlideInDuration()const

The function returns slide in effect's duration.

SlideOutDirection()

IMPORT_C MFsTreeVisualizer::TFsSlideEffectSlideOutDirection()const

The function returns direction of the slide out effect.

SlideOutDuration()

IMPORT_C TIntSlideOutDuration()const

The function returns slide out effect's duration.

TextMarqueeCycleStartDelay()

IMPORT_C TIntTextMarqueeCycleStartDelay()const

Returns a delay for each cycle start.

TextMarqueeRepetitions()

IMPORT_C TIntTextMarqueeRepetitions()const

Returns repetitions number of marquee cycle.

TextMarqueeSpeed()

IMPORT_C TIntTextMarqueeSpeed()const

Returns the speed of marquee.

TextMarqueeStartDelay()

IMPORT_C TIntTextMarqueeStartDelay()const

Returns delay for text marquee.

TextMarqueeType()

IMPORT_C TFsTextMarqueeTypeTextMarqueeType()const

Returns the type of text marquee.

TextStyleManager()

IMPORT_C CFsAlfTextStyleManager &TextStyleManager()const

Gets the reference to the text style manager.

TreeControl()

IMPORT_C CAlfControl *TreeControl()const

Returns a hitckcock control associated with the component.

TreeVisualizer()

IMPORT_C CFsTreeVisualizerBase &TreeVisualizer()const

Gets the reference to the tree visualizer

TreeVisualizerEventL(const TFsTreeVisualizerEvent, const TFsTreeItemId, const TPoint &)

IMPORT_C voidTreeVisualizerEventL(const TFsTreeVisualizerEventaEvent,
const TFsTreeItemIdaId,
const TPoint &aPoint
)const [virtual]

Parameters

const TFsTreeVisualizerEvent aEvent
const TFsTreeItemId aId
const TPoint & aPoint

Member Enumerations Documentation

Enum TFsTreeListMarkType

Pre-defined types of markability in list

Enumerators

EFsTreeListNonMarkable
EFsTreeListMarkable
EFsTreeListMultiMarkable

Enum TFsTreeListScrollbars

Pre-defined types of scrolling in list OLD API - to be removed.

Enumerators

EFsTreeListNoScrollbars
EFsTreeListVerticalScrollbar

Member Data Documentation

CAlfEnv * iEnv

CAlfEnv *iEnv[protected]

Alf env

TFsTreeItemId iFocusedItem

TFsTreeItemId iFocusedItem[protected]

Id of the focused item

TFsTreeListScrollbars iHasScrollBars

TFsTreeListScrollbars iHasScrollBars[protected]

part of OLD API - to be removed. SScrollbar flag

TBool iIsLooping

TBool iIsLooping[protected]

Loop flag

TBool iListFocused

TBool iListFocused[protected]

The list has focus or not.

TFsTreeListMarkType iMarkType

TFsTreeListMarkType iMarkType[protected]

Type of markability

RFsTreeListObservers iObservers

RFsTreeListObservers iObservers[protected]

Array of observers

CFsAlfTextStyleManager * iTextStyleManager

CFsAlfTextStyleManager *iTextStyleManager[protected]

Text style manager. Own

CFsTree * iTree

CFsTree *iTree[protected]

Tree data structure clas Own

CFsTreeControl * iTreeControl

CFsTreeControl *iTreeControl[protected]

Controller class for the list Own

CFsTreeVisualizerBase * iTreeVisualizer

CFsTreeVisualizerBase *iTreeVisualizer[protected]

Visualizer class Not own