MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
DISP3DLIB::MetaTreeItem Class Reference

Provides a generic brain tree item. More...

#include <metatreeitem.h>

Public Types

typedef QSharedPointer< MetaTreeItemSPtr
 
typedef QSharedPointer< const MetaTreeItemConstSPtr
 

Signals

void dataChanged (const QVariant &data)
 
- Signals inherited from DISP3DLIB::AbstractTreeItem
void checkStateChanged (const Qt::CheckState &checkState)
 

Public Member Functions

 MetaTreeItem (int iType=MetaTreeItemTypes::UnknownItem, const QString &text="")
 
void setData (const QVariant &value, int role=Qt::UserRole+1)
 
- Public Member Functions inherited from DISP3DLIB::AbstractTreeItem
 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)
 
AbstractTreeItemoperator<< (AbstractTreeItem *newItem)
 
AbstractTreeItemoperator<< (AbstractTreeItem &newItem)
 

Protected Member Functions

void initItem ()
 
- Protected Member Functions inherited from DISP3DLIB::AbstractTreeItem
virtual void onCheckStateChanged (const Qt::CheckState &checkState)
 

Additional Inherited Members

- Static Public Member Functions inherited from DISP3DLIB::AbstractTreeItem
static void addItemWithDescription (QStandardItem *pItemParent, QStandardItem *pItemAdd)
 
- Protected Attributes inherited from DISP3DLIB::AbstractTreeItem
int m_iType
 
Qt::CheckState m_checkStateOld
 

Detailed Description

Provides a generic brain tree item.

MetaTreeItem provides a generic brain tree item to hold meta information about other brain tree items.

Definition at line 74 of file metatreeitem.h.

Inheritance diagram for DISP3DLIB::MetaTreeItem:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const MetaTreeItem> DISP3DLIB::MetaTreeItem::ConstSPtr

Const shared pointer type for MetaTreeItem class.

Definition at line 80 of file metatreeitem.h.

◆ SPtr

Shared pointer type for MetaTreeItem class.

Definition at line 79 of file metatreeitem.h.

Constructor & Destructor Documentation

◆ MetaTreeItem()

MetaTreeItem::MetaTreeItem ( int  iType = MetaTreeItemTypes::UnknownItem,
const QString &  text = "" 
)
explicit

Default constructor.

Parameters
[in]iTypeThe type of the item. See types.h for declaration and definition.
[in]textThe text of this item. This is also by default the displayed name of the item in a view.

Definition at line 63 of file metatreeitem.cpp.

Member Function Documentation

◆ dataChanged

void DISP3DLIB::MetaTreeItem::dataChanged ( const QVariant &  data)
signal

Emit this signal whenever the data of this item changed.

◆ initItem()

void MetaTreeItem::initItem ( )
protectedvirtual

AbstractTreeItem functions

Reimplemented from DISP3DLIB::AbstractTreeItem.

Definition at line 71 of file metatreeitem.cpp.

◆ setData()

void MetaTreeItem::setData ( const QVariant &  value,
int  role = Qt::UserRole + 1 
)

AbstractTreeItem functions

Definition at line 163 of file metatreeitem.cpp.


The documentation for this class was generated from the following files: