MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Provides the basic tree item. More...
#include <abstracttreeitem.h>
Signals | |
void | checkStateChanged (const Qt::CheckState &checkState) |
Public Member Functions | |
AbstractTreeItem (int iType=Data3DTreeModelItemTypes::UnknownItem, const QString &text="") | |
void | setData (const QVariant &value, int role=Qt::UserRole+1) |
int | type () const |
QList< QStandardItem * > | findChildren (int type) |
QList< QStandardItem * > | findChildren (const QString &text) |
AbstractTreeItem & | operator<< (AbstractTreeItem *newItem) |
AbstractTreeItem & | operator<< (AbstractTreeItem &newItem) |
Static Public Member Functions | |
static void | addItemWithDescription (QStandardItem *pItemParent, QStandardItem *pItemAdd) |
Protected Member Functions | |
virtual void | initItem () |
virtual void | onCheckStateChanged (const Qt::CheckState &checkState) |
Protected Attributes | |
int | m_iType |
Qt::CheckState | m_checkStateOld |
Provides the basic tree item.
AbstractTreeItem provides AbstractTreeItem provides the basic tree item. This item should be used as a base class for all tree items throughout the disp3D library.
Definition at line 76 of file abstracttreeitem.h.
AbstractTreeItem::AbstractTreeItem | ( | int | iType = Data3DTreeModelItemTypes::UnknownItem , |
const QString & | text = "" |
||
) |
Default constructor.
[in] | iType | The type of the item. See types.h for declaration and definition. |
[in] | text | The text of this item. This is also by default the displayed name of the item in a view. |
Definition at line 58 of file abstracttreeitem.cpp.
|
static |
Adds an item with its toolTip as second column item as description to the model.
[in] | pItemParent | The parent item. |
[in] | pItemAdd | The item which is added as a row to the parent item. |
Definition at line 99 of file abstracttreeitem.cpp.
|
signal |
Emit this signal whenever this item's check state changed.
[in] | checkState | The current check state. |
QList< QStandardItem * > AbstractTreeItem::findChildren | ( | const QString & | text | ) |
Returns all children of this item based on their text.
[in] | text | The text of the child items which should be looked for. |
Definition at line 131 of file abstracttreeitem.cpp.
QList< QStandardItem * > AbstractTreeItem::findChildren | ( | int | type | ) |
Returns all children of this item based on their type.
[in] | type | The type of the child items which should be looked for. |
Definition at line 112 of file abstracttreeitem.cpp.
|
protectedvirtual |
Init this item.
Reimplemented in DISP3DLIB::SensorDataTreeItem, DISP3DLIB::MneDataTreeItem, DISP3DLIB::MeasurementTreeItem, DISP3DLIB::SensorSetTreeItem, DISP3DLIB::DigitizerSetTreeItem, DISP3DLIB::BemTreeItem, DISP3DLIB::MriTreeItem, DISP3DLIB::HemisphereTreeItem, DISP3DLIB::FsAnnotationTreeItem, DISP3DLIB::MetaTreeItem, and DISP3DLIB::SubjectTreeItem.
Definition at line 67 of file abstracttreeitem.cpp.
|
protectedvirtual |
Call this function whenever the check box of this item was checked.
[in] | checkState | The current checkstate. |
Reimplemented in DISP3DLIB::FsAnnotationTreeItem.
Definition at line 168 of file abstracttreeitem.cpp.
AbstractTreeItem & AbstractTreeItem::operator<< | ( | AbstractTreeItem & | newItem | ) |
Overloaded stream operator to add a child to this item based on a reference.
[in] | newItem | The new item as a reference. |
Definition at line 159 of file abstracttreeitem.cpp.
AbstractTreeItem & AbstractTreeItem::operator<< | ( | AbstractTreeItem * | newItem | ) |
Overloaded stream operator to add a child to this item based on a pointer.
[in] | newItem | The new item as a pointer. |
Definition at line 150 of file abstracttreeitem.cpp.
void AbstractTreeItem::setData | ( | const QVariant & | value, |
int | role = Qt::UserRole + 1 |
||
) |
QStandardItem functions
Definition at line 78 of file abstracttreeitem.cpp.
|
protected |
This item's old check state.
Definition at line 158 of file abstracttreeitem.h.
|
protected |
This item's type.
Definition at line 157 of file abstracttreeitem.h.