v2.0.0
Loading...
Searching...
No Matches
tfsettingsview.cpp
Go to the documentation of this file.
1//=============================================================================================================
15
16//=============================================================================================================
17// INCLUDES
18//=============================================================================================================
19
20#include "tfsettingsview.h"
21
22#include "ui_tfsettingsview.h"
23
24//=============================================================================================================
25// QT INCLUDES
26//=============================================================================================================
27
28#include <QSettings>
29
30//=============================================================================================================
31// EIGEN INCLUDES
32//=============================================================================================================
33
34//=============================================================================================================
35// USED NAMESPACES
36//=============================================================================================================
37
38using namespace DISPLIB;
39
40//=============================================================================================================
41// DEFINE MEMBER METHODS
42//=============================================================================================================
43
44TfSettingsView::TfSettingsView(const QString& sSettingsPath,
45 QWidget *parent,
46 Qt::WindowFlags f)
47: AbstractView(parent, f)
48, m_pUi(new Ui::TfSettingsViewWidget)
49{
50 m_sSettingsPath = sSettingsPath;
51 m_pUi->setupUi(this);
52
54
55 connect(m_pUi->m_spinBox_trialNumber, QOverload<int>::of(&QSpinBox::valueChanged),
57
58 connect(m_pUi->m_spinBox_rowNumber, QOverload<int>::of(&QSpinBox::valueChanged),
60
61 this->setWindowTitle("Time frequency Settings");
62 this->setMinimumWidth(330);
63 this->setMaximumWidth(330);
64}
65
66//=============================================================================================================
67
74
75//=============================================================================================================
76
78{
79 if(m_sSettingsPath.isEmpty()) {
80 return;
81 }
82
83 QSettings settings("MNECPP");
84}
85
86//=============================================================================================================
87
89{
90 if(m_sSettingsPath.isEmpty()) {
91 return;
92 }
93
94 QSettings settings("MNECPP");
95}
96
97//=============================================================================================================
98
100{
101 switch(mode) {
103 break;
104 default: // default is research mode
105 break;
106 }
107}
108
109//=============================================================================================================
110
112{
113 switch(mode) {
115 break;
116 default: // default is realtime mode
117 break;
118 }
119}
120
121//=============================================================================================================
122
124{
125 emit numberTrialRowChanged(m_pUi->m_spinBox_trialNumber->value(), m_pUi->m_spinBox_rowNumber->value());
126 saveSettings();
127}
128
129//=============================================================================================================
130
132{
133
134}
Time-frequency analysis window-length and overlap configuration panel.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void updateProcessingMode(ProcessingMode mode)
Ui::TfSettingsViewWidget * m_pUi
TfSettingsView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void numberTrialRowChanged(int iNumberTrial, int iNumberRow)
void updateGuiMode(GuiMode mode)