22#include "ui_connectivitysettingsview.h"
48,
m_pUi(new Ui::ConnectivitySettingsViewWidget)
55 connect(
m_pUi->m_comboBox_method,
static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
58 connect(
m_pUi->m_comboBox_windowType,
static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
64 connect(
m_pUi->m_spinBox_numberTrials, &QSpinBox::editingFinished,
67 connect(
m_pUi->m_comboBox_triggerType,
static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
76 connect(
m_pUi->m_spinBox_freqLow,
static_cast<void (QDoubleSpinBox::*)(
double)
>(&QDoubleSpinBox::valueChanged),
79 connect(
m_pUi->m_spinBox_freqHigh,
static_cast<void (QDoubleSpinBox::*)(
double)
>(&QDoubleSpinBox::valueChanged),
82 this->setWindowTitle(
"Connectivity Settings");
83 this->setMinimumWidth(330);
84 this->setMaximumWidth(330);
100 for(
const QString &sTriggerType : lTriggerTypes) {
101 if(
m_pUi->m_comboBox_triggerType->findText(sTriggerType) == -1) {
102 m_pUi->m_comboBox_triggerType->addItem(sTriggerType);
111 m_pUi->m_spinBox_numberTrials->setValue(iNumberTrials);
118 m_pUi->m_spinBox_freqLow->setValue(dFreqLow);
119 m_pUi->m_spinBox_freqHigh->setValue(dFreqHigh);
126 return m_pUi->m_comboBox_method->currentText();
133 return m_pUi->m_comboBox_windowType->currentText();
140 return m_pUi->m_spinBox_numberTrials->value();
147 return m_pUi->m_comboBox_triggerType->currentText();
154 return m_pUi->m_spinBox_freqLow->value();
161 return m_pUi->m_spinBox_freqHigh->value();
172 QSettings settings(
"MNECPP");
174 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connMethod"),
m_pUi->m_comboBox_method->currentText());
175 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connWindowType"),
m_pUi->m_comboBox_windowType->currentText());
176 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connNrTrials"),
m_pUi->m_spinBox_numberTrials->value());
177 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connTriggerType"),
m_pUi->m_comboBox_triggerType->currentText());
178 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqLow"),
m_pUi->m_spinBox_freqLow->value());
179 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqHigh"),
m_pUi->m_spinBox_freqHigh->value());
190 QSettings settings(
"MNECPP");
192 m_pUi->m_comboBox_method->setCurrentText(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connMethod"),
"COR").toString());
193 m_pUi->m_comboBox_windowType->setCurrentText(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connWindowType"),
"Hanning").toString());
194 m_pUi->m_spinBox_numberTrials->setValue(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connNrTrials"), 10).toInt());
196 m_pUi->m_comboBox_triggerType->setCurrentText(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connTriggerType"),
"1").toString());
197 m_pUi->m_spinBox_freqLow->setValue(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqLow"), 7.0).toDouble());
198 m_pUi->m_spinBox_freqHigh->setValue(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqHigh"), 13.0).toDouble());
269 m_pUi->m_spinBox_freqHigh->value());
Settings panel choosing connectivity metric, window length and FFT parameters.
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()