41#include "ui_connectivitysettingsview.h"
67,
m_pUi(new Ui::ConnectivitySettingsViewWidget)
74 connect(
m_pUi->m_comboBox_method,
static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
77 connect(
m_pUi->m_comboBox_windowType,
static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
83 connect(
m_pUi->m_spinBox_numberTrials, &QSpinBox::editingFinished,
86 connect(
m_pUi->m_comboBox_triggerType,
static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
95 connect(
m_pUi->m_spinBox_freqLow,
static_cast<void (QDoubleSpinBox::*)(
double)
>(&QDoubleSpinBox::valueChanged),
98 connect(
m_pUi->m_spinBox_freqHigh,
static_cast<void (QDoubleSpinBox::*)(
double)
>(&QDoubleSpinBox::valueChanged),
101 this->setWindowTitle(
"Connectivity Settings");
102 this->setMinimumWidth(330);
103 this->setMaximumWidth(330);
119 for(
const QString &sTriggerType : lTriggerTypes) {
120 if(
m_pUi->m_comboBox_triggerType->findText(sTriggerType) == -1) {
121 m_pUi->m_comboBox_triggerType->addItem(sTriggerType);
130 m_pUi->m_spinBox_numberTrials->setValue(iNumberTrials);
137 m_pUi->m_spinBox_freqLow->setValue(dFreqLow);
138 m_pUi->m_spinBox_freqHigh->setValue(dFreqHigh);
145 return m_pUi->m_comboBox_method->currentText();
152 return m_pUi->m_comboBox_windowType->currentText();
159 return m_pUi->m_spinBox_numberTrials->value();
166 return m_pUi->m_comboBox_triggerType->currentText();
173 return m_pUi->m_spinBox_freqLow->value();
180 return m_pUi->m_spinBox_freqHigh->value();
191 QSettings settings(
"MNECPP");
193 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connMethod"),
m_pUi->m_comboBox_method->currentText());
194 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connWindowType"),
m_pUi->m_comboBox_windowType->currentText());
195 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connNrTrials"),
m_pUi->m_spinBox_numberTrials->value());
196 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connTriggerType"),
m_pUi->m_comboBox_triggerType->currentText());
197 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqLow"),
m_pUi->m_spinBox_freqLow->value());
198 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqHigh"),
m_pUi->m_spinBox_freqHigh->value());
209 QSettings settings(
"MNECPP");
211 m_pUi->m_comboBox_method->setCurrentText(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connMethod"),
"COR").toString());
212 m_pUi->m_comboBox_windowType->setCurrentText(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connWindowType"),
"Hanning").toString());
213 m_pUi->m_spinBox_numberTrials->setValue(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connNrTrials"), 10).toInt());
215 m_pUi->m_comboBox_triggerType->setCurrentText(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connTriggerType"),
"1").toString());
216 m_pUi->m_spinBox_freqLow->setValue(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqLow"), 7.0).toDouble());
217 m_pUi->m_spinBox_freqHigh->setValue(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqHigh"), 13.0).toDouble());
288 m_pUi->m_spinBox_freqHigh->value());
Declaration of the ConnectivitySettingsView Class.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void onFrequencyBandChanged()
void setFrequencyBand(double dFreqLow, double dFreqHigh)
void windowTypeChanged(const QString &windowType)
void freqBandChanged(float fFreqLow, float fFreqHigh)
void setNumberTrials(int iNumberTrials)
Ui::ConnectivitySettingsViewWidget * m_pUi
QString getConnectivityMetric()
void updateGuiMode(GuiMode mode)
void onNumberTrialsChanged()
void setTriggerTypes(const QStringList &lTriggerTypes)
void onTriggerTypeChanged(const QString &sTriggerType)
ConnectivitySettingsView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void onMetricChanged(const QString &sMetric)
void triggerTypeChanged(const QString &sTriggerType)
void connectivityMetricChanged(const QString &sMetric)
void numberTrialsChanged(int iNumberTrials)
void onWindowTypeChanged(const QString &sWindowType)
void updateProcessingMode(ProcessingMode mode)
~ConnectivitySettingsView()