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(std::make_unique<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
72
73//=============================================================================================================
74
76{
77 if (m_sSettingsPath.isEmpty()) {
78 return;
79 }
80
81 QSettings settings("MNECPP");
82}
83
84//=============================================================================================================
85
87{
88 if (m_sSettingsPath.isEmpty()) {
89 return;
90 }
91
92 QSettings settings("MNECPP");
93}
94
95//=============================================================================================================
96
98{
99 switch (mode) {
101 break;
102 default: // default is research mode
103 break;
104 }
105}
106
107//=============================================================================================================
108
110{
111 switch (mode) {
113 break;
114 default: // default is realtime mode
115 break;
116 }
117}
118
119//=============================================================================================================
120
122{
123 emit numberTrialRowChanged(m_pUi->m_spinBox_trialNumber->value(), m_pUi->m_spinBox_rowNumber->value());
124 saveSettings();
125}
126
127//=============================================================================================================
128
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)
TfSettingsView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void numberTrialRowChanged(int iNumberTrial, int iNumberRow)
std::unique_ptr< Ui::TfSettingsViewWidget > m_pUi
void updateGuiMode(GuiMode mode)