From 326bd24286cec509638ed0a9341d5687690451b9 Mon Sep 17 00:00:00 2001 From: kosta Date: Tue, 28 Mar 2023 11:41:45 +0200 Subject: [PATCH] [bos #32736][CEA] Threshold of criteria. Added Threshold checkbox to the Scalar Bar Properties dialog. --- src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx | 7 ++++++- src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h | 1 + src/SMESHGUI/SMESH_msg_en.ts | 4 ++++ src/SMESHGUI/SMESH_msg_fr.ts | 4 ++++ src/SMESHGUI/SMESH_msg_ja.ts | 4 ++++ 5 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx b/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx index ce5e3462c..25480624d 100644 --- a/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx @@ -146,11 +146,16 @@ SMESHGUI_Preferences_ScalarBarDlg::SMESHGUI_Preferences_ScalarBarDlg( SMESHGUI* myLogarithmicCheck->setText(tr("SMESH_LOGARITHMIC_SCALARBAR")); myLogarithmicCheck->setChecked(false); + myThresholdCheck = new QCheckBox (myRangeGrp); + myThresholdCheck->setText(tr("SMESH_TRESHOLD_SCALARBAR")); + myThresholdCheck->setChecked(false); + myRangeGrpLayout->addWidget( new QLabel( tr( "SMESH_RANGE_MIN" ), myRangeGrp ), 0, 0, 1, 1 ); myRangeGrpLayout->addWidget( myMinEdit, 0, 1, 1, 1 ); myRangeGrpLayout->addWidget( new QLabel( tr( "SMESH_RANGE_MAX" ), myRangeGrp ), 0, 2, 1, 1 ); myRangeGrpLayout->addWidget( myMaxEdit, 0, 3, 1, 1 ); - myRangeGrpLayout->addWidget( myLogarithmicCheck, 1, 0, 1, 4 ); + myRangeGrpLayout->addWidget( myLogarithmicCheck, 1, 0, 1, 1 ); + myRangeGrpLayout->addWidget( myThresholdCheck, 1, 1, 1, 1 ); aTopLayout->addWidget( myRangeGrp ); diff --git a/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h b/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h index 297f84ee4..3345ad1f3 100644 --- a/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h +++ b/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h @@ -97,6 +97,7 @@ private: QLineEdit* myMinEdit; QLineEdit* myMaxEdit; QCheckBox* myLogarithmicCheck; + QCheckBox* myThresholdCheck; QGroupBox* myFontGrp; QtxColorButton* myTitleColorBtn; diff --git a/src/SMESHGUI/SMESH_msg_en.ts b/src/SMESHGUI/SMESH_msg_en.ts index a627143da..0a0f69bc6 100644 --- a/src/SMESHGUI/SMESH_msg_en.ts +++ b/src/SMESHGUI/SMESH_msg_en.ts @@ -2224,6 +2224,10 @@ Check algorithm documentation for supported geometry SMESH_LOGARITHMIC_SCALARBAR Logarithmic + + SMESH_TRESHOLD_SCALARBAR + Threshold + SMESH_MAKE_GROUPS Generate groups diff --git a/src/SMESHGUI/SMESH_msg_fr.ts b/src/SMESHGUI/SMESH_msg_fr.ts index 726b2633b..af8541f2d 100644 --- a/src/SMESHGUI/SMESH_msg_fr.ts +++ b/src/SMESHGUI/SMESH_msg_fr.ts @@ -2222,6 +2222,10 @@ Référez-vous à la documentation sur l'algorithme et la géométrie supportée SMESH_LOGARITHMIC_SCALARBAR Logarithmique + + SMESH_TRESHOLD_SCALARBAR + Seuil + SMESH_MAKE_GROUPS Générer les groupes diff --git a/src/SMESHGUI/SMESH_msg_ja.ts b/src/SMESHGUI/SMESH_msg_ja.ts index 369b86a57..ba16e96d6 100644 --- a/src/SMESHGUI/SMESH_msg_ja.ts +++ b/src/SMESHGUI/SMESH_msg_ja.ts @@ -1979,6 +1979,10 @@ SMESH_LOGARITHMIC_SCALARBAR 対数 + + SMESH_TRESHOLD_SCALARBAR + しきい値 + SMESH_MAKE_GROUPS グループを生成します。 -- 2.39.2