Changeset View
Changeset View
Standalone View
Standalone View
src/kdefrontend/dockwidgets/CorrelationCoefficientDock.cpp
Context not available. | |||||
77 | ui.cbTestType->hide(); | 77 | ui.cbTestType->hide(); | ||
---|---|---|---|---|---|
78 | // adding item to tests and testtype combo box; | 78 | // adding item to tests and testtype combo box; | ||
79 | // making all test blocks invisible at starting. | 79 | // making all test blocks invisible at starting. | ||
80 | ui.lStatsFromSpreadsheet->hide(); | ||||
81 | ui.chbStatsFromSpreadsheet->hide(); | ||||
80 | ui.lCategorical->hide(); | 82 | ui.lCategorical->hide(); | ||
81 | ui.chbCategorical->hide(); | 83 | ui.chbCategorical->hide(); | ||
82 | ui.lCol1->hide(); | 84 | ui.lCol1->hide(); | ||
Context not available. | |||||
126 | connect(ui.cbTest, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &CorrelationCoefficientDock::showTestType); | 128 | connect(ui.cbTest, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &CorrelationCoefficientDock::showTestType); | ||
127 | connect(ui.cbTestType, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &CorrelationCoefficientDock::showCorrelationCoefficient); | 129 | connect(ui.cbTestType, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &CorrelationCoefficientDock::showCorrelationCoefficient); | ||
128 | connect(ui.chbCategorical, &QCheckBox::stateChanged, this, &CorrelationCoefficientDock::changeCbCol2Label); | 130 | connect(ui.chbCategorical, &QCheckBox::stateChanged, this, &CorrelationCoefficientDock::changeCbCol2Label); | ||
131 | connect(ui.chbStatsFromSpreadsheet, &QCheckBox::stateChanged, this, &CorrelationCoefficientDock::chbColumnStatisticsStateChanged); | ||||
129 | 132 | | |||
130 | connect(ui.pbPerformTest, &QPushButton::clicked, this, &CorrelationCoefficientDock::findCorrelationCoefficient); | 133 | connect(ui.pbPerformTest, &QPushButton::clicked, this, &CorrelationCoefficientDock::findCorrelationCoefficient); | ||
131 | connect(ui.cbCol1, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &CorrelationCoefficientDock::col1IndexChanged); | 134 | connect(ui.cbCol1, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &CorrelationCoefficientDock::col1IndexChanged); | ||
132 | 135 | | |||
133 | ui.cbTest->setCurrentIndex(0); | 136 | ui.cbTest->setCurrentIndex(0); | ||
134 | emit ui.cbTest->currentIndexChanged(0); | 137 | emit ui.cbTest->currentIndexChanged(0); | ||
135 | | ||||
136 | ui.cbTestType->setCurrentIndex(0); | 138 | ui.cbTestType->setCurrentIndex(0); | ||
137 | emit ui.cbTestType->currentIndexChanged(0); | 139 | emit ui.cbTestType->currentIndexChanged(0); | ||
138 | } | 140 | } | ||
Context not available. | |||||
180 | 182 | | |||
181 | m_test = ui.cbTest->currentData().toInt(); | 183 | m_test = ui.cbTest->currentData().toInt(); | ||
182 | 184 | | |||
185 | ui.cbTestType->clear(); | ||||
183 | switch (m_test) { | 186 | switch (m_test) { | ||
184 | case CorrelationCoefficient::ChiSquare: | 187 | case CorrelationCoefficient::ChiSquare: | ||
185 | ui.lTestType->show(); | 188 | ui.lTestType->show(); | ||
Context not available. | |||||
206 | ui.lCol2->show(); | 209 | ui.lCol2->show(); | ||
207 | ui.cbCol2->show(); | 210 | ui.cbCol2->show(); | ||
208 | 211 | | |||
212 | ui.lStatsFromSpreadsheet->setVisible(testType(m_test) == CorrelationCoefficient::ChiSquare); | ||||
213 | ui.chbStatsFromSpreadsheet->setVisible(testType(m_test) == CorrelationCoefficient::ChiSquare); | ||||
214 | ui.chbStatsFromSpreadsheet->setChecked(true); | ||||
215 | | ||||
209 | ui.lCategorical->setVisible(testType(m_test) == CorrelationCoefficient::Pearson); | 216 | ui.lCategorical->setVisible(testType(m_test) == CorrelationCoefficient::Pearson); | ||
210 | ui.chbCategorical->setVisible(testType(m_test) == CorrelationCoefficient::Pearson); | 217 | ui.chbCategorical->setVisible(testType(m_test) == CorrelationCoefficient::Pearson); | ||
211 | 218 | | |||
Context not available. | |||||
415 | } | 422 | } | ||
416 | } | 423 | } | ||
417 | 424 | | |||
425 | void CorrelationCoefficientDock::chbColumnStatisticsStateChanged() { | ||||
426 | bool chbChecked = ui.chbStatsFromSpreadsheet->isChecked(); | ||||
427 | | ||||
428 | ui.lVariables->setVisible(chbChecked); | ||||
429 | ui.lCol1->setVisible(chbChecked); | ||||
430 | ui.cbCol1->setVisible(chbChecked); | ||||
431 | ui.lCol2->setVisible(chbChecked); | ||||
432 | ui.cbCol2->setVisible(chbChecked); | ||||
433 | } | ||||
434 | | ||||
418 | ////************************************************************* | 435 | ////************************************************************* | ||
419 | ////******************** SETTINGS ******************************* | 436 | ////******************** SETTINGS ******************************* | ||
420 | ////************************************************************* | 437 | ////************************************************************* | ||
Context not available. |