|
8 | 8 | ## WARNING! All changes made in this file will be lost when recompiling UI file! |
9 | 9 | ################################################################################ |
10 | 10 |
|
11 | | -from PySide6.QtCore import QCoreApplication, QMetaObject, QSize, Qt |
12 | | -from PySide6.QtGui import QIcon |
13 | | -from PySide6.QtWidgets import ( |
14 | | - QCheckBox, |
15 | | - QDialogButtonBox, |
16 | | - QGridLayout, |
17 | | - QHBoxLayout, |
18 | | - QLabel, |
19 | | - QLineEdit, |
20 | | - QSizePolicy, |
21 | | - QSpacerItem, |
22 | | - QToolButton, |
23 | | - QWidget, |
24 | | -) |
25 | | - |
| 11 | +from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, |
| 12 | + QMetaObject, QObject, QPoint, QRect, |
| 13 | + QSize, QTime, QUrl, Qt) |
| 14 | +from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, |
| 15 | + QFont, QFontDatabase, QGradient, QIcon, |
| 16 | + QImage, QKeySequence, QLinearGradient, QPainter, |
| 17 | + QPalette, QPixmap, QRadialGradient, QTransform) |
| 18 | +from PySide6.QtWidgets import (QAbstractButton, QApplication, QDialog, QDialogButtonBox, |
| 19 | + QGridLayout, QHBoxLayout, QLabel, QLineEdit, |
| 20 | + QSizePolicy, QSpacerItem, QToolButton, QWidget) |
| 21 | +from . import icons_rc |
26 | 22 |
|
27 | 23 | class Ui_ImportDialog(object): |
28 | 24 | def setupUi(self, ImportDialog): |
29 | 25 | if not ImportDialog.objectName(): |
30 | | - ImportDialog.setObjectName("ImportDialog") |
31 | | - ImportDialog.resize(400, 300) |
| 26 | + ImportDialog.setObjectName(u"ImportDialog") |
| 27 | + ImportDialog.resize(529, 148) |
32 | 28 | icon = QIcon() |
33 | | - icon.addFile(":/fmi.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off) |
| 29 | + icon.addFile(u":/fmi.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off) |
34 | 30 | ImportDialog.setWindowIcon(icon) |
35 | 31 | self.gridLayout = QGridLayout(ImportDialog) |
36 | 32 | self.gridLayout.setSpacing(12) |
37 | | - self.gridLayout.setObjectName("gridLayout") |
| 33 | + self.gridLayout.setObjectName(u"gridLayout") |
38 | 34 | self.gridLayout.setContentsMargins(12, 12, 12, 12) |
| 35 | + self.label = QLabel(ImportDialog) |
| 36 | + self.label.setObjectName(u"label") |
| 37 | + |
| 38 | + self.gridLayout.addWidget(self.label, 0, 0, 1, 1) |
| 39 | + |
| 40 | + self.buttonBox = QDialogButtonBox(ImportDialog) |
| 41 | + self.buttonBox.setObjectName(u"buttonBox") |
| 42 | + self.buttonBox.setOrientation(Qt.Orientation.Horizontal) |
| 43 | + self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Ok) |
| 44 | + |
| 45 | + self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 2) |
| 46 | + |
39 | 47 | self.mo = QLabel(ImportDialog) |
40 | | - self.mo.setObjectName("mo") |
| 48 | + self.mo.setObjectName(u"mo") |
41 | 49 |
|
42 | 50 | self.gridLayout.addWidget(self.mo, 1, 0, 1, 1) |
43 | 51 |
|
44 | 52 | self.widget = QWidget(ImportDialog) |
45 | | - self.widget.setObjectName("widget") |
| 53 | + self.widget.setObjectName(u"widget") |
46 | 54 | self.horizontalLayout = QHBoxLayout(self.widget) |
47 | | - self.horizontalLayout.setObjectName("horizontalLayout") |
| 55 | + self.horizontalLayout.setObjectName(u"horizontalLayout") |
48 | 56 | self.horizontalLayout.setContentsMargins(0, 0, 0, 0) |
49 | 57 | self.modelPathLineEdit = QLineEdit(self.widget) |
50 | | - self.modelPathLineEdit.setObjectName("modelPathLineEdit") |
| 58 | + self.modelPathLineEdit.setObjectName(u"modelPathLineEdit") |
51 | 59 |
|
52 | 60 | self.horizontalLayout.addWidget(self.modelPathLineEdit) |
53 | 61 |
|
54 | 62 | self.selectModelPathButton = QToolButton(self.widget) |
55 | | - self.selectModelPathButton.setObjectName("selectModelPathButton") |
| 63 | + self.selectModelPathButton.setObjectName(u"selectModelPathButton") |
56 | 64 |
|
57 | 65 | self.horizontalLayout.addWidget(self.selectModelPathButton) |
58 | 66 |
|
| 67 | + |
59 | 68 | self.gridLayout.addWidget(self.widget, 1, 1, 1, 1) |
60 | 69 |
|
61 | 70 | self.widget_2 = QWidget(ImportDialog) |
62 | | - self.widget_2.setObjectName("widget_2") |
| 71 | + self.widget_2.setObjectName(u"widget_2") |
63 | 72 | self.horizontalLayout_2 = QHBoxLayout(self.widget_2) |
64 | | - self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
| 73 | + self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") |
65 | 74 | self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) |
66 | 75 | self.fmuPathLineEdit = QLineEdit(self.widget_2) |
67 | | - self.fmuPathLineEdit.setObjectName("fmuPathLineEdit") |
| 76 | + self.fmuPathLineEdit.setObjectName(u"fmuPathLineEdit") |
68 | 77 |
|
69 | 78 | self.horizontalLayout_2.addWidget(self.fmuPathLineEdit) |
70 | 79 |
|
71 | 80 | self.selectFMUPathButton = QToolButton(self.widget_2) |
72 | | - self.selectFMUPathButton.setObjectName("selectFMUPathButton") |
| 81 | + self.selectFMUPathButton.setObjectName(u"selectFMUPathButton") |
73 | 82 |
|
74 | 83 | self.horizontalLayout_2.addWidget(self.selectFMUPathButton) |
75 | 84 |
|
76 | | - self.gridLayout.addWidget(self.widget_2, 0, 1, 1, 1) |
77 | | - |
78 | | - self.label = QLabel(ImportDialog) |
79 | | - self.label.setObjectName("label") |
80 | 85 |
|
81 | | - self.gridLayout.addWidget(self.label, 0, 0, 1, 1) |
82 | | - |
83 | | - self.verticalSpacer = QSpacerItem( |
84 | | - 20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding |
85 | | - ) |
86 | | - |
87 | | - self.gridLayout.addItem(self.verticalSpacer, 5, 0, 1, 1) |
88 | | - |
89 | | - self.buttonBox = QDialogButtonBox(ImportDialog) |
90 | | - self.buttonBox.setObjectName("buttonBox") |
91 | | - self.buttonBox.setOrientation(Qt.Orientation.Horizontal) |
92 | | - self.buttonBox.setStandardButtons( |
93 | | - QDialogButtonBox.StandardButton.Cancel | QDialogButtonBox.StandardButton.Ok |
94 | | - ) |
95 | | - |
96 | | - self.gridLayout.addWidget(self.buttonBox, 6, 0, 1, 2) |
97 | | - |
98 | | - self.basicCheckBox = QCheckBox(ImportDialog) |
99 | | - self.basicCheckBox.setObjectName("basicCheckBox") |
| 86 | + self.gridLayout.addWidget(self.widget_2, 0, 1, 1, 1) |
100 | 87 |
|
101 | | - self.gridLayout.addWidget(self.basicCheckBox, 3, 0, 1, 2) |
| 88 | + self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding) |
102 | 89 |
|
103 | | - self.hideConnectorsCheckBox = QCheckBox(ImportDialog) |
104 | | - self.hideConnectorsCheckBox.setObjectName("hideConnectorsCheckBox") |
| 90 | + self.gridLayout.addItem(self.verticalSpacer, 3, 0, 1, 1) |
105 | 91 |
|
106 | | - self.gridLayout.addWidget(self.hideConnectorsCheckBox, 4, 0, 1, 2) |
107 | 92 |
|
108 | 93 | self.retranslateUi(ImportDialog) |
109 | 94 | self.buttonBox.accepted.connect(ImportDialog.accept) |
110 | 95 | self.buttonBox.rejected.connect(ImportDialog.reject) |
111 | 96 |
|
112 | 97 | QMetaObject.connectSlotsByName(ImportDialog) |
113 | | - |
114 | 98 | # setupUi |
115 | 99 |
|
116 | 100 | def retranslateUi(self, ImportDialog): |
117 | | - ImportDialog.setWindowTitle( |
118 | | - QCoreApplication.translate( |
119 | | - "ImportDialog", "Import an FMU to Modelica", None |
120 | | - ) |
121 | | - ) |
122 | | - self.mo.setText( |
123 | | - QCoreApplication.translate("ImportDialog", "Modelica File", None) |
124 | | - ) |
125 | | - self.selectModelPathButton.setText( |
126 | | - QCoreApplication.translate("ImportDialog", "...", None) |
127 | | - ) |
128 | | - self.selectFMUPathButton.setText( |
129 | | - QCoreApplication.translate("ImportDialog", "...", None) |
130 | | - ) |
131 | | - self.label.setText(QCoreApplication.translate("ImportDialog", "FMU", None)) |
132 | | - self.basicCheckBox.setText( |
133 | | - QCoreApplication.translate("ImportDialog", "Basic Co-Simulation", None) |
134 | | - ) |
135 | | - self.hideConnectorsCheckBox.setText( |
136 | | - QCoreApplication.translate("ImportDialog", "Hide Connectors", None) |
137 | | - ) |
138 | | - |
| 101 | + ImportDialog.setWindowTitle(QCoreApplication.translate("ImportDialog", u"Import an FMU to Modelica", None)) |
| 102 | + self.label.setText(QCoreApplication.translate("ImportDialog", u"FMU", None)) |
| 103 | + self.mo.setText(QCoreApplication.translate("ImportDialog", u"Modelica File", None)) |
| 104 | + self.selectModelPathButton.setText(QCoreApplication.translate("ImportDialog", u"...", None)) |
| 105 | + self.selectFMUPathButton.setText(QCoreApplication.translate("ImportDialog", u"...", None)) |
139 | 106 | # retranslateUi |
| 107 | + |
0 commit comments