|
Developer Documentation
|
Public Member Functions | |
| TreeItem (int _id, const QString &_name, DataType _type, TreeItem *_parent) | |
| int | id () |
| id | |
| DataType | dataType () |
| dataType | |
| bool | dataType (DataType _type) |
| int | group () |
| group | |
| bool | isGroup () |
| bool | target () |
| target | |
| void | target (bool _target) |
| bool | source () |
| source | |
| void | source (bool _source) |
| bool | visible () |
| visible | |
| void | visible (bool _visible) |
| QString | name () |
| name | |
| void | name (const QString &_name) |
| TreeItem * | next () |
| int | level () |
| TreeItem (int _id, const QString &_name, DataType _type, TreeItem *_parent) | |
| int | id () |
| id | |
| DataType | dataType () |
| dataType | |
| bool | dataType (DataType _type) |
| int | group () |
| group | |
| bool | isGroup () |
| bool | visible () |
| visible | |
| void | visible (bool _visible) |
| QString | name () |
| name | |
| void | name (const QString &_name) |
| TreeItem * | next () |
| int | level () |
Tree : Parent nodes | |
| int | row () const |
| get the row of this item from the parent | |
| TreeItem * | parent () |
| Get the parent item ( 0 if root item ) | |
| void | setParent (TreeItem *_parent) |
| Set the parent pointer. | |
| int | row () const |
| get the row of this item from the parent | |
| TreeItem * | parent () |
| Get the parent item ( 0 if rootitem ) | |
| void | setParent (TreeItem *_parent) |
| Set the parent pointer. | |
Tree : Children | |
| TreeItem * | childExists (int _objectId) |
| Check if the element exists in the subtree of this element. | |
| void | appendChild (TreeItem *child) |
| add a child to this node | |
| TreeItem * | child (int row) |
| return a child | |
| int | childCount () const |
| get the number of children | |
| void | removeChild (TreeItem *_item) |
| Remove a child from this object. | |
| QList< TreeItem * > | getLeafs () |
| get all leafes of the tree below this object ( These will be all visible objects ) | |
| void | deleteSubtree () |
| delete the whole subtree below this item ( The item itself is not touched ) | |
| TreeItem * | childExists (int _objectId) |
| Check if the element exists in the subtree of this element. | |
| TreeItem * | childExists (QString _name) |
| Check if the element exists in the subtree of this element. | |
| void | appendChild (TreeItem *child) |
| add a child to this node | |
| TreeItem * | child (int row) |
| return a child | |
| int | childCount () const |
| get the number of children | |
| void | removeChild (TreeItem *_item) |
| Remove a child from this object. | |
| QList< TreeItem * > | getLeafs () |
| get all leafes of the tree below this object ( These will be all visible objects ) | |
| void | deleteSubtree () |
| delete the whole subtree below this item ( The item itself is not touched ) | |
Private Attributes | |
| int | id_ |
| DataType | dataType_ |
| bool | target_ |
| bool | source_ |
| bool | visible_ |
| QString | name_ |
| TreeItem * | parentItem_ |
| Parent item or 0 if root node. | |
| int | row_ |
| Index of this node in parent's childen. | |
| QList< TreeItem * > | childItems_ |
| Children of this node. | |
Static Private Attributes | |
| static QMap< int, TreeItem * > | kTreeMap_ |
| Acceleration map. | |
Definition at line 52 of file TreeItem.hh.
Definition at line 48 of file TreeItem.cc.
| TreeItem::~TreeItem | ( | ) |
Definition at line 63 of file TreeItem.cc.
| void TreeItem::appendChild | ( | TreeItem * | child | ) |
add a child to this node
Definition at line 248 of file TreeItem.cc.
| TreeItem * TreeItem::child | ( | int | row | ) |
return a child
Definition at line 257 of file TreeItem.cc.
| int TreeItem::childCount | ( | ) | const |
get the number of children
Definition at line 264 of file TreeItem.cc.
| TreeItem * TreeItem::childExists | ( | int | _objectId | ) |
Check if the element exists in the subtree of this element.
Definition at line 271 of file TreeItem.cc.
| TreeItem * TreeItem::childExists | ( | QString | _name | ) |
Check if the element exists in the subtree of this element.
Definition at line 249 of file TreeItem.cc.
| DataType TreeItem::dataType | ( | ) |
dataType
Definition at line 94 of file TreeItem.cc.
| bool TreeItem::dataType | ( | DataType | _type | ) |
Definition at line 84 of file TreeItem.cc.
| void TreeItem::deleteSubtree | ( | ) |
delete the whole subtree below this item ( The item itself is not touched )
Definition at line 343 of file TreeItem.cc.
| QList< TreeItem * > TreeItem::getLeafs | ( | ) |
get all leafes of the tree below this object ( These will be all visible objects )
Definition at line 326 of file TreeItem.cc.
| int TreeItem::group | ( | ) |
group
Definition at line 100 of file TreeItem.cc.
| int TreeItem::id | ( | ) |
id
Definition at line 78 of file TreeItem.cc.
| bool TreeItem::isGroup | ( | ) |
Definition at line 119 of file TreeItem.cc.
| int TreeItem::level | ( | ) |
level of the current object ( root node has level 0)
Definition at line 213 of file TreeItem.cc.
| int TreeItem::level | ( | ) |
level of the current object ( root node has level 0)
| QString TreeItem::name | ( | ) |
name
Definition at line 163 of file TreeItem.cc.
| void TreeItem::name | ( | const QString & | _name | ) |
Definition at line 169 of file TreeItem.cc.
| TreeItem * TreeItem::next | ( | ) |
Get the next item of the tree (Preorder traversal of the tree)
Definition at line 177 of file TreeItem.cc.
| TreeItem * TreeItem::next | ( | ) |
Get the next item of the tree (Preorder traversal of the tree)
| TreeItem * TreeItem::parent | ( | ) |
Get the parent item ( 0 if root item )
Definition at line 235 of file TreeItem.cc.
| void TreeItem::removeChild | ( | TreeItem * | _item | ) |
Remove a child from this object.
Definition at line 308 of file TreeItem.cc.
| int TreeItem::row | ( | ) | const |
get the row of this item from the parent
Definition at line 228 of file TreeItem.cc.
| void TreeItem::setParent | ( | TreeItem * | _parent | ) |
Set the parent pointer.
Definition at line 242 of file TreeItem.cc.
| bool TreeItem::source | ( | ) |
source
Definition at line 139 of file TreeItem.cc.
| void TreeItem::source | ( | bool | _source | ) |
Definition at line 145 of file TreeItem.cc.
| bool TreeItem::target | ( | ) |
target
Definition at line 127 of file TreeItem.cc.
| void TreeItem::target | ( | bool | _target | ) |
Definition at line 133 of file TreeItem.cc.
| bool TreeItem::visible | ( | ) |
visible
Definition at line 151 of file TreeItem.cc.
| void TreeItem::visible | ( | bool | _visible | ) |
Definition at line 157 of file TreeItem.cc.
|
private |
Children of this node.
Definition at line 120 of file TreeItem.hh.
|
private |
Definition at line 75 of file TreeItem.hh.
|
private |
Definition at line 74 of file TreeItem.hh.
|
staticprivate |
Acceleration map.
Definition at line 123 of file TreeItem.hh.
|
private |
Definition at line 99 of file TreeItem.hh.
|
private |
Parent item or 0 if root node.
Parent item or 0 if rootnode.
Definition at line 114 of file TreeItem.hh.
|
private |
Index of this node in parent's childen.
Definition at line 117 of file TreeItem.hh.
|
private |
Definition at line 97 of file TreeItem.hh.
|
private |
Definition at line 96 of file TreeItem.hh.
|
private |
Definition at line 98 of file TreeItem.hh.