MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
tfsettingsview.cpp
Go to the documentation of this file.
1//=============================================================================================================
35//=============================================================================================================
36// INCLUDES
37//=============================================================================================================
38
39#include "tfsettingsview.h"
40
41#include "ui_tfsettingsview.h"
42
43//=============================================================================================================
44// QT INCLUDES
45//=============================================================================================================
46
47#include <QSettings>
48
49//=============================================================================================================
50// EIGEN INCLUDES
51//=============================================================================================================
52
53//=============================================================================================================
54// USED NAMESPACES
55//=============================================================================================================
56
57using namespace DISPLIB;
58
59//=============================================================================================================
60// DEFINE MEMBER METHODS
61//=============================================================================================================
62
63TfSettingsView::TfSettingsView(const QString& sSettingsPath,
64 QWidget *parent,
65 Qt::WindowFlags f)
66: AbstractView(parent, f)
67, m_pUi(new Ui::TfSettingsViewWidget)
68{
69 m_sSettingsPath = sSettingsPath;
70 m_pUi->setupUi(this);
71
73
74 connect(m_pUi->m_spinBox_trialNumber, QOverload<int>::of(&QSpinBox::valueChanged),
76
77 connect(m_pUi->m_spinBox_rowNumber, QOverload<int>::of(&QSpinBox::valueChanged),
79
80 this->setWindowTitle("Time frequency Settings");
81 this->setMinimumWidth(330);
82 this->setMaximumWidth(330);
83}
84
85//=============================================================================================================
86
88{
90
91 delete m_pUi;
92}
93
94//=============================================================================================================
95
97{
98 if(m_sSettingsPath.isEmpty()) {
99 return;
100 }
101
102 QSettings settings("MNECPP");
103}
104
105//=============================================================================================================
106
108{
109 if(m_sSettingsPath.isEmpty()) {
110 return;
111 }
112
113 QSettings settings("MNECPP");
114}
115
116//=============================================================================================================
117
119{
120 switch(mode) {
121 case GuiMode::Clinical:
122 break;
123 default: // default is research mode
124 break;
125 }
126}
127
128//=============================================================================================================
129
131{
132 switch(mode) {
133 case ProcessingMode::Offline:
134 break;
135 default: // default is realtime mode
136 break;
137 }
138}
139
140//=============================================================================================================
141
143{
144 emit numberTrialRowChanged(m_pUi->m_spinBox_trialNumber->value(), m_pUi->m_spinBox_rowNumber->value());
145 saveSettings();
146}
147
148//=============================================================================================================
149
151{
152
153}
Declaration of the TfSettingsView Class.
The AbstractView class provides the base calss for all Disp viewers.
void updateProcessingMode(ProcessingMode mode)
TfSettingsView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void numberTrialRowChanged(int iNumberTrial, int iNumberRow)
void updateGuiMode(GuiMode mode)