MNE-CPP  beta 1.0
scalewindow.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef SCALEWINDOW_H
38 #define SCALEWINDOW_H
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "ui_scalewindow.h"
46 #include <fiff/fiff.h>
47 
48 
49 //*************************************************************************************************************
50 //=============================================================================================================
51 // QT INCLUDES
52 //=============================================================================================================
53 
54 #include <QDockWidget>
55 
56 
57 //*************************************************************************************************************
58 //=============================================================================================================
59 // USED NAMESPACES
60 //=============================================================================================================
61 
62 using namespace FIFFLIB;
63 
64 
65 //*************************************************************************************************************
66 //=============================================================================================================
67 // DEFINE NAMESPACE MNEBrowseRawQt
68 //=============================================================================================================
69 
70 namespace MNEBrowseRawQt
71 {
72 
73 
74 //*************************************************************************************************************
75 //=============================================================================================================
76 // DEFINE FORWARD DECLARATIONS
77 //=============================================================================================================
78 
84 class ScaleWindow : public QDockWidget
85 {
86  Q_OBJECT
87 
88 public:
89  //=========================================================================================================
95  ScaleWindow(QWidget *parent = 0);
96 
97  //=========================================================================================================
102  ~ScaleWindow();
103 
104  //=========================================================================================================
108  void init();
109 
110  //=========================================================================================================
116  void hideSpinBoxes(FiffInfo currentFiffInfo);
117 
118  //=========================================================================================================
124  void scaleAllChannels(double scaleValue);
125 
126 signals:
127  //=========================================================================================================
133  void scalingChannelValueChanged(QMap<QString,double>);
134 
135  //=========================================================================================================
141  void scalingViewValueChanged(int);
142 
143 private:
144  Ui::ScaleWindow *ui;
146  //=========================================================================================================
152  QMap<QString,double> genereateScalingMap();
153 
154  //=========================================================================================================
158  void scaleChannelValueChanged();
159 
160  //=========================================================================================================
164  void scaleViewValueChanged();
165 
166 };
167 
168 } // NAMESPACE MNEBrowseRawQt
169 
170 #endif // SCALEWINDOW_H
FIFF measurement file information.
Definition: fiff_info.h:96
Definition: fiff.h:98
The ScaleWindow class provides the scale window.
Definition: scalewindow.h:84
FIFF class declaration, which provides static wrapper functions to stay consistent with mne matlab to...