From: Bernard Sécherà Date: Fri, 26 Feb 2021 14:33:52 +0000 (+0100) Subject: manage meshes X-Git-Tag: V9_7_0~34^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3e63c9bddc1702ec6258002cbf330122325cd8f2;p=tools%2Fsolverlab.git manage meshes --- diff --git a/CoreFlows/gui/ui/MainCFWidget.py b/CoreFlows/gui/ui/MainCFWidget.py index 82ca2fa..3c65602 100755 --- a/CoreFlows/gui/ui/MainCFWidget.py +++ b/CoreFlows/gui/ui/MainCFWidget.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- from PyQt5 import QtWidgets, QtCore +from PyQt5.QtWidgets import QFileDialog from PyQt5.uic import loadUi from slutils import completeResPath @@ -275,8 +276,7 @@ class MainCFWidget(QtWidgets.QTabWidget): print("SinglePhaseSelected") self.removeTab(2) self.insertTab(2,self.models[0],"Physical model") - - + def onDriftModelSelected(self,isChecked): if(isChecked): print("DriftModelSelected") @@ -288,8 +288,7 @@ class MainCFWidget(QtWidgets.QTabWidget): print("TransportSelected") self.removeTab(2) self.insertTab(2,self.models[5],"Physical model") - - + def onIsothermal2FluidSelected(self,isChecked): if(isChecked): print("Isothermal2FluidSelected") @@ -301,11 +300,22 @@ class MainCFWidget(QtWidgets.QTabWidget): print("DiffusionSelected") self.removeTab(2) self.insertTab(2,self.models[4],"Physical model") - - + def on5Eq2FluidSelected(self,isChecked): if(isChecked): print("5Eq2FluidSelected") self.removeTab(2) self.insertTab(2,self.models[2],"Physical model") + def onCreationMesh(self,isChecked): + if(isChecked): + print("CreationMesh") + + def onMeshFile(self,isChecked): + if(isChecked): + print("Input Mesh File") + + def onSelectMeshFile(self): + print("Select Mesh File") + fname = QFileDialog.getOpenFileName(self, 'Open file','',"Image files (*.med)") + print(fname[0]) diff --git a/CoreFlows/gui/ui/MainCFWidget.ui b/CoreFlows/gui/ui/MainCFWidget.ui index d422867..1d8abe5 100755 --- a/CoreFlows/gui/ui/MainCFWidget.ui +++ b/CoreFlows/gui/ui/MainCFWidget.ui @@ -29,7 +29,7 @@ - 0 + 1 @@ -12751,12 +12751,12 @@ setEnabled(bool) - 610 - 237 + 194 + 70 - 110 - 65 + 832 + 371 @@ -12767,12 +12767,12 @@ setEnabled(bool) - 476 - 237 + 194 + 70 - 110 - 65 + 582 + 371 @@ -12783,28 +12783,28 @@ setEnabled(bool) - 342 - 237 + 194 + 70 - 110 - 65 + 331 + 371 MeshCreation_RadioButton toggled(bool) - Mesh_Creation - setEnabled(bool) + TabWidget + onCreationMesh(bool) - 100 - 65 + 228 + 270 - 780 - 235 + 610 + 425 @@ -12831,8 +12831,8 @@ onDriftModelSelected(bool) - 647 - 465 + 314 + 75 610 @@ -12847,8 +12847,8 @@ onSinglePhaseSelected(bool) - 522 - 390 + 314 + 75 610 @@ -12863,8 +12863,8 @@ onTransportSelected(bool) - 522 - 294 + 314 + 75 610 @@ -12879,8 +12879,8 @@ onDiffusionSelected(bool) - 522 - 330 + 314 + 75 610 @@ -12895,8 +12895,8 @@ onIsothermal2FluidSelected(bool) - 522 - 486 + 314 + 75 610 @@ -12911,8 +12911,40 @@ on5Eq2FluidSelected(bool) - 522 - 522 + 314 + 75 + + + 610 + 425 + + + + + MeshInputFileName_RadioButton + toggled(bool) + TabWidget + onMeshFile(bool) + + + 183 + 153 + + + 610 + 425 + + + + + MeshInputFileName_toolButton + clicked() + TabWidget + onSelectMeshFile() + + + 601 + 153 610 @@ -12931,6 +12963,9 @@ Dim_1(bool) Dim_2(bool) Dim_3(bool) + onMeshFile(bool) + onSelectMeshFile() + onCreationMesh(bool) onLaunchSimu()