From 6e41588e824db2221ce95e42b94b8aa106c94993 Mon Sep 17 00:00:00 2001 From: sbosse Date: Wed, 28 Aug 2024 21:39:59 +0200 Subject: [PATCH] Wed 28 Aug 21:38:52 CEST 2024 --- src/SimNDT/gui/ui_threephasemodeldrycase.py | 192 ++++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 src/SimNDT/gui/ui_threephasemodeldrycase.py diff --git a/src/SimNDT/gui/ui_threephasemodeldrycase.py b/src/SimNDT/gui/ui_threephasemodeldrycase.py new file mode 100644 index 0000000..799e050 --- /dev/null +++ b/src/SimNDT/gui/ui_threephasemodeldrycase.py @@ -0,0 +1,192 @@ +# -*- coding: utf-8 -*- + + +from PySide import QtCore, QtGui +from SimNDT.gui.constants import * + +class Ui_threePhaseModelDryCaseDialog(object): + def setupUi(self, threePhaseModelDryCaseDialog): + scaleUI = SCALE_UI + threePhaseModelDryCaseDialog.setObjectName("threePhaseModelDryCaseDialog") + threePhaseModelDryCaseDialog.resize(473*scaleUI, 465*scaleUI) + threePhaseModelDryCaseDialog.setMaximumSize(QtCore.QSize(473*scaleUI, 465*scaleUI)) + self.buttonBox = QtGui.QDialogButtonBox(threePhaseModelDryCaseDialog) + self.buttonBox.setGeometry(QtCore.QRect(90*scaleUI, 430*scaleUI, 341*scaleUI, 32*scaleUI)) + self.buttonBox.setOrientation(QtCore.Qt.Horizontal) + self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) + self.buttonBox.setObjectName("buttonBox") + self.progressBar = QtGui.QProgressBar(threePhaseModelDryCaseDialog) + self.progressBar.setGeometry(QtCore.QRect(30*scaleUI, 400*scaleUI, 411*scaleUI, 23*scaleUI)) + self.progressBar.setProperty("value", 24) + self.progressBar.setObjectName("progressBar") + self.groupBox = QtGui.QGroupBox(threePhaseModelDryCaseDialog) + self.groupBox.setGeometry(QtCore.QRect(10*scaleUI, 10*scaleUI, 451*scaleUI, 221*scaleUI)) + self.groupBox.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) + self.groupBox.setFlat(True) + self.groupBox.setObjectName("groupBox") + self.frame = QtGui.QFrame(self.groupBox) + self.frame.setGeometry(QtCore.QRect(10*scaleUI, 30*scaleUI, 441*scaleUI, 181*scaleUI)) + self.frame.setFrameShape(QtGui.QFrame.StyledPanel) + self.frame.setFrameShadow(QtGui.QFrame.Sunken) + self.frame.setObjectName("frame") + self.gridLayoutWidget = QtGui.QWidget(self.frame) + self.gridLayoutWidget.setGeometry(QtCore.QRect(10*scaleUI, 10*scaleUI, 419*scaleUI, 162*scaleUI)) + self.gridLayoutWidget.setObjectName("gridLayoutWidget") + self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget) + self.gridLayout.setContentsMargins(0, 0, 0, 0) + self.gridLayout.setObjectName("gridLayout") + self.gradingDoubleSpinBox = QtGui.QDoubleSpinBox(self.gridLayoutWidget) + self.gradingDoubleSpinBox.setMinimum(0.01) + self.gradingDoubleSpinBox.setMaximum(0.8) + self.gradingDoubleSpinBox.setSingleStep(0.2) + self.gradingDoubleSpinBox.setProperty("value", 0.1) + self.gradingDoubleSpinBox.setObjectName("gradingDoubleSpinBox") + self.gridLayout.addWidget(self.gradingDoubleSpinBox, 2, 2, 1, 1) + self.label_5 = QtGui.QLabel(self.gridLayoutWidget) + self.label_5.setObjectName("label_5") + self.gridLayout.addWidget(self.label_5, 2, 3, 1, 1) + self.label_4 = QtGui.QLabel(self.gridLayoutWidget) + self.label_4.setObjectName("label_4") + self.gridLayout.addWidget(self.label_4, 1, 3, 1, 1) + self.labelSpinBox = QtGui.QSpinBox(self.gridLayoutWidget) + self.labelSpinBox.setMaximum(240) + self.labelSpinBox.setSingleStep(40) + self.labelSpinBox.setProperty("value", 40) + self.labelSpinBox.setObjectName("labelSpinBox") + self.gridLayout.addWidget(self.labelSpinBox, 1, 0, 1, 1) + self.minAspectRatioDoubleSpinBox = QtGui.QDoubleSpinBox(self.gridLayoutWidget) + self.minAspectRatioDoubleSpinBox.setMinimum(0.2) + self.minAspectRatioDoubleSpinBox.setMaximum(1.0) + self.minAspectRatioDoubleSpinBox.setProperty("value", 0.5) + self.minAspectRatioDoubleSpinBox.setObjectName("minAspectRatioDoubleSpinBox") + self.gridLayout.addWidget(self.minAspectRatioDoubleSpinBox, 3, 2, 1, 1) + self.minDiameterDoubleSpinBox = QtGui.QDoubleSpinBox(self.gridLayoutWidget) + self.minDiameterDoubleSpinBox.setMinimum(0.2) + self.minDiameterDoubleSpinBox.setMaximum(20.0) + self.minDiameterDoubleSpinBox.setSingleStep(0.1) + self.minDiameterDoubleSpinBox.setProperty("value", 0.5) + self.minDiameterDoubleSpinBox.setObjectName("minDiameterDoubleSpinBox") + self.gridLayout.addWidget(self.minDiameterDoubleSpinBox, 0, 2, 1, 1) + self.fractionLabel = QtGui.QLabel(self.gridLayoutWidget) + self.fractionLabel.setObjectName("fractionLabel") + self.gridLayout.addWidget(self.fractionLabel, 0, 1, 1, 1) + self.label_2 = QtGui.QLabel(self.gridLayoutWidget) + self.label_2.setObjectName("label_2") + self.gridLayout.addWidget(self.label_2, 0, 3, 1, 1) + self.fractionDoubleSpinBox = QtGui.QDoubleSpinBox(self.gridLayoutWidget) + self.fractionDoubleSpinBox.setMinimum(0.1) + self.fractionDoubleSpinBox.setMaximum(70.0) + self.fractionDoubleSpinBox.setProperty("value", 10.0) + self.fractionDoubleSpinBox.setObjectName("fractionDoubleSpinBox") + self.gridLayout.addWidget(self.fractionDoubleSpinBox, 0, 0, 1, 1) + self.maxDiameterDoubleSpinBox = QtGui.QDoubleSpinBox(self.gridLayoutWidget) + self.maxDiameterDoubleSpinBox.setMinimum(0.02) + self.maxDiameterDoubleSpinBox.setMaximum(20.0) + self.maxDiameterDoubleSpinBox.setSingleStep(0.1) + self.maxDiameterDoubleSpinBox.setProperty("value", 10.0) + self.maxDiameterDoubleSpinBox.setObjectName("maxDiameterDoubleSpinBox") + self.gridLayout.addWidget(self.maxDiameterDoubleSpinBox, 1, 2, 1, 1) + self.maxAspectRatioDoubleSpinBox = QtGui.QDoubleSpinBox(self.gridLayoutWidget) + self.maxAspectRatioDoubleSpinBox.setMinimum(0.3) + self.maxAspectRatioDoubleSpinBox.setMaximum(1.0) + self.maxAspectRatioDoubleSpinBox.setSingleStep(0.1) + self.maxAspectRatioDoubleSpinBox.setProperty("value", 0.8) + self.maxAspectRatioDoubleSpinBox.setObjectName("maxAspectRatioDoubleSpinBox") + self.gridLayout.addWidget(self.maxAspectRatioDoubleSpinBox, 4, 2, 1, 1) + self.label_7 = QtGui.QLabel(self.gridLayoutWidget) + self.label_7.setObjectName("label_7") + self.gridLayout.addWidget(self.label_7, 4, 3, 1, 1) + self.labelLabel = QtGui.QLabel(self.gridLayoutWidget) + self.labelLabel.setObjectName("labelLabel") + self.gridLayout.addWidget(self.labelLabel, 1, 1, 1, 1) + self.label_6 = QtGui.QLabel(self.gridLayoutWidget) + self.label_6.setObjectName("label_6") + self.gridLayout.addWidget(self.label_6, 3, 3, 1, 1) + self.groupBox_2 = QtGui.QGroupBox(threePhaseModelDryCaseDialog) + self.groupBox_2.setGeometry(QtCore.QRect(10*scaleUI, 230*scaleUI, 451*scaleUI, 171*scaleUI)) + self.groupBox_2.setFlat(True) + self.groupBox_2.setObjectName("groupBox_2") + self.frame_2 = QtGui.QFrame(self.groupBox_2) + self.frame_2.setGeometry(QtCore.QRect(10*scaleUI, 30*scaleUI, 441*scaleUI, 131*scaleUI)) + self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) + self.frame_2.setFrameShadow(QtGui.QFrame.Sunken) + self.frame_2.setObjectName("frame_2") + self.gridLayoutWidget_2 = QtGui.QWidget(self.frame_2) + self.gridLayoutWidget_2.setGeometry(QtCore.QRect(10*scaleUI, 10*scaleUI, 419*scaleUI, 111*scaleUI)) + self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2") + self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget_2) + self.gridLayout_2.setContentsMargins(0, 0, 0, 0) + self.gridLayout_2.setObjectName("gridLayout_2") + self.fractionDoubleSpinBox_2 = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2) + self.fractionDoubleSpinBox_2.setMinimum(0.1) + self.fractionDoubleSpinBox_2.setMaximum(10.0) + self.fractionDoubleSpinBox_2.setProperty("value", 1.0) + self.fractionDoubleSpinBox_2.setObjectName("fractionDoubleSpinBox_2") + self.gridLayout_2.addWidget(self.fractionDoubleSpinBox_2, 0, 0, 1, 1) + self.gradingDoubleSpinBox_2 = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2) + self.gradingDoubleSpinBox_2.setMinimum(0.01) + self.gradingDoubleSpinBox_2.setMaximum(0.8) + self.gradingDoubleSpinBox_2.setSingleStep(0.2) + self.gradingDoubleSpinBox_2.setProperty("value", 0.1) + self.gradingDoubleSpinBox_2.setObjectName("gradingDoubleSpinBox_2") + self.gridLayout_2.addWidget(self.gradingDoubleSpinBox_2, 2, 2, 1, 1) + self.labelLabel_2 = QtGui.QLabel(self.gridLayoutWidget_2) + self.labelLabel_2.setObjectName("labelLabel_2") + self.gridLayout_2.addWidget(self.labelLabel_2, 1, 1, 1, 1) + self.labelSpinBox_2 = QtGui.QSpinBox(self.gridLayoutWidget_2) + self.labelSpinBox_2.setMaximum(240) + self.labelSpinBox_2.setSingleStep(40) + self.labelSpinBox_2.setProperty("value", 80) + self.labelSpinBox_2.setObjectName("labelSpinBox_2") + self.gridLayout_2.addWidget(self.labelSpinBox_2, 1, 0, 1, 1) + self.label_3 = QtGui.QLabel(self.gridLayoutWidget_2) + self.label_3.setObjectName("label_3") + self.gridLayout_2.addWidget(self.label_3, 0, 3, 1, 1) + self.minDiameterDoubleSpinBox_2 = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2) + self.minDiameterDoubleSpinBox_2.setMinimum(0.2) + self.minDiameterDoubleSpinBox_2.setMaximum(20.0) + self.minDiameterDoubleSpinBox_2.setSingleStep(0.1) + self.minDiameterDoubleSpinBox_2.setProperty("value", 0.5) + self.minDiameterDoubleSpinBox_2.setObjectName("minDiameterDoubleSpinBox_2") + self.gridLayout_2.addWidget(self.minDiameterDoubleSpinBox_2, 0, 2, 1, 1) + self.label_8 = QtGui.QLabel(self.gridLayoutWidget_2) + self.label_8.setObjectName("label_8") + self.gridLayout_2.addWidget(self.label_8, 2, 3, 1, 1) + self.maxDiameterDoubleSpinBox_2 = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2) + self.maxDiameterDoubleSpinBox_2.setMinimum(0.02) + self.maxDiameterDoubleSpinBox_2.setMaximum(20.0) + self.maxDiameterDoubleSpinBox_2.setSingleStep(0.1) + self.maxDiameterDoubleSpinBox_2.setProperty("value", 1.0) + self.maxDiameterDoubleSpinBox_2.setObjectName("maxDiameterDoubleSpinBox_2") + self.gridLayout_2.addWidget(self.maxDiameterDoubleSpinBox_2, 1, 2, 1, 1) + self.label_9 = QtGui.QLabel(self.gridLayoutWidget_2) + self.label_9.setObjectName("label_9") + self.gridLayout_2.addWidget(self.label_9, 1, 3, 1, 1) + self.fractionLabel_2 = QtGui.QLabel(self.gridLayoutWidget_2) + self.fractionLabel_2.setObjectName("fractionLabel_2") + self.gridLayout_2.addWidget(self.fractionLabel_2, 0, 1, 1, 1) + + self.retranslateUi(threePhaseModelDryCaseDialog) + QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), threePhaseModelDryCaseDialog.accept) + QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), threePhaseModelDryCaseDialog.reject) + QtCore.QMetaObject.connectSlotsByName(threePhaseModelDryCaseDialog) + + def retranslateUi(self, threePhaseModelDryCaseDialog): + threePhaseModelDryCaseDialog.setWindowTitle(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Three-Phase Model (Dry Case)", None, QtGui.QApplication.UnicodeUTF8)) + self.groupBox.setTitle(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Aggregates", None, QtGui.QApplication.UnicodeUTF8)) + self.label_5.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Grading Curve Coeff", None, QtGui.QApplication.UnicodeUTF8)) + self.label_4.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Max Diameter (mm)", None, QtGui.QApplication.UnicodeUTF8)) + self.fractionLabel.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Concentration (%)", None, QtGui.QApplication.UnicodeUTF8)) + self.label_2.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Min Diameter (mm)", None, QtGui.QApplication.UnicodeUTF8)) + self.fractionDoubleSpinBox.setSuffix(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "%", None, QtGui.QApplication.UnicodeUTF8)) + self.label_7.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Max Aspect Ratio", None, QtGui.QApplication.UnicodeUTF8)) + self.labelLabel.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Label", None, QtGui.QApplication.UnicodeUTF8)) + self.label_6.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Min Aspect Ratio", None, QtGui.QApplication.UnicodeUTF8)) + self.groupBox_2.setTitle(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Air Voids", None, QtGui.QApplication.UnicodeUTF8)) + self.fractionDoubleSpinBox_2.setSuffix(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "%", None, QtGui.QApplication.UnicodeUTF8)) + self.labelLabel_2.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Label", None, QtGui.QApplication.UnicodeUTF8)) + self.label_3.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Min Diameter (mm)", None, QtGui.QApplication.UnicodeUTF8)) + self.label_8.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Grading Curve Coeff", None, QtGui.QApplication.UnicodeUTF8)) + self.label_9.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Max Diameter (mm)", None, QtGui.QApplication.UnicodeUTF8)) + self.fractionLabel_2.setText(QtGui.QApplication.translate("threePhaseModelDryCaseDialog", "Concentration (%)", None, QtGui.QApplication.UnicodeUTF8)) +