MNE-CPP  beta 1.0
filterwindow.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef FILTERWINDOW_H
38 #define FILTERWINDOW_H
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "ui_filterwindowdock.h"
46 #include "mainwindow.h"
47 #include "../Utils/filterplotscene.h"
48 
49 
50 //*************************************************************************************************************
51 //=============================================================================================================
52 // QT INCLUDES
53 //=============================================================================================================
54 
55 #include <QWidget>
56 #include <QSettings>
57 #include <QGraphicsScene>
58 #include <QSvgGenerator>
59 
60 
61 //*************************************************************************************************************
62 //=============================================================================================================
63 // DEFINE NAMESPACE MNEBrowseRawQt
64 //=============================================================================================================
65 
66 namespace MNEBrowseRawQt
67 {
68 
69 
70 //*************************************************************************************************************
71 //=============================================================================================================
72 // DEFINE FORWARD DECLARATIONS
73 //=============================================================================================================
74 
75 class MainWindow;
76 
82 class FilterWindow : public QDockWidget
83 {
84  Q_OBJECT
85 
86 public:
87  //=========================================================================================================
93  FilterWindow(MainWindow *mainWindow, QWidget *parent = 0);
94 
95  //=========================================================================================================
100  ~FilterWindow();
101 
102  //=========================================================================================================
106  void newFileLoaded();
107 
108 private:
109  //=========================================================================================================
113  void initSpinBoxes();
114 
115  //=========================================================================================================
119  void initButtons();
120 
121  //=========================================================================================================
125  void initComboBoxes();
126 
127  //=========================================================================================================
131  void initFilterPlot();
132 
133  //=========================================================================================================
137  void initTableViews();
138 
139  //=========================================================================================================
143  void resizeEvent(QResizeEvent * event);
144 
145  //=========================================================================================================
149  virtual void keyPressEvent(QKeyEvent * event);
150 
151  //=========================================================================================================
155  bool eventFilter(QObject *obj, QEvent *event);
156 
157  //=========================================================================================================
161  void updateFilterPlot();
162 
163  Ui::FilterWindowDockWidget *ui;
165  MainWindow* m_pMainWindow;
167  int m_iWindowSize;
168  int m_iFilterTaps;
170  QSettings m_qSettings;
172  FilterPlotScene* m_pFilterPlotScene;
174 protected slots:
175  //=========================================================================================================
181  void changeStateSpinBoxes(int currentIndex);
182 
183  //=========================================================================================================
188 
189  //=========================================================================================================
193  void applyFilter();
194 
195  //=========================================================================================================
199  void undoFilter();
200 
201  //=========================================================================================================
205  void exportFilterPlot();
206 
207  //=========================================================================================================
212 };
213 
214 } // NAMESPACE MNEBrowseRawQt
215 
216 #endif // FILTERWINDOW_H
The FilterWindow class provides the filter window.
Definition: filterwindow.h:82
FilterWindow(MainWindow *mainWindow, QWidget *parent=0)
void changeStateSpinBoxes(int currentIndex)
The FilterPlotScene class provides the scene where a filter respone can be plotted.