MNE-CPP  beta 1.0
eventwindow.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef EVENTWINDOW_H
38 #define EVENTWINDOW_H
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "mainwindow.h"
46 #include "ui_eventwindowdock.h"
47 #include "../Delegates/eventdelegate.h"
48 #include "../Models/eventmodel.h"
49 
50 
51 //*************************************************************************************************************
52 //=============================================================================================================
53 // QT INCLUDES
54 //=============================================================================================================
55 
56 #include <QDockWidget>
57 #include <QColorDialog>
58 
59 
60 //*************************************************************************************************************
61 //=============================================================================================================
62 // DEFINE NAMESPACE MNEBrowseRawQt
63 //=============================================================================================================
64 
65 namespace MNEBrowseRawQt
66 {
67 
68 //*************************************************************************************************************
69 //=============================================================================================================
70 // DEFINE FORWARD DECLARATIONS
71 //=============================================================================================================
72 
73 class MainWindow;
74 
80 class EventWindow : public QDockWidget
81 {
82  Q_OBJECT
83 
84 public:
85  //=========================================================================================================
91  EventWindow(QWidget *parent = 0);
92 
93  //=========================================================================================================
98  ~EventWindow();
99 
100  //=========================================================================================================
104  void init();
105 
106  //=========================================================================================================
110  QTableView* getEventTableView();
111 
112  //=========================================================================================================
117 
118  //=========================================================================================================
123 
124 private:
125  //=========================================================================================================
129  void initMVCSettings();
130 
131  //=========================================================================================================
135  void initCheckBoxes();
136 
137  //=========================================================================================================
141  void initComboBoxes();
142 
143  //=========================================================================================================
147  void initToolButtons();
148 
149  //=========================================================================================================
153  void initPushButtons();
154 
155  //=========================================================================================================
159  void updateComboBox(const QString &currentEventType);
160 
161  //=========================================================================================================
165  bool event(QEvent * event);
166 
167  Ui::EventWindowDockWidget *ui;
169  MainWindow* m_pMainWindow;
171  QSettings m_qSettings;
173  EventDelegate* m_pEventDelegate;
174  EventModel* m_pEventModel;
176  QColorDialog* m_pColordialog;
178 protected slots:
179  //=========================================================================================================
186  void jumpToEvent(const QModelIndex &current, const QModelIndex &previous);
187 
188  //=========================================================================================================
193 
194  //=========================================================================================================
198  void addEventToEventModel();
199 
200  //=========================================================================================================
204  void addNewEventType();
205 };
206 
207 } // NAMESPACE MNEBrowseRawQt
208 
209 #endif // EVENTWINDOW_H
The EventWindow class provides the event dock window.
Definition: eventwindow.h:80
EventWindow(QWidget *parent=0)
Definition: eventwindow.cpp:58
void jumpToEvent(const QModelIndex &current, const QModelIndex &previous)
EventDelegate * getEventDelegate()
QTableView * getEventTableView()