MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
abstracttreeitem.h
Go to the documentation of this file.
1//=============================================================================================================
35#ifndef DISP3DLIB_ABSTRACTTREEITEM_H
36#define DISP3DLIB_ABSTRACTTREEITEM_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../../../../disp3D_global.h"
43#include "types.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QStandardItem>
50
51//=============================================================================================================
52// EIGEN INCLUDES
53//=============================================================================================================
54
55//=============================================================================================================
56// FORWARD DECLARATIONS
57//=============================================================================================================
58
59//=============================================================================================================
60// DEFINE NAMESPACE DISP3DLIB
61//=============================================================================================================
62
63namespace DISP3DLIB
64{
65
66//=============================================================================================================
67// DISP3DLIB FORWARD DECLARATIONS
68//=============================================================================================================
69
70//=============================================================================================================
76class DISP3DSHARED_EXPORT AbstractTreeItem : public QObject, public QStandardItem
77{
78 Q_OBJECT
79
80public :
81 //=========================================================================================================
88 AbstractTreeItem(int iType = Data3DTreeModelItemTypes::UnknownItem, const QString& text = "");
89
90 //=========================================================================================================
94 void setData(const QVariant& value, int role = Qt::UserRole + 1);
95 int type() const;
96
97 //=========================================================================================================
104 static void addItemWithDescription(QStandardItem* pItemParent, QStandardItem* pItemAdd);
105
106 //=========================================================================================================
114 QList<QStandardItem*> findChildren(int type);
115
116 //=========================================================================================================
124 QList<QStandardItem*> findChildren(const QString& text);
125
126 //=========================================================================================================
132 AbstractTreeItem &operator<<(AbstractTreeItem* newItem);
133
134 //=========================================================================================================
140 AbstractTreeItem &operator<<(AbstractTreeItem& newItem);
141
142protected:
143 //=========================================================================================================
147 virtual void initItem();
148
149 //=========================================================================================================
155 virtual void onCheckStateChanged(const Qt::CheckState& checkState);
156
158 Qt::CheckState m_checkStateOld;
160signals:
161 //=========================================================================================================
167 void checkStateChanged(const Qt::CheckState& checkState);
168};
169} //NAMESPACE DISP3DLIB
170
171#endif // DISP3DLIB_ABSTRACTTREEITEM_H
#define DISP3DSHARED_EXPORT
Contains general application specific types.
Provides the basic tree item.
void checkStateChanged(const Qt::CheckState &checkState)