MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
bidsview.h
Go to the documentation of this file.
1//=============================================================================================================
38#ifndef BIDSVIEW_H
39#define BIDSVIEW_H
40
41//=============================================================================================================
42// INCLUDES
43//=============================================================================================================
44
45#include "../disp_global.h"
46#include "abstractview.h"
47
48//=============================================================================================================
49// QT INCLUDES
50//=============================================================================================================
51
52#include <QWidget>
53#include <QAbstractItemModel>
54#include <QItemSelectionModel>
55#include <QStandardItem>
56
57//=============================================================================================================
58// EIGEN INCLUDES
59//=============================================================================================================
60
61//=============================================================================================================
62// FORWARD DECLARATIONS
63//=============================================================================================================
64
65namespace Ui {
66 class BidsViewWidget;
67}
68
69//=============================================================================================================
70// DEFINE NAMESPACE DISPLIB
71//=============================================================================================================
72
73namespace DISPLIB
74{
75
76//=============================================================================================================
83{
84 Q_OBJECT
85
86public:
87 //=========================================================================================================
93 explicit BidsView(QWidget *parent = 0);
94
95 //=========================================================================================================
99 virtual ~BidsView();
100
101 //=========================================================================================================
107 void setModel(QAbstractItemModel *pModel);
108
109 //=========================================================================================================
113 virtual void saveSettings();
114
115 //=========================================================================================================
119 virtual void loadSettings();
120
121 //=========================================================================================================
127 virtual void updateGuiMode(GuiMode mode);
128
129 //=========================================================================================================
135 virtual void updateProcessingMode(ProcessingMode mode);
136
137 //=========================================================================================================
141 void clearView();
142
143private:
144
145 //=========================================================================================================
151 void customMenuRequested(QPoint pos);
152
153 //=========================================================================================================
160 void onCurrentItemChanged(const QItemSelection &selected,
161 const QItemSelection &deselected);
162
163 //=========================================================================================================
170 void onNewFileLoaded(int iSubject,
171 int iModel);
172
173 //=========================================================================================================
179 void onNewItemIndex(QModelIndex itemIndex);
180
181 //=========================================================================================================
185 void onModelReset();
186
187 //=========================================================================================================
193 void keyPressEvent(QKeyEvent *event);
194
195 Ui::BidsViewWidget *m_pUi;
197signals:
198 //=========================================================================================================
204 void removeItem(const QModelIndex& pIndex);
205
206 //=========================================================================================================
212 void selectedModelChanged(const QVariant& data);
213
214 //=========================================================================================================
220 void selectedItemChanged(const QModelIndex& pIndex);
221
222 //=========================================================================================================
228 void onAddSubject(const QString &sSubjectName);
229
230 //=========================================================================================================
237 void onAddSession(QModelIndex subjectIndex,
238 const QString &sSessionName);
239
240 //=========================================================================================================
247 void onMoveSession(QModelIndex subjectIndex,
248 QModelIndex sessionIndex);
249
250 //=========================================================================================================
257 void onMoveData(QModelIndex sessionIndex,
258 QModelIndex dataIndex);
259
260};
261} // NAMESPACE DISPLIB
262#endif // BIDSVIEW_H
#define DISPSHARED_EXPORT
Definition disp_global.h:55
The AbstractView class provides the base calss for all Disp viewers.
The DataManagerView class provides the plugin control.
Definition bidsview.h:83
void onAddSession(QModelIndex subjectIndex, const QString &sSessionName)
void onAddSubject(const QString &sSubjectName)
void onMoveSession(QModelIndex subjectIndex, QModelIndex sessionIndex)
void selectedItemChanged(const QModelIndex &pIndex)
void onMoveData(QModelIndex sessionIndex, QModelIndex dataIndex)
void selectedModelChanged(const QVariant &data)
void removeItem(const QModelIndex &pIndex)
AbstractView class declaration.