+ mySelGrpLayout->addWidget(myToAllChk, mySelGrpLayout->rowCount(), 0,
+ 1, mySelGrpLayout->columnCount());
+
+ // Split/Join criterion group
+ myCriterionGrp = new QGroupBox(tr("SPLIT_JOIN_CRITERION"), aMainGrp);
+ QVBoxLayout* aCriterionLayout = new QVBoxLayout(myCriterionGrp);
+ aCriterionLayout->setMargin(MARGIN);
+ aCriterionLayout->setSpacing(SPACING);
+
+ myChoiceWidget = new QWidget(myCriterionGrp);
+ myGroupChoice = new QButtonGroup(myChoiceWidget);
+ QVBoxLayout* aGroupChoiceLayout = new QVBoxLayout(myChoiceWidget);
+ aGroupChoiceLayout->setMargin(0);
+ aGroupChoiceLayout->setSpacing(SPACING);
+
+ QRadioButton* aDiag13RB = new QRadioButton(tr("USE_DIAGONAL_1_3"), myChoiceWidget);
+ QRadioButton* aDiag24RB = new QRadioButton(tr("USE_DIAGONAL_2_4"), myChoiceWidget);
+ QRadioButton* aNumFuncRB = new QRadioButton(tr("USE_NUMERIC_FUNC"), myChoiceWidget);
+
+ aGroupChoiceLayout->addWidget(aDiag13RB);
+ aGroupChoiceLayout->addWidget(aDiag24RB);
+ aGroupChoiceLayout->addWidget(aNumFuncRB);
+ myGroupChoice->addButton(aDiag13RB, 0);
+ myGroupChoice->addButton(aDiag24RB, 1);
+ myGroupChoice->addButton(aNumFuncRB, 2);
+ aDiag13RB->setChecked(true);
+
+ myComboBoxFunctor = new QComboBox(myCriterionGrp);
+ myComboBoxFunctor->addItem(tr("ASPECTRATIO_ELEMENTS"));
+ myComboBoxFunctor->addItem(tr("MINIMUMANGLE_ELEMENTS"));
+ myComboBoxFunctor->addItem(tr("SKEW_ELEMENTS"));
+ //myComboBoxFunctor->addItem(tr("AREA_ELEMENTS"));
+ //myComboBoxFunctor->addItem(tr("LENGTH2D_EDGES")); // for existing elements only
+ //myComboBoxFunctor->addItem(tr("MULTI2D_BORDERS")); // for existing elements only
+ myComboBoxFunctor->setCurrentIndex(0);
+
+ aCriterionLayout->addWidget(myChoiceWidget);
+ aCriterionLayout->addWidget(myComboBoxFunctor);
+
+ myCriterionGrp->hide();
+ myChoiceWidget->hide();
+ myComboBoxFunctor->setEnabled(false);