46#include "TreeItemObjectSelection.hh"
75 return ( dataType_ & _type);
100 return (
parent()->
id() );
105bool TreeItemObjectSelection::isGroup() {
152 while ( parentPointer ) {
155 if ( parentPointer->
childCount() > ( thisPointer->
row() + 1) ) {
160 thisPointer = parentPointer;
179 while ( current->
parent() != 0 ) {
181 current = current->
parent();
236 if ( id_ == _objectId )
254 if (
name() == _name )
272 QList<TreeItemObjectSelection*>::iterator i;
281 std::cerr <<
"TreeItemObjectSelection: Illegal remove request" << std::endl;
292 QList< TreeItemObjectSelection* > items;
300 items.push_back(
this);
const DataType DATA_ALL(UINT_MAX)
Identifier for all available objects.
const DataType DATA_GROUP(1)
Items used for Grouping.
QList< TreeItemObjectSelection * > childItems_
Children of this node.
QList< TreeItemObjectSelection * > getLeafs()
get all leafes of the tree below this object ( These will be all visible objects )
TreeItemObjectSelection * next()
DataType dataType()
dataType
void removeChild(TreeItemObjectSelection *_item)
Remove a child from this object.
void deleteSubtree()
delete the whole subtree below this item ( The item itself is not touched )
TreeItemObjectSelection * parentItem_
Parent item or 0 if rootnode.
void setParent(TreeItemObjectSelection *_parent)
Set the parent pointer.
TreeItemObjectSelection * childExists(int _objectId)
Check if the element exists in the subtree of this element.
void appendChild(TreeItemObjectSelection *child)
add a child to this node
TreeItemObjectSelection * parent()
Get the parent item ( 0 if rootitem )
int row() const
get the row of this item from the parent
int childCount() const
get the number of children
TreeItemObjectSelection * child(int row)
return a child