From: Paul RASCLE Date: Wed, 25 Nov 2020 22:07:25 +0000 (+0100) Subject: fitShapesPointsToMesheEdges dialog completed X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=77049e31ac0b31a0e6250629335984dcb2716a09;p=modules%2Fhydro.git fitShapesPointsToMesheEdges dialog completed --- diff --git a/src/HYDROTools/plugins/fitShapePointsToMeshEdges.ui b/src/HYDROTools/plugins/fitShapePointsToMeshEdges.ui index de18cd81..895b4d9a 100644 --- a/src/HYDROTools/plugins/fitShapePointsToMeshEdges.ui +++ b/src/HYDROTools/plugins/fitShapePointsToMeshEdges.ui @@ -169,14 +169,14 @@ - load result + Load result - load as spline + Load as spline @@ -203,14 +203,14 @@ - load result + Load result - load as spline + Load as spline @@ -327,5 +327,37 @@ + + cb_loadMeshEdges + toggled(bool) + cb_splineMeshEdges + setEnabled(bool) + + + 282 + 194 + + + 396 + 194 + + + + + cb_loadShapeToAdjust + toggled(bool) + cb_splineShapeToAdjust + setEnabled(bool) + + + 282 + 223 + + + 396 + 223 + + + diff --git a/src/HYDROTools/plugins/fitShapePointsToMeshEdgesDialog.py b/src/HYDROTools/plugins/fitShapePointsToMeshEdgesDialog.py index dc9e646f..e9485336 100644 --- a/src/HYDROTools/plugins/fitShapePointsToMeshEdgesDialog.py +++ b/src/HYDROTools/plugins/fitShapePointsToMeshEdgesDialog.py @@ -61,6 +61,8 @@ class fitShapePointsToMeshEdgesDialog(QDialog): self.pb_help.clicked.connect(self.on_help) self.pb_ok.accepted.connect(self.on_accept) self.pb_ok.rejected.connect(self.on_reject) + self.cb_splineMeshEdges.setEnabled(False) + self.cb_splineShapeToAdjust.setEnabled(False) self.meshEdges = None self.shapeToAdjust = None self.tmpdir = tempfile.mkdtemp() @@ -168,13 +170,19 @@ class fitShapePointsToMeshEdgesDialog(QDialog): Below is the description of the dialog controls.

Mesh edges shapefile

- This field allows selection of a shapefile (via the standard file open dialog). + This field allows selection of a shapefile (via the standard file open dialog or by selection in the Object Browser).

Shapefile to adjust

- This field allows selection of a shapefile (via the standard file open dialog). + This field allows selection of a shapefile (via the standard file open dialog or by selection in the Object Browser). +

Output dir

+ This field allows selection of the directory used to store the results.

Split mesh edges shapefile

If this checkbox is checked, the mesh edges shapefile is split at the intersection with the other shapefile. -

Split shapefile to adjust

+

Split shapefile to adjust

If this checkbox is checked, the shapefile to adjust is split at the intersection with the other shapefile. +

Load result

+ If this checkbox is checked, the corresponding shapefile is loaded. +

Load as spline

+ If this checkbox is checked, the corresponding shapefile is loaded as a spline. """ QMessageBox.about(self, self.tr("About fit shape points to mesh edges dialog"), msg);