]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
fitShapesPointsToMesheEdges dialog completed
authorPaul RASCLE <paul.rascle@openfields.fr>
Wed, 25 Nov 2020 22:07:25 +0000 (23:07 +0100)
committerYOANN AUDOUIN <B61570@dsp0919998.atlas.edf.fr>
Fri, 11 Dec 2020 14:53:30 +0000 (15:53 +0100)
src/HYDROTools/plugins/fitShapePointsToMeshEdges.ui
src/HYDROTools/plugins/fitShapePointsToMeshEdgesDialog.py

index de18cd81d340edab7ab6081b00024ec9b899c41b..895b4d9a7d4bfe46a27044fb598dba8216266420 100644 (file)
         <item row="0" column="1">
          <widget class="QCheckBox" name="cb_loadMeshEdges">
           <property name="text">
-           <string>load result</string>
+           <string>Load result</string>
           </property>
          </widget>
         </item>
         <item row="0" column="2">
          <widget class="QCheckBox" name="cb_splineMeshEdges">
           <property name="text">
-           <string>load as spline</string>
+           <string>Load as spline</string>
           </property>
          </widget>
         </item>
         <item row="1" column="1">
          <widget class="QCheckBox" name="cb_loadShapeToAdjust">
           <property name="text">
-           <string>load result</string>
+           <string>Load result</string>
           </property>
          </widget>
         </item>
         <item row="1" column="2">
          <widget class="QCheckBox" name="cb_splineShapeToAdjust">
           <property name="text">
-           <string>load as spline</string>
+           <string>Load as spline</string>
           </property>
          </widget>
         </item>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>cb_loadMeshEdges</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>cb_splineMeshEdges</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>282</x>
+     <y>194</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>396</x>
+     <y>194</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>cb_loadShapeToAdjust</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>cb_splineShapeToAdjust</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>282</x>
+     <y>223</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>396</x>
+     <y>223</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
 </ui>
index dc9e646f40bcdbcb36f308be0504f3a697b0ebab..e94853363ca53bde64c92b1d3bcafe1cbec0f6a1 100644 (file)
@@ -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.
 
         <h3>Mesh edges shapefile</h3>
-        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).
         <h3>Shapefile to adjust</h3>
-        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).
+        <h3>Output dir</h3>
+        This field allows selection of the directory used to store the results.
         <h3>Split mesh edges shapefile</h3>
         If this checkbox is checked, the mesh edges shapefile is split at the intersection with the other shapefile.
-         <h3>Split shapefile to adjust</h3>
+        <h3>Split shapefile to adjust</h3>
         If this checkbox is checked, the shapefile to adjust is split at the intersection with the other shapefile.
+        <h3>Load result</h3>
+        If this checkbox is checked, the corresponding shapefile is loaded.
+        <h3>Load as spline</h3>
+        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);