MNE-CPP  beta 1.0
sensorwidget.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef SENSORWIDGET_H
37 #define SENSORWIDGET_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "sensormodel.h"
45 
46 
47 //*************************************************************************************************************
48 //=============================================================================================================
49 // QT INCLUDES
50 //=============================================================================================================
51 
52 #include <QWidget>
53 #include <QGraphicsView>
54 #include <QGraphicsScene>
55 
56 
57 //*************************************************************************************************************
58 //=============================================================================================================
59 // DEFINE NAMESPACE XDISPLIB
60 //=============================================================================================================
61 
62 namespace XDISPLIB
63 {
64 
65 
66 //=============================================================================================================
72 class SensorWidget : public QWidget
73 {
74  Q_OBJECT
75 public:
76 
77  //=========================================================================================================
84  SensorWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
85 
86  //=========================================================================================================
90  void createUI();
91 
92  //=========================================================================================================
96  void drawChannels();
97 
98  //=========================================================================================================
104  void setModel(SensorModel *model);
105 
106  //=========================================================================================================
114  void contextUpdate(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector<int> & roles = QVector<int> ());
115 
116  //=========================================================================================================
120  void contextUpdate();
121 
122 private:
123  SensorModel* m_pSensorModel;
124  QGraphicsView* m_pGraphicsView;
125  QGraphicsScene* m_pGraphicsScene;
127 };
128 
129 } // NAMESPACE
130 
131 #endif // SENSORWIDGET_H
The SensorWidget class provides the sensor selection widget.
Definition: sensorwidget.h:72
The SensorModel class implements a table model which holds the sensor model properties.
Definition: sensormodel.h:37
void setModel(SensorModel *model)
SensorWidget(QWidget *parent=0, Qt::WindowFlags f=0)