| class CFsTreeList : public CBase |
CFsTreeList is a component for creating and displaying hierarchical list using tree data structure.
| Protected Member Functions | |
|---|---|
| CFsTreeList(CAlfEnv &, CFsTreeVisualizerBase &) | |
| IMPORT_C void | ConstructL(CAlfEnv &) |
| Public Member Enumerations | |
|---|---|
| enum | TFsTreeListMarkType { EFsTreeListNonMarkable, EFsTreeListMarkable, EFsTreeListMultiMarkable } |
| enum | TFsTreeListScrollbars { 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 |
| IMPORT_C | CFsTreeList | ( | CAlfEnv & | aEnv, |
| CFsTreeVisualizerBase & | aTreeV | |||
| ) | [protected] | |||
C++ constructor
| CAlfEnv & aEnv | |
| CFsTreeVisualizerBase & aTreeV |
| IMPORT_C void | AddObserverL | ( | MFsTreeListObserver & | aTreeListObserver | ) |
Adds observer to the list of observers
| MFsTreeListObserver & aTreeListObserver | Reference to the list observer |
| IMPORT_C TFsTreeItemId | Child | ( | const TFsTreeItemId | aNodeId, |
| const TUint | aIndex | |||
| ) | const | |||
Gets the id of a child of the specified node with the position given
| const TFsTreeItemId aNodeId | Id of a node |
| const TUint aIndex | Index of the child |
| IMPORT_C TUint | ChildIndex | ( | const TFsTreeItemId | aNodeId, |
| const TFsTreeItemId | aItemId | |||
| ) | const | |||
Returns the index of a child for a given parent
| const TFsTreeItemId aNodeId | Id of a node |
| const TFsTreeItemId aItemId | Id of a child |
| IMPORT_C void | CollapseNodeL | ( | const TFsTreeItemId | aNodeId | ) |
Collapses the node. Does nothing when the node is already collapsed.
| const TFsTreeItemId aNodeId | Id of a node |
| IMPORT_C void | ConstructL | ( | CAlfEnv & | aEnv | ) | [protected] |
Second phase constructor
| CAlfEnv & aEnv | Reference to the UI toolkit environment |
| IMPORT_C TBool | Contains | ( | const TFsTreeItemId | aItemId | ) | const |
Checks whether the item with specified id belongs to the list
| const TFsTreeItemId aItemId | Id of an item |
| IMPORT_C TUint | CountChildren | ( | const TFsTreeItemId | aNodeId | ) | const |
Gets the number of children of the given node
| const TFsTreeItemId aNodeId | Id of the node |
| IMPORT_C void | DisableKineticScrolling | ( | TBool | aDisable | ) |
Disables kinetic scrolling (Drag events will not scroll the list).
| TBool aDisable | ETrue if kinetic scrolling should be disabled. |
| IMPORT_C void | ExpandNodeL | ( | const TFsTreeItemId | aNodeId | ) |
Expands the node. Does nothing when the node is already expanded.
| const TFsTreeItemId aNodeId | Id of a node |
| IMPORT_C TInt | FadeOutEffectTime | ( | ) |
The functions returns fade-out's effect duration.
| IMPORT_C TFsTreeItemId | FocusedItem | ( | ) | const |
Gets the currently focused (highlighted) item id
| IMPORT_C TInt | GetItemDisplayRectTarget | ( | const TFsTreeItemId | aItemId, |
| 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.
| const TFsTreeItemId aItemId | Item's ID. |
| TAlfRealRect & aRect | Out parameter. If successfull, contains item's target rectangle. |
| IMPORT_C void | GetMarkedItemsL | ( | RFsTreeItemIdList & | aMarkedItems | ) | const |
Gets the list of marked items
| RFsTreeItemIdList & aMarkedItems | Reference to the array that the list will copy array of marked items' ids to |
| IMPORT_C void | GetScrollTime | ( | TInt & | aScrollTime, |
| TReal & | aScrollAcceleration | |||
| ) | ||||
Function gets the values of scroll speed and its acceleration rate.
| IMPORT_C TFsTreeListScrollbars | HasScrollBars | ( | ) | const |
OLD API - to be removed. Returns information about scrollbars used by list visual
| IMPORT_C void | HideListL | ( | const TBool | aFadeOut = EFalse, |
| const TBool | aSlideOut = EFalse | |||
| ) | ||||
Hides the list.
| IMPORT_C TInt | Indentation | ( | ) | const |
Returns information whether list enables indention or not
| IMPORT_C TFsTreeItemId | InsertItemL | ( | MFsTreeItemData & | aItemD, |
| MFsTreeItemVisualizer & | aItemV, | |||
| const TFsTreeItemId | aParentId, | |||
| const TInt | aIndex = -1, | |||
| const TBool | aAllowRefresh = ETrue | |||
| ) | ||||
Inserts new item as a child of parent given by Id with the given position
| MFsTreeItemData & aItemD | Pointer to item's data |
| MFsTreeItemVisualizer & aItemV | Pointer to item's visualizer |
| const TFsTreeItemId aParentId | Id of parent node |
| const TInt aIndex = -1 | Position of new item in the list of parent's children (if omitted, the item is inserted as last) |
| const TBool aAllowRefresh = ETrue | Blocks/Allows view update after an item has been added to the tree list. Currently works only with scrollbar update. |
| IMPORT_C TFsTreeItemId | InsertNodeL | ( | MFsTreeItemData & | aItemD, |
| MFsTreeNodeVisualizer & | aNodeV, | |||
| const TFsTreeItemId | aParentId, | |||
| const TInt | aIndex = -1, | |||
| const TBool | aAllowRefresh = ETrue | |||
| ) | ||||
Inserts new node as a child of parent given by Id with the given position
| MFsTreeItemData & aItemD | Pointer to node's data |
| MFsTreeNodeVisualizer & aNodeV | |
| const TFsTreeItemId aParentId | Id of parent node |
| const TInt aIndex = -1 | Position of new node in the list of parent's children (if omitted, the node is inserted as last) |
| const TBool aAllowRefresh = ETrue |
| IMPORT_C TBool | IsEmpty | ( | const TFsTreeItemId | aNodeId = 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
| const TFsTreeItemId aNodeId = KFsTreeRootID | Id of a node |
| IMPORT_C TBool | IsExpanded | ( | const TFsTreeItemId | aNodeId | ) |
Checks whether the node with specified id is expanded.
| const TFsTreeItemId aNodeId | Id of a node |
| IMPORT_C TBool | IsMarked | ( | const TFsTreeItemId | aItemId | ) | const |
Checks whether the item with specified id is marked.
| const TFsTreeItemId aItemId | Id of an item. |
| IMPORT_C TBool | IsNode | ( | const TFsTreeItemId | aItemId | ) | const |
Checks whether the item with specified id is a node
| const TFsTreeItemId aItemId | Id of an item |
| IMPORT_C MFsTreeItemData & | ItemData | ( | const TFsTreeItemId | aItemId | ) | const |
Gets the reference to the item/node data (const)
| const TFsTreeItemId aItemId | Id of the item/node |
| IMPORT_C CFsTreeList * | ItemMenu | ( | TFsTreeItemId | aItemId | ) |
Returns item visualizer for given item id.
| TFsTreeItemId aItemId |
| IMPORT_C MFsTreeItemVisualizer & | ItemVisualizer | ( | const TFsTreeItemId | aItemId | ) | const |
Gets the reference to the item visualizer (const)
| const TFsTreeItemId aItemId | Id of the item |
| IMPORT_C TUint | Level | ( | const TFsTreeItemId | aItemId | ) | const |
Returns the level of an item in tree.
| const TFsTreeItemId aItemId | Id of an item. |
| IMPORT_C TFsTreeListLoopingType | LoopingType | ( | ) | const |
Returns information about looping type of the list.
| IMPORT_C void | MarkItemL | ( | const TFsTreeItemId | aItemId, |
| TBool | aMarked | |||
| ) | ||||
Marks the item.
| const TFsTreeItemId aItemId | Id of an item |
| TBool aMarked | ETrue to set item marked, EFalse to unmarked. |
| IMPORT_C TFsTreeListMarkType | MarkType | ( | ) | const |
Returns information whether list is markable, non-markable or multi-markable
| IMPORT_C void | MoveItemL | ( | const TFsTreeItemId | aItemId, |
| const TFsTreeItemId | aTargetNode, | |||
| const TInt | aIndex = -1 | |||
| ) | ||||
Moves the item with given Id to the list of children of parent with given id
| const TFsTreeItemId aItemId | Id of the item to be moved |
| const TFsTreeItemId aTargetNode | Id of the new parent node |
| const TInt aIndex = -1 | Position of the item in the list of new parent's children (if omitted, the item/node is inserted as last) |
| IMPORT_C CFsTreeList * | NewL | ( | CFsTreeVisualizerBase & | aTreeV, |
| CAlfEnv & | aEnv | |||
| ) | [static] | |||
Two-phased constructor
| CFsTreeVisualizerBase & aTreeV | Pointer to the class responsible for visualizing tree structure |
| CAlfEnv & aEnv | Reference to the UI toolkit environment |
| IMPORT_C TFsTreeItemId | Parent | ( | const TFsTreeItemId | aItemId | ) | const |
Gets the parent's id for the specified item. If KFsTreeRootID is passed then KFsTreeNoneID is returned.
| const TFsTreeItemId aItemId | Id of an item |
| IMPORT_C void | RemoveChildrenL | ( | const TFsTreeItemId | aNodeId | ) |
Removes all children of the given node.
| const TFsTreeItemId aNodeId | Id of the node |
| IMPORT_C void | RemoveL | ( | const TFsTreeItemId | aItemId | ) |
Removes the item with given Id from the list. If aItemId is a node all its children will be removed as well.
| const TFsTreeItemId aItemId | Id of the item to be removed |
| IMPORT_C void | RemoveObserver | ( | MFsTreeListObserver & | aTreeListObserver | ) |
Removes observer from the list of observers
| MFsTreeListObserver & aTreeListObserver | Reference to the list observer |
| IMPORT_C TFsScrollbarVisibility | ScrollbarVisibility | ( | ) | const |
Returns information about scrollbars used by list visual
| IMPORT_C void | SetBorderL | ( | const TBool | aVisible, |
| CAlfTexture * | aBorderTexture = 0 | |||
| ) | [virtual] | |||
Sets visiblity of the border
| const TBool aVisible | |
| CAlfTexture * aBorderTexture = 0 |
| IMPORT_C void | SetDirectTouchMode | ( | const TBool | aDirectTouchMode | ) |
Sets direct touch mode.
| const TBool aDirectTouchMode | ETrue if list should work as in direct touch, EFalse otherwise. |
| IMPORT_C void | SetFadeInEffectTime | ( | TInt | aFadeTime | ) |
The functions sets fade-in's effect duration.
| TInt aFadeTime | A time in miliseconds for fade in effect. |
| IMPORT_C void | SetFadeOutEffectTime | ( | TInt | aFadeTime | ) |
The functions sets fade-out's effect duration.
| TInt aFadeTime | A time in miliseconds for fade-out effect. |
| IMPORT_C void | SetFocusedItemL | ( | const TFsTreeItemId | aItemId | ) |
Sets the focus (highlight) upon the item with given id
| const TFsTreeItemId aItemId | Id of the item that is to be focused (highlighted) |
| IMPORT_C void | SetFocusedL | ( | const TBool | aFocused | ) |
Sets focus state of list component
| const TBool aFocused | status of the focus to be set |
| IMPORT_C void | SetIndentationL | ( | const TInt | aIndentation | ) |
Enables or disables indention for list
| const TInt aIndentation | Indentation in pixels. |
| IMPORT_C void | SetItemDataL | ( | MFsTreeItemData & | aData, |
| const TFsTreeItemId | aItemId | |||
| ) | ||||
Sets the reference to the item/node data
| MFsTreeItemData & aData | Reference to the item/node data |
| const TFsTreeItemId aItemId | Id of the item/node |
| IMPORT_C void | SetItemVisualizerL | ( | MFsTreeItemVisualizer & | aVisualizer, |
| const TFsTreeItemId | aItemId | |||
| ) | ||||
Sets the reference to the item visualizer
| MFsTreeItemVisualizer & aVisualizer | Reference to the new item's visualizer |
| const TFsTreeItemId aItemId | Id of the item |
| IMPORT_C void | SetItemsAlwaysExtendedL | ( | TBool | aAlwaysExtended | ) |
The functions sets wether all item in the list should be always in extended state or in normal state. The list view is refreshed.
| TBool aAlwaysExtended | ETrue if items should be always extended. EFalse if items should be in normal state. |
| IMPORT_C void | SetLoopingType | ( | const TFsTreeListLoopingType | aLoopingType | ) |
Sets type of list's looping.
| const TFsTreeListLoopingType aLoopingType | type of list looping. |
| IMPORT_C void | SetMarkTypeL | ( | const TFsTreeListMarkType | aFlag | ) |
Enables or disables marking of list items
| const TFsTreeListMarkType aFlag | Type of markability for the list |
| IMPORT_C void | SetScrollBarsL | ( | const TFsTreeListScrollbars | aFlag | ) |
Old API - to be removed
| const TFsTreeListScrollbars aFlag | Scrollbar type for the list |
| IMPORT_C void | SetScrollTime | ( | TInt | aScrollTime, |
| TReal | aScrollAcceleration = 0.0 | |||
| ) | ||||
Function sets the time of list scroll per item and the scroll acceleration rate.
| IMPORT_C void | SetScrollbarVisibilityL | ( | const TFsScrollbarVisibility | aVisibility | ) |
Enables or disables scrollbars
| const TFsScrollbarVisibility aVisibility |
| IMPORT_C void | SetShadowL | ( | const TBool | aVisible | ) |
Sets visiblity of the shadow
| const TBool aVisible |
| IMPORT_C void | SetSlideInDirection | ( | MFsTreeVisualizer::TFsSlideEffect | aDirection | ) |
The function sets direction of the slide in effect.
| MFsTreeVisualizer::TFsSlideEffect aDirection | A direction of the slide in effect. |
| IMPORT_C void | SetSlideInDuration | ( | TInt | aTimeMiliseconds | ) |
The function sets duration of the slide-in effect.
| TInt aTimeMiliseconds | Slide in time in milliseconds. |
| IMPORT_C void | SetSlideOutDirection | ( | MFsTreeVisualizer::TFsSlideEffect | aDirection | ) |
The function sets direction of the slide out effect.
| MFsTreeVisualizer::TFsSlideEffect aDirection | A direction of the slide out effect. |
| IMPORT_C void | SetSlideOutDuration | ( | TInt | aTimeMiliseconds | ) |
The function sets duration of the slide-out effect.
| TInt aTimeMiliseconds | Slide out time in milliseconds. |
| IMPORT_C void | SetTextMarqueeCycleStartDelay | ( | const TInt | aCycleStartDelay | ) |
Sets a delay for each cycle start.
| const TInt aCycleStartDelay | Time after which the text marquee cycle starts (in miliseconds). |
| IMPORT_C void | SetTextMarqueeRepetitions | ( | const TInt | aMarqueeRepetitions | ) |
Sets repetitions number of marquee cycle.
| const TInt aMarqueeRepetitions |
| IMPORT_C void | SetTextMarqueeSpeed | ( | const TInt | aPixelsPerSec | ) |
Sets the speed of marquee.
| const TInt aPixelsPerSec | How many pixels per second. |
| IMPORT_C void | SetTextMarqueeStartDelay | ( | const TInt | aStartDelay | ) |
Sets delay for text marquee start.
| const TInt aStartDelay | Time after which the text marquee starts (in miliseconds). |
| IMPORT_C void | SetTextMarqueeType | ( | const TFsTextMarqueeType | aMarquee | ) |
Sets the type of text marquee.
| const TFsTextMarqueeType aMarquee | Type of marquee. |
| IMPORT_C void | SetTreeVisualizer | ( | CFsTreeVisualizerBase & | aTreeV | ) |
Sets a tree visualizer for the list
| CFsTreeVisualizerBase & aTreeV | Reference to the tree visualizer that the tree list will be using |
| IMPORT_C void | ShowListL | ( | const TBool | aFadeIn = EFalse, |
| const TBool | aSlideIn = EFalse | |||
| ) | ||||
Displays the list.
| IMPORT_C MFsTreeVisualizer::TFsSlideEffect | SlideInDirection | ( | ) | const |
The function returns direction of the slide in effect.
| IMPORT_C TInt | SlideInDuration | ( | ) | const |
The function returns slide in effect's duration.
| IMPORT_C MFsTreeVisualizer::TFsSlideEffect | SlideOutDirection | ( | ) | const |
The function returns direction of the slide out effect.
| IMPORT_C TInt | SlideOutDuration | ( | ) | const |
The function returns slide out effect's duration.
| IMPORT_C TInt | TextMarqueeCycleStartDelay | ( | ) | const |
Returns a delay for each cycle start.
| IMPORT_C TInt | TextMarqueeRepetitions | ( | ) | const |
Returns repetitions number of marquee cycle.
| IMPORT_C TFsTextMarqueeType | TextMarqueeType | ( | ) | const |
Returns the type of text marquee.
| IMPORT_C CFsAlfTextStyleManager & | TextStyleManager | ( | ) | const |
Gets the reference to the text style manager.
| IMPORT_C CAlfControl * | TreeControl | ( | ) | const |
Returns a hitckcock control associated with the component.
| IMPORT_C CFsTreeVisualizerBase & | TreeVisualizer | ( | ) | const |
Gets the reference to the tree visualizer
| IMPORT_C void | TreeVisualizerEventL | ( | const TFsTreeVisualizerEvent | aEvent, |
| const TFsTreeItemId | aId, | |||
| const TPoint & | aPoint | |||
| ) | const [virtual] | |||
| const TFsTreeVisualizerEvent aEvent | |
| const TFsTreeItemId aId | |
| const TPoint & aPoint |
Pre-defined types of markability in list
| EFsTreeListNonMarkable | |
| EFsTreeListMarkable | |
| EFsTreeListMultiMarkable |
Pre-defined types of scrolling in list OLD API - to be removed.
| EFsTreeListNoScrollbars | |
| EFsTreeListVerticalScrollbar |
| TFsTreeListScrollbars | iHasScrollBars | [protected] |
part of OLD API - to be removed. SScrollbar flag
| CFsAlfTextStyleManager * | iTextStyleManager | [protected] |
Text style manager. Own
| CFsTreeControl * | iTreeControl | [protected] |
Controller class for the list Own
| CFsTreeVisualizerBase * | iTreeVisualizer | [protected] |
Visualizer class Not own
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.