46 #include <QGridLayout>
55 using namespace DISPLIB;
61 CovarianceSettingsView::CovarianceSettingsView(
const QString& sSettingsPath,
64 , m_sSettingsPath(sSettingsPath)
66 this->setWindowTitle(
"Covariance Settings");
67 this->setMinimumWidth(330);
68 this->setMaximumWidth(330);
70 QGridLayout* t_pGridLayout =
new QGridLayout;
72 QLabel* t_pLabelNumSamples =
new QLabel;
73 t_pLabelNumSamples->setText(
"Number of Samples");
74 t_pGridLayout->addWidget(t_pLabelNumSamples,0,0,1,1);
76 qint32 minSamples = 600;
78 m_pSpinBoxNumSamples =
new QSpinBox;
79 m_pSpinBoxNumSamples->setMinimum(minSamples);
80 m_pSpinBoxNumSamples->setMaximum(minSamples*60);
81 m_pSpinBoxNumSamples->setSingleStep(minSamples);
82 connect(m_pSpinBoxNumSamples,
static_cast<void (QSpinBox::*)(
int)
>(&QSpinBox::valueChanged),
83 this, &CovarianceSettingsView::samplesChanged);
84 t_pGridLayout->addWidget(m_pSpinBoxNumSamples,0,1,1,1);
85 this->setLayout(t_pGridLayout);
101 m_pSpinBoxNumSamples->setValue(iSamples);
108 m_pSpinBoxNumSamples->setMinimum(iSamples);
109 m_pSpinBoxNumSamples->setMaximum(iSamples*60);
116 if(m_sSettingsPath.isEmpty()) {
121 QSettings settings(
"MNECPP");
128 if(m_sSettingsPath.isEmpty()) {
133 QSettings settings(
"MNECPP");
141 case GuiMode::Clinical:
153 case ProcessingMode::Offline: