mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-28 15:50:34 +05:00
Add level of check (no implementation)
This commit is contained in:
parent
0b0aa532a9
commit
892b6633c2
@ -415,26 +415,6 @@ Please, select face, shell or solid and try again</translation>
|
||||
<source>GEOM_CHECK_SELF_INTERSECTIONS</source>
|
||||
<translation>Detect Self-intersections</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_CHECK_SELF_INTERSECTIONS_FAILED</source>
|
||||
<translation>Detection of self-intersections failed</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_NO_SELF_INTERSECTIONS</source>
|
||||
<translation>There are no self-intersections in the shape</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_SELF_INTERSECTIONS_FOUND</source>
|
||||
<translation>Some self-intersections detected</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_SELF_INTERSECTION_NAME</source>
|
||||
<translation>Self_intersection</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_CHECK_SELF_INTERSECTIONS_ERRORS</source>
|
||||
<translation>Warning: there were errors during the operation, so the list may be incomplete.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_CIRCLE</source>
|
||||
<translation>Circle</translation>
|
||||
@ -6955,4 +6935,47 @@ Do you want to create new material?</translation>
|
||||
<translation>V-Isoline</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MeasureGUI_CheckSelfIntersectionsDlg</name>
|
||||
<message>
|
||||
<source>GEOM_CHECK_INTE_INTERSECTIONS</source>
|
||||
<translation>Self-intersections</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_CHECK_INTE_SUBSHAPES</source>
|
||||
<translation>Sub-shapes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_CHECK_INTE_CHECK_LEVEL</source>
|
||||
<translation>Level of check</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_CHECK_INTE_SUMMARY</source>
|
||||
<translation>Summary</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_CHECK_INTE_COMPUTE</source>
|
||||
<translation>Compute self-intersections</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_SELF_INTERSECTION_NAME</source>
|
||||
<translation>Self_intersection</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_NO_SELF_INTERSECTIONS</source>
|
||||
<translation>There are no self-intersections in the shape</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_SELF_INTERSECTIONS_FOUND</source>
|
||||
<translation>Some self-intersections detected</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_CHECK_SELF_INTERSECTIONS_FAILED</source>
|
||||
<translation>Detection of self-intersections failed</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_CHECK_SELF_INTERSECTIONS_ERRORS</source>
|
||||
<translation>Warning: there were errors during the operation, so the list may be incomplete.</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -60,6 +60,8 @@ MeasureGUI_CheckSelfIntersectionsDlg::MeasureGUI_CheckSelfIntersectionsDlg (Geom
|
||||
myTextView (0),
|
||||
mySelButton (0),
|
||||
myEditObjName (0),
|
||||
myLevelBox (0),
|
||||
myComputeButton (0),
|
||||
myInteList (0),
|
||||
myShapeList (0)
|
||||
{
|
||||
@ -79,8 +81,10 @@ MeasureGUI_CheckSelfIntersectionsDlg::MeasureGUI_CheckSelfIntersectionsDlg (Geom
|
||||
|
||||
QGroupBox *aGrp = new QGroupBox(tr("GEOM_CHECK_INFOS"));
|
||||
QLabel *anObjLbl = new QLabel(tr("GEOM_OBJECT"));
|
||||
QLabel *anInteLbl = new QLabel(tr("GEOM_CHECK_BLOCKS_COMPOUND_ERRORS"));
|
||||
QLabel *aShapeLbl = new QLabel(tr("GEOM_CHECK_BLOCKS_COMPOUND_SUBSHAPES"));
|
||||
QLabel *anInteLbl = new QLabel(tr("GEOM_CHECK_INTE_INTERSECTIONS"));
|
||||
QLabel *aShapeLbl = new QLabel(tr("GEOM_CHECK_INTE_SUBSHAPES"));
|
||||
QLabel *aLevelLbl = new QLabel(tr("GEOM_CHECK_INTE_CHECK_LEVEL"));
|
||||
QLabel *aSummaryLbl = new QLabel(tr("GEOM_CHECK_INTE_SUMMARY"));
|
||||
QFont aFont (TEXTEDIT_FONT_FAMILY, TEXTEDIT_FONT_SIZE);
|
||||
|
||||
aFont.setStyleHint(QFont::TypeWriter, QFont::PreferAntialias);
|
||||
@ -95,6 +99,11 @@ MeasureGUI_CheckSelfIntersectionsDlg::MeasureGUI_CheckSelfIntersectionsDlg (Geom
|
||||
myEditObjName = new QLineEdit;
|
||||
myEditObjName->setReadOnly(true);
|
||||
|
||||
myLevelBox = new QComboBox;
|
||||
|
||||
myComputeButton = new QPushButton(tr("GEOM_CHECK_INTE_COMPUTE"));
|
||||
|
||||
|
||||
myInteList = new QListWidget;
|
||||
myShapeList = new QListWidget;
|
||||
myShapeList->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
@ -103,14 +112,18 @@ MeasureGUI_CheckSelfIntersectionsDlg::MeasureGUI_CheckSelfIntersectionsDlg (Geom
|
||||
|
||||
aGrpLayout->setMargin(9);
|
||||
aGrpLayout->setSpacing(6);
|
||||
aGrpLayout->addWidget(anObjLbl, 0, 0);
|
||||
aGrpLayout->addWidget(anInteLbl, 2, 0);
|
||||
aGrpLayout->addWidget(aShapeLbl, 2, 2);
|
||||
aGrpLayout->addWidget(myTextView, 1, 0, 1, 3);
|
||||
aGrpLayout->addWidget(mySelButton, 0, 1);
|
||||
aGrpLayout->addWidget(myEditObjName, 0, 2);
|
||||
aGrpLayout->addWidget(myInteList, 3, 0, 1, 2);
|
||||
aGrpLayout->addWidget(myShapeList, 3, 2);
|
||||
aGrpLayout->addWidget(anObjLbl, 0, 0);
|
||||
aGrpLayout->addWidget(anInteLbl, 5, 0);
|
||||
aGrpLayout->addWidget(aShapeLbl, 5, 2);
|
||||
aGrpLayout->addWidget(aLevelLbl, 1, 0);
|
||||
aGrpLayout->addWidget(myLevelBox, 1, 1, 1, 2);
|
||||
aGrpLayout->addWidget(myComputeButton, 2, 0, 1, 3);
|
||||
aGrpLayout->addWidget(aSummaryLbl, 3, 0);
|
||||
aGrpLayout->addWidget(myTextView, 4, 0, 1, 3);
|
||||
aGrpLayout->addWidget(mySelButton, 0, 1);
|
||||
aGrpLayout->addWidget(myEditObjName, 0, 2);
|
||||
aGrpLayout->addWidget(myInteList, 6, 0, 1, 2);
|
||||
aGrpLayout->addWidget(myShapeList, 6, 2);
|
||||
|
||||
QVBoxLayout* layout = new QVBoxLayout (centralWidget());
|
||||
layout->setMargin(0); layout->setSpacing(6);
|
||||
@ -157,8 +170,9 @@ void MeasureGUI_CheckSelfIntersectionsDlg::Init()
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
||||
initName( tr( "GEOM_SELF_INTERSECTION_NAME") );
|
||||
buttonOk()->setEnabled( false );
|
||||
buttonApply()->setEnabled( false );
|
||||
buttonOk()->setEnabled(false);
|
||||
buttonApply()->setEnabled(false);
|
||||
myComputeButton->setEnabled(false);
|
||||
activateSelection();
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
|
@ -28,8 +28,9 @@
|
||||
|
||||
#include <GEOMBase_Skeleton.h>
|
||||
|
||||
class QTextBrowser;
|
||||
class QComboBox;
|
||||
class QListWidget;
|
||||
class QTextBrowser;
|
||||
|
||||
|
||||
//=================================================================================
|
||||
@ -81,6 +82,8 @@ private:
|
||||
QTextBrowser *myTextView;
|
||||
QPushButton *mySelButton;
|
||||
QLineEdit *myEditObjName;
|
||||
QComboBox *myLevelBox;
|
||||
QPushButton *myComputeButton;
|
||||
QListWidget *myInteList;
|
||||
QListWidget *myShapeList;
|
||||
GEOM::GEOM_Object_var myObj;
|
||||
|
Loading…
Reference in New Issue
Block a user