# -*- coding: utf-8 -*-
# File generated according to DXF_Surf.ui
# WARNING! All changes made in this file will be lost!
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
from ...GUI.Tools.FloatEdit import FloatEdit
from ...GUI.Tools.WPathSelector.WPathSelector import WPathSelector
from pyleecan.GUI.Resources import pyleecan_rc
[docs]class Ui_DXF_Surf(object):
[docs] def setupUi(self, DXF_Surf):
if not DXF_Surf.objectName():
DXF_Surf.setObjectName(u"DXF_Surf")
DXF_Surf.resize(864, 653)
icon = QIcon()
icon.addFile(
u":/images/images/icon/pyleecan_64.png", QSize(), QIcon.Normal, QIcon.Off
)
DXF_Surf.setWindowIcon(icon)
self.horizontalLayout_5 = QHBoxLayout(DXF_Surf)
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
self.layout_plot = QVBoxLayout()
self.layout_plot.setObjectName(u"layout_plot")
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.b_reset = QPushButton(DXF_Surf)
self.b_reset.setObjectName(u"b_reset")
self.horizontalLayout.addWidget(self.b_reset)
self.b_cancel = QPushButton(DXF_Surf)
self.b_cancel.setObjectName(u"b_cancel")
self.horizontalLayout.addWidget(self.b_cancel)
self.b_tuto = QPushButton(DXF_Surf)
self.b_tuto.setObjectName(u"b_tuto")
self.b_tuto.setEnabled(False)
self.horizontalLayout.addWidget(self.b_tuto)
self.horizontalSpacer_2 = QSpacerItem(
40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum
)
self.horizontalLayout.addItem(self.horizontalSpacer_2)
self.layout_plot.addLayout(self.horizontalLayout)
self.textBrowser = QTextBrowser(DXF_Surf)
self.textBrowser.setObjectName(u"textBrowser")
self.textBrowser.setMaximumSize(QSize(16777215, 140))
self.layout_plot.addWidget(self.textBrowser)
self.horizontalLayout_5.addLayout(self.layout_plot)
self.w_side = QWidget(DXF_Surf)
self.w_side.setObjectName(u"w_side")
self.w_side.setMinimumSize(QSize(400, 0))
self.w_side.setMaximumSize(QSize(400, 16777215))
self.verticalLayout_2 = QVBoxLayout(self.w_side)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.g_import = QGroupBox(self.w_side)
self.g_import.setObjectName(u"g_import")
self.verticalLayout = QVBoxLayout(self.g_import)
self.verticalLayout.setObjectName(u"verticalLayout")
self.w_path_selector = WPathSelector(self.g_import)
self.w_path_selector.setObjectName(u"w_path_selector")
sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(
self.w_path_selector.sizePolicy().hasHeightForWidth()
)
self.w_path_selector.setSizePolicy(sizePolicy)
self.verticalLayout.addWidget(self.w_path_selector)
self.is_convert = QCheckBox(self.g_import)
self.is_convert.setObjectName(u"is_convert")
self.is_convert.setChecked(True)
self.verticalLayout.addWidget(self.is_convert)
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.in_tol = QLabel(self.g_import)
self.in_tol.setObjectName(u"in_tol")
self.horizontalLayout_3.addWidget(self.in_tol)
self.lf_tol = FloatEdit(self.g_import)
self.lf_tol.setObjectName(u"lf_tol")
sizePolicy1 = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.lf_tol.sizePolicy().hasHeightForWidth())
self.lf_tol.setSizePolicy(sizePolicy1)
self.horizontalLayout_3.addWidget(self.lf_tol)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.verticalLayout_2.addWidget(self.g_import)
self.gridLayout = QGridLayout()
self.gridLayout.setObjectName(u"gridLayout")
self.in_Zh = QLabel(self.w_side)
self.in_Zh.setObjectName(u"in_Zh")
self.gridLayout.addWidget(self.in_Zh, 0, 0, 1, 1)
self.in_per_a = QLabel(self.w_side)
self.in_per_a.setObjectName(u"in_per_a")
self.gridLayout.addWidget(self.in_per_a, 1, 0, 1, 1)
self.si_Zh = QSpinBox(self.w_side)
self.si_Zh.setObjectName(u"si_Zh")
sizePolicy2 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
sizePolicy2.setHorizontalStretch(0)
sizePolicy2.setVerticalStretch(0)
sizePolicy2.setHeightForWidth(self.si_Zh.sizePolicy().hasHeightForWidth())
self.si_Zh.setSizePolicy(sizePolicy2)
self.si_Zh.setMinimum(1)
self.si_Zh.setMaximum(1000)
self.si_Zh.setSingleStep(0)
self.si_Zh.setValue(36)
self.gridLayout.addWidget(self.si_Zh, 0, 2, 1, 1)
self.si_per_a = QSpinBox(self.w_side)
self.si_per_a.setObjectName(u"si_per_a")
self.gridLayout.addWidget(self.si_per_a, 1, 2, 1, 1)
self.verticalLayout_2.addLayout(self.gridLayout)
self.g_center = QGroupBox(self.w_side)
self.g_center.setObjectName(u"g_center")
self.gridLayout_3 = QGridLayout(self.g_center)
self.gridLayout_3.setObjectName(u"gridLayout_3")
self.in_coord_center_X = QLabel(self.g_center)
self.in_coord_center_X.setObjectName(u"in_coord_center_X")
self.gridLayout_3.addWidget(self.in_coord_center_X, 0, 0, 1, 1)
self.lf_center_x = FloatEdit(self.g_center)
self.lf_center_x.setObjectName(u"lf_center_x")
sizePolicy3 = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
sizePolicy3.setHorizontalStretch(0)
sizePolicy3.setVerticalStretch(0)
sizePolicy3.setHeightForWidth(self.lf_center_x.sizePolicy().hasHeightForWidth())
self.lf_center_x.setSizePolicy(sizePolicy3)
self.gridLayout_3.addWidget(self.lf_center_x, 0, 1, 1, 1)
self.in_coord_center_Y = QLabel(self.g_center)
self.in_coord_center_Y.setObjectName(u"in_coord_center_Y")
self.gridLayout_3.addWidget(self.in_coord_center_Y, 1, 0, 1, 1)
self.lf_center_y = FloatEdit(self.g_center)
self.lf_center_y.setObjectName(u"lf_center_y")
self.lf_center_y.setEnabled(True)
sizePolicy3.setHeightForWidth(self.lf_center_y.sizePolicy().hasHeightForWidth())
self.lf_center_y.setSizePolicy(sizePolicy3)
self.lf_center_y.setMaximumSize(QSize(16777215, 16777215))
self.gridLayout_3.addWidget(self.lf_center_y, 1, 1, 1, 1)
self.verticalLayout_2.addWidget(self.g_center)
self.verticalSpacer = QSpacerItem(
20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding
)
self.verticalLayout_2.addItem(self.verticalSpacer)
self.horizontalLayout_4 = QHBoxLayout()
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.in_scaling = QLabel(self.w_side)
self.in_scaling.setObjectName(u"in_scaling")
self.horizontalLayout_4.addWidget(self.in_scaling)
self.lf_scaling = FloatEdit(self.w_side)
self.lf_scaling.setObjectName(u"lf_scaling")
sizePolicy3.setHeightForWidth(self.lf_scaling.sizePolicy().hasHeightForWidth())
self.lf_scaling.setSizePolicy(sizePolicy3)
self.horizontalLayout_4.addWidget(self.lf_scaling)
self.verticalLayout_2.addLayout(self.horizontalLayout_4)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.horizontalLayout_2.setSizeConstraint(QLayout.SetMinimumSize)
self.horizontalSpacer = QSpacerItem(
40, 20, QSizePolicy.Fixed, QSizePolicy.Minimum
)
self.horizontalLayout_2.addItem(self.horizontalSpacer)
self.b_plot = QPushButton(self.w_side)
self.b_plot.setObjectName(u"b_plot")
self.horizontalLayout_2.addWidget(self.b_plot)
self.b_save = QPushButton(self.w_side)
self.b_save.setObjectName(u"b_save")
self.horizontalLayout_2.addWidget(self.b_save)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.horizontalLayout_5.addWidget(self.w_side)
self.retranslateUi(DXF_Surf)
QMetaObject.connectSlotsByName(DXF_Surf)
# setupUi
[docs] def retranslateUi(self, DXF_Surf):
DXF_Surf.setWindowTitle(
QCoreApplication.translate("DXF_Surf", u"Define Hole from DXF", None)
)
self.b_reset.setText(
QCoreApplication.translate("DXF_Surf", u"Reset View", None)
)
self.b_cancel.setText(
QCoreApplication.translate("DXF_Surf", u"Cancel Selection", None)
)
self.b_tuto.setText(
QCoreApplication.translate("DXF_Surf", u"Open Tutorial", None)
)
self.textBrowser.setHtml(
QCoreApplication.translate(
"DXF_Surf",
u'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">\n'
'<html><head><meta name="qrichtext" content="1" /><style type="text/css">\n'
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:'DejaVu Sans'; font-size:7.8pt; font-weight:400; font-style:normal;\">\n"
'<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:\'DejaVu Sans\'; font-size:10pt;">1) Import your DXF file in [m] or set a scaling factor</span></p>\n'
'<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:\'DejaVu Sans\'; font-size:10pt;">FEMM convertion enables to merge close points according to tolerance in [local unit] and converts lines to arcs and segments (splines need to be converted)</span></p>\n'
'<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0p'
'x; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:\'DejaVu Sans\'; font-size:10pt;">2) Click on lines and arcs to define a closed area</span></p>\n'
'<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:\'DejaVu Sans\'; font-size:10pt;">3) Plot to check and save</span></p></body></html>',
None,
)
)
self.g_import.setTitle(
QCoreApplication.translate("DXF_Surf", u"DXF file import", None)
)
self.is_convert.setText(
QCoreApplication.translate("DXF_Surf", u"Convert through FEMM", None)
)
self.in_tol.setText(
QCoreApplication.translate("DXF_Surf", u"Merge tolerance [l.u.]", None)
)
self.lf_tol.setText(QCoreApplication.translate("DXF_Surf", u"1e-5", None))
self.in_Zh.setText(
QCoreApplication.translate("DXF_Surf", u"Number of ducts", None)
)
self.in_per_a.setText(
QCoreApplication.translate("DXF_Surf", u"Periodicity", None)
)
self.g_center.setTitle(
QCoreApplication.translate("DXF_Surf", u"Machine Center", None)
)
self.in_coord_center_X.setText(
QCoreApplication.translate("DXF_Surf", u"X coordinate [l.u.]", None)
)
self.lf_center_x.setText(QCoreApplication.translate("DXF_Surf", u"0", None))
self.in_coord_center_Y.setText(
QCoreApplication.translate("DXF_Surf", u"Y coordinate [l.u.]", None)
)
self.lf_center_y.setText(QCoreApplication.translate("DXF_Surf", u"0", None))
self.in_scaling.setText(
QCoreApplication.translate(
"DXF_Surf", u"Scaling factor [l.u.] to [m]", None
)
)
self.lf_scaling.setText(QCoreApplication.translate("DXF_Surf", u"1", None))
self.b_plot.setText(QCoreApplication.translate("DXF_Surf", u"Plot", None))
self.b_save.setText(QCoreApplication.translate("DXF_Surf", u"Save", None))
# retranslateUi