Brief description of class still missing. More...
#include <TreeItem.h>
Public Member Functions | |
| virtual bool | isContainer () const |
| bool | isValidParent (const TreeContainer *parent) const |
| TreeContainer * | parent () |
| const TreeContainer * | parent () const |
| int | rank () const |
| virtual void | setParent (TreeContainer *parent) |
| virtual void | setRank (int r) |
| TreeItem (TreeContainer *parent=0) | |
| virtual const QString & | xml_tagName () const |
| virtual | ~TreeItem () |
Static Public Attributes | |
| static const QString | xmlTreeItemTag = "TreeItem" |
Brief description of class still missing.
Full description of class still missing
| QGpCoreTools::TreeItem::TreeItem | ( | TreeContainer * | parent = 0 | ) |
Description of constructor still missing
| virtual QGpCoreTools::TreeItem::~TreeItem | ( | ) | [inline, virtual] |
{}
| virtual bool QGpCoreTools::TreeItem::isContainer | ( | ) | const [inline, virtual] |
Reimplemented in QGpCoreTools::TreeContainer.
{return false;}
| bool QGpCoreTools::TreeItem::isValidParent | ( | const TreeContainer * | parent | ) | const |
Returns true if parent can be a valid parent. Circular references are checked.
References parent(), and TRACE.
Referenced by GeopsyCore::AbstractSignalGroup::setParent().
| TreeContainer* QGpCoreTools::TreeItem::parent | ( | ) | [inline] |
Reimplemented in GeopsyCore::AbstractSignalGroup, and QGpCoreTools::XMLGenericItem.
Referenced by QGpCoreTools::TreeContainer::containerIndex(), isValidParent(), setParent(), and TreeItem().
{return _parent;}
| const TreeContainer* QGpCoreTools::TreeItem::parent | ( | ) | const [inline] |
Reimplemented in GeopsyCore::AbstractSignalGroup, and QGpCoreTools::XMLGenericItem.
{return _parent;}
| int QGpCoreTools::TreeItem::rank | ( | ) | const |
Return the index of this item in children list of its parent. Without parents this function returns 0.
Reimplemented in QGpCoreTools::TreeContainer.
References QGpCoreTools::TreeContainer::rank(), and TRACE.
Referenced by QGpCoreTools::TreeContainer::rank().
| void QGpCoreTools::TreeItem::setParent | ( | TreeContainer * | parent | ) | [virtual] |
| void QGpCoreTools::TreeItem::setRank | ( | int | r | ) | [virtual] |
Set index of this item in children list of its parent. Without parents this function does nothing. If r is larger than the number of children in its parent, the rank is set to number of children less 1.
Reimplemented in QGpCoreTools::TreeContainer.
References QGpCoreTools::TreeContainer::rank(), QGpCoreTools::TreeContainer::setRank(), and TRACE.
Referenced by QGpCoreTools::TreeContainer::setRank().
| virtual const QString& QGpCoreTools::TreeItem::xml_tagName | ( | ) | const [inline, virtual] |
const QString QGpCoreTools::TreeItem::xmlTreeItemTag = "TreeItem" [static] |