Isis Developer Reference
|
Base class for an item in the tree. More...
#include <AbstractTreeItem.h>
Public Types | |
enum | InternalPointerType { None , Point , Measure , ImageAndNet } |
Public Member Functions | |
AbstractTreeItem (AbstractTreeItem *parent=0) | |
virtual | ~AbstractTreeItem () |
AbstractTreeItem * | parent () const |
void | setParent (AbstractTreeItem *newParent) |
int | row () const |
virtual void | addChild (AbstractTreeItem *child)=0 |
virtual QList< AbstractTreeItem * > | getChildren () const =0 |
virtual AbstractTreeItem * | childAt (int row) const =0 |
virtual int | childCount () const =0 |
virtual AbstractTreeItem * | getFirstVisibleChild () const =0 |
virtual AbstractTreeItem * | getLastVisibleChild () const =0 |
virtual int | indexOf (AbstractTreeItem *child) const =0 |
virtual void | setFirstVisibleChild (AbstractTreeItem *child)=0 |
virtual void | setLastVisibleChild (AbstractTreeItem *child)=0 |
virtual QVariant | getData () const =0 |
virtual QVariant | getData (QString columnTitle) const =0 |
virtual void | setData (QString const &columnTitle, QString const &newData)=0 |
virtual bool | isDataEditable (QString columnTitle) const =0 |
virtual void | deleteSource ()=0 |
virtual InternalPointerType | getPointerType () const =0 |
virtual void * | getPointer () const =0 |
virtual QString | getFormattedData () const |
virtual QString | getFormattedData (QString columnTitle) const |
virtual bool | hasMeasure (ControlMeasure *) const |
virtual bool | hasImage (QString imageSerial) const |
virtual bool | hasPoint (ControlPoint *) const |
virtual AbstractTreeItem * | getNextVisiblePeer () const |
virtual void | setNextVisiblePeer (AbstractTreeItem *next) |
virtual void | setExpanded (bool newState) |
virtual bool | isExpanded () const |
virtual void | setSelected (bool newState) |
virtual void | setSelectable (bool newSelectable) |
virtual bool | isSelected () const |
virtual bool | isSelectable () const |
virtual void | setVisible (bool newState) |
virtual bool | isVisible () const |
virtual int | getDataWidth () const |
virtual int | getDepth () const |
virtual void | setLastVisibleFilteredItem (AbstractTreeItem *item) |
virtual const AbstractTreeItem * | getLastVisibleFilteredItem () const |
Protected Slots | |
virtual void | sourceDeleted ()=0 |
Protected Member Functions | |
virtual void | calcDataWidth (int avgCharWidth) |
Static Protected Member Functions | |
static double | catchNull (QString) |
static QString | catchNull (QVariant) |
Base class for an item in the tree.
This class represents an arbitrary item in the tree. Some of the data access methods are provided for compatibility with the table models (i.e. by column).
Isis::AbstractTreeItem::AbstractTreeItem | ( | AbstractTreeItem * | parent = 0 | ) |
|
virtual |
|
pure virtual |
Implemented in Isis::AbstractLeafItem, Isis::AbstractParentItem, Isis::ConnectionParentItem, and Isis::PointParentItem.
|
protectedvirtual |
|
staticprotected |
References Isis::Null.
Referenced by getFormattedData(), getFormattedData(), Isis::AbstractMeasureItem::setData(), and Isis::AbstractPointItem::setData().
|
staticprotected |
References Isis::Null.
|
pure virtual |
Implemented in Isis::AbstractLeafItem, and Isis::AbstractParentItem.
Referenced by hasImage(), hasMeasure(), and hasPoint().
|
pure virtual |
Implemented in Isis::AbstractLeafItem, and Isis::AbstractParentItem.
Referenced by hasImage(), hasMeasure(), and hasPoint().
|
pure virtual |
Implemented in Isis::AbstractImageItem, Isis::AbstractMeasureItem, Isis::AbstractNullDataItem, and Isis::AbstractPointItem.
|
pure virtual |
Implemented in Isis::AbstractLeafItem, and Isis::AbstractParentItem.
Referenced by Isis::TableViewContent::mouseMoveEvent(), Isis::TableViewContent::mousePressEvent(), and Isis::TreeViewContent::mousePressEvent().
|
pure virtual |
Implemented in Isis::AbstractImageItem, Isis::AbstractMeasureItem, Isis::AbstractNullDataItem, Isis::AbstractPointItem, and Isis::BusyLeafItem.
Referenced by getFormattedData(), and getFormattedData().
|
pure virtual |
Implemented in Isis::AbstractImageItem, Isis::AbstractMeasureItem, Isis::AbstractNullDataItem, and Isis::AbstractPointItem.
|
virtual |
References _FILEINFO_, and Isis::IException::Programmer.
|
virtual |
References parent().
|
pure virtual |
Implemented in Isis::AbstractLeafItem, and Isis::AbstractParentItem.
Referenced by Isis::TreeViewContent::mouseMoveEvent(), and Isis::TreeViewContent::mousePressEvent().
|
virtual |
References catchNull(), and getData().
Referenced by calcDataWidth(), Isis::AbstractMeasureItem::deleteSource(), Isis::AbstractPointItem::deleteSource(), Isis::MeasureTableModel::getMeasureWarningMessage(), Isis::PointTableModel::getPointWarningMessage(), Isis::MeasureTableDelegate::readData(), Isis::PointTableDelegate::readData(), Isis::MeasureTableDelegate::readData(), and Isis::PointTableDelegate::readData().
|
virtual |
References catchNull(), and getData().
|
pure virtual |
Implemented in Isis::AbstractLeafItem, and Isis::AbstractParentItem.
Referenced by Isis::AbstractTreeModel::getItems().
|
virtual |
Reimplemented in Isis::RootItem.
|
virtual |
Referenced by Isis::AbstractTreeModel::getVisibleTopLevelItemCount().
|
pure virtual |
Implemented in Isis::AbstractImageItem, Isis::AbstractMeasureItem, Isis::AbstractNullDataItem, and Isis::AbstractPointItem.
Referenced by Isis::PointTableModel::getPointWarningMessage(), Isis::MeasureTableDelegate::readData(), Isis::PointTableDelegate::readData(), Isis::MeasureTableDelegate::readData(), and Isis::PointTableDelegate::readData().
|
pure virtual |
Implemented in Isis::AbstractImageItem, Isis::AbstractMeasureItem, Isis::AbstractNullDataItem, and Isis::AbstractPointItem.
Referenced by Isis::AbstractTableModel::handleTreeSelectionChanged(), Isis::PointTableModel::handleTreeSelectionChanged(), Isis::TableViewContent::mousePressEvent(), and Isis::TreeViewContent::mousePressEvent().
|
virtual |
Reimplemented in Isis::AbstractImageItem.
References childAt(), and childCount().
Referenced by Isis::AbstractImageItem::hasImage().
|
virtual |
Reimplemented in Isis::AbstractMeasureItem.
References childAt(), and childCount().
|
virtual |
Reimplemented in Isis::AbstractPointItem.
References childAt(), and childCount().
|
pure virtual |
Implemented in Isis::AbstractLeafItem, and Isis::AbstractParentItem.
Referenced by row().
|
pure virtual |
Implemented in Isis::AbstractImageItem, Isis::AbstractMeasureItem, Isis::AbstractNullDataItem, and Isis::AbstractPointItem.
|
virtual |
|
virtual |
Reimplemented in Isis::BusyLeafItem.
Referenced by Isis::TreeViewContent::mouseMoveEvent(), and Isis::TreeViewContent::mousePressEvent().
|
virtual |
|
virtual |
AbstractTreeItem * Isis::AbstractTreeItem::parent | ( | ) | const |
int Isis::AbstractTreeItem::row | ( | ) | const |
References indexOf().
Referenced by Isis::AbstractParentItem::childAt().
|
pure virtual |
Implemented in Isis::AbstractImageItem, Isis::AbstractMeasureItem, Isis::AbstractNullDataItem, and Isis::AbstractPointItem.
Referenced by Isis::MeasureTableDelegate::saveData(), and Isis::PointTableDelegate::saveData().
|
virtual |
|
pure virtual |
Implemented in Isis::AbstractLeafItem, and Isis::AbstractParentItem.
|
pure virtual |
Implemented in Isis::AbstractLeafItem, and Isis::AbstractParentItem.
|
virtual |
Reimplemented in Isis::RootItem.
References _FILEINFO_, and Isis::IException::Programmer.
|
virtual |
void Isis::AbstractTreeItem::setParent | ( | AbstractTreeItem * | newParent | ) |
Referenced by Isis::AbstractParentItem::addChild().
|
virtual |
|
virtual |
|
virtual |
|
protectedpure virtualslot |
Implemented in Isis::AbstractImageItem, Isis::AbstractMeasureItem, Isis::AbstractNullDataItem, and Isis::AbstractPointItem.