TTestPairedSamplesForm::TTestPairedSamplesForm(QWidget *parent) : AnalysisForm("TTestPairedSamplesForm", parent), ui(new Ui::TTestPairedSamplesForm) { ui->setupUi(this); _availableVariablesModel.setSupportedDropActions(Qt::MoveAction); _availableVariablesModel.setSupportedDragActions(Qt::CopyAction); _availableVariablesModel.setVariableTypesSuggested(Column::ColumnTypeScale); _availableVariablesModel.setVariableTypesAllowed(Column::ColumnTypeNominal | Column::ColumnTypeOrdinal | Column::ColumnTypeScale); ui->availableFields->setModel(&_availableVariablesModel); ui->availableFields->setDefaultDropAction(Qt::MoveAction); ui->availableFields->setDoubleClickTarget(ui->pairs); TableModelPairsAssigned *model = new TableModelPairsAssigned(this); model->setSource(&_availableVariablesModel); model->setVariableTypesSuggested(Column::ColumnTypeScale); model->setVariableTypesAllowed(Column::ColumnTypeScale | Column::ColumnTypeOrdinal | Column::ColumnTypeNominal); ui->pairs->setModel(model); ui->assignButton->setSourceAndTarget(ui->availableFields, ui->pairs); ui->confidenceIntervalInterval->setLabel("Confidence interval"); ui->descriptivesPlotsConfidenceInterval->setLabel("Confidence interval"); }
CorrelationBayesianPairsForm::CorrelationBayesianPairsForm(QWidget *parent) : AnalysisForm("CorrelationBayesianPairsForm", parent), ui(new Ui::CorrelationBayesianPairsForm) { ui->setupUi(this); _availableVariablesModel.setSupportedDropActions(Qt::MoveAction); _availableVariablesModel.setSupportedDragActions(Qt::CopyAction); _availableVariablesModel.setVariableTypesSuggested(Column::ColumnTypeScale); _availableVariablesModel.setVariableTypesAllowed(Column::ColumnTypeScale | Column::ColumnTypeOrdinal | Column::ColumnTypeNominal); ui->availableFields->setModel(&_availableVariablesModel); ui->availableFields->setDefaultDropAction(Qt::MoveAction); ui->availableFields->setDoubleClickTarget(ui->pairs); TableModelPairsAssigned *model = new TableModelPairsAssigned(this); model->setSource(&_availableVariablesModel); model->setVariableTypesSuggested(Column::ColumnTypeScale); model->setVariableTypesAllowed(Column::ColumnTypeScale | Column::ColumnTypeOrdinal | Column::ColumnTypeNominal); ui->pairs->setModel(model); ui->assignButton->setSourceAndTarget(ui->availableFields, ui->pairs); #ifndef JASP_DEBUG ui->plotSequentialAnalysisRobustness->hide(); ui->ciValueContainer->hide(); #else ui->plotSequentialAnalysisRobustness->setStyleSheet("background-color: pink;"); ui->ciValueContainer->setStyleSheet("background-color: pink;"); #endif ui->priorWidth->setLabel("Beta* prior width"); }