MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
data3Dtreedelegate.h
Go to the documentation of this file.
1//=============================================================================================================
36#ifndef DISP3DLIB_DATA3DTREEDELEGATE_H
37#define DISP3DLIB_DATA3DTREEDELEGATE_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../../disp3D_global.h"
44#include "../model/items/common/abstracttreeitem.h"
45
46//=============================================================================================================
47// QT INCLUDES
48//=============================================================================================================
49
50#include <QStyledItemDelegate>
51#include <QColorDialog>
52
53//=============================================================================================================
54// EIGEN INCLUDES
55//=============================================================================================================
56
57//=============================================================================================================
58// FORWARD DECLARATIONS
59//=============================================================================================================
60
61//=============================================================================================================
62// DEFINE NAMESPACE DISP3DLIB
63//=============================================================================================================
64
65namespace DISP3DLIB
66{
67
68//=============================================================================================================
69// DISP3DLIB FORWARD DECLARATIONS
70//=============================================================================================================
71
72//=============================================================================================================
78class DISP3DSHARED_EXPORT Data3DTreeDelegate : public QStyledItemDelegate
79{
80 Q_OBJECT
81
82public:
83 explicit Data3DTreeDelegate(QObject *parent = 0);
84
85 //=========================================================================================================
89 QWidget *createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const;
90 void setEditorData(QWidget* editor, const QModelIndex& index) const;
91 void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const;
92 void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const;
93
94protected:
95 void onEditorEdited();
96
97protected:
98};
99} //NAMESPACE DISP3DLIB
100
101#endif // DISP3DLIB_DATA3DTREEDELEGATE_H
#define DISP3DSHARED_EXPORT
Provides a delegate to render user specific input methods in the tree model.