Skip to content

Commit 213a1af

Browse files
committed
Add generated files
1 parent 41c48dd commit 213a1af

File tree

4 files changed

+351
-6
lines changed

4 files changed

+351
-6
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ jobs:
8888
- uses: astral-sh/ruff-action@v3
8989
- run: ruff check
9090
- run: ruff format --check --diff
91-
- run: |
92-
cd modelica_fmi
93-
uv sync
94-
echo "from modelica_fmi.gui import compile_resources; compile_resources()" | uv run -
95-
cd ..
9691
- run: uv build modelica_fmi
9792
- uses: actions/upload-artifact@v4
9893
with:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ __pycache__
55
build/
66
dist/
77
*.egg-info/
8-
modelica_fmi/src/modelica_fmi/gui/generated/*.py
98
modelica_fmi/tests/work/
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# -*- coding: utf-8 -*-
2+
3+
################################################################################
4+
## Form generated from reading UI file 'ImportDialog.ui'
5+
##
6+
## Created by: Qt User Interface Compiler version 6.9.1
7+
##
8+
## WARNING! All changes made in this file will be lost when recompiling UI file!
9+
################################################################################
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+
26+
27+
class Ui_ImportDialog(object):
28+
def setupUi(self, ImportDialog):
29+
if not ImportDialog.objectName():
30+
ImportDialog.setObjectName("ImportDialog")
31+
ImportDialog.resize(400, 300)
32+
icon = QIcon()
33+
icon.addFile(":/fmi.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
34+
ImportDialog.setWindowIcon(icon)
35+
self.gridLayout = QGridLayout(ImportDialog)
36+
self.gridLayout.setSpacing(12)
37+
self.gridLayout.setObjectName("gridLayout")
38+
self.gridLayout.setContentsMargins(12, 12, 12, 12)
39+
self.mo = QLabel(ImportDialog)
40+
self.mo.setObjectName("mo")
41+
42+
self.gridLayout.addWidget(self.mo, 1, 0, 1, 1)
43+
44+
self.widget = QWidget(ImportDialog)
45+
self.widget.setObjectName("widget")
46+
self.horizontalLayout = QHBoxLayout(self.widget)
47+
self.horizontalLayout.setObjectName("horizontalLayout")
48+
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
49+
self.modelPathLineEdit = QLineEdit(self.widget)
50+
self.modelPathLineEdit.setObjectName("modelPathLineEdit")
51+
52+
self.horizontalLayout.addWidget(self.modelPathLineEdit)
53+
54+
self.selectModelPathButton = QToolButton(self.widget)
55+
self.selectModelPathButton.setObjectName("selectModelPathButton")
56+
57+
self.horizontalLayout.addWidget(self.selectModelPathButton)
58+
59+
self.gridLayout.addWidget(self.widget, 1, 1, 1, 1)
60+
61+
self.widget_2 = QWidget(ImportDialog)
62+
self.widget_2.setObjectName("widget_2")
63+
self.horizontalLayout_2 = QHBoxLayout(self.widget_2)
64+
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
65+
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
66+
self.fmuPathLineEdit = QLineEdit(self.widget_2)
67+
self.fmuPathLineEdit.setObjectName("fmuPathLineEdit")
68+
69+
self.horizontalLayout_2.addWidget(self.fmuPathLineEdit)
70+
71+
self.selectFMUPathButton = QToolButton(self.widget_2)
72+
self.selectFMUPathButton.setObjectName("selectFMUPathButton")
73+
74+
self.horizontalLayout_2.addWidget(self.selectFMUPathButton)
75+
76+
self.gridLayout.addWidget(self.widget_2, 0, 1, 1, 1)
77+
78+
self.label = QLabel(ImportDialog)
79+
self.label.setObjectName("label")
80+
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")
100+
101+
self.gridLayout.addWidget(self.basicCheckBox, 3, 0, 1, 2)
102+
103+
self.hideConnectorsCheckBox = QCheckBox(ImportDialog)
104+
self.hideConnectorsCheckBox.setObjectName("hideConnectorsCheckBox")
105+
106+
self.gridLayout.addWidget(self.hideConnectorsCheckBox, 4, 0, 1, 2)
107+
108+
self.retranslateUi(ImportDialog)
109+
self.buttonBox.accepted.connect(ImportDialog.accept)
110+
self.buttonBox.rejected.connect(ImportDialog.reject)
111+
112+
QMetaObject.connectSlotsByName(ImportDialog)
113+
114+
# setupUi
115+
116+
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+
139+
# retranslateUi
Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
# Resource object code (Python 3)
2+
# Created by: object code
3+
# Created by: The Resource Compiler for Qt version 6.9.1
4+
# WARNING! All changes made in this file will be lost!
5+
6+
from PySide6 import QtCore
7+
8+
qt_resource_data = b"\
9+
\x00\x00\x0a\xbb\
10+
<\
11+
?xml version=\x221.\
12+
0\x22 encoding=\x22UTF\
13+
-8\x22 standalone=\x22\
14+
no\x22?>\x0a<!DOCTYPE \
15+
svg PUBLIC \x22-//W\
16+
3C//DTD SVG 1.1/\
17+
/EN\x22 \x22http://www\
18+
.w3.org/Graphics\
19+
/SVG/1.1/DTD/svg\
20+
11.dtd\x22>\x0a<svg wi\
21+
dth=\x22100%\x22 heigh\
22+
t=\x22100%\x22 viewBox\
23+
=\x220 0 32 32\x22 ver\
24+
sion=\x221.1\x22 xmlns\
25+
=\x22http://www.w3.\
26+
org/2000/svg\x22 xm\
27+
lns:xlink=\x22http:\
28+
//www.w3.org/199\
29+
9/xlink\x22 xml:spa\
30+
ce=\x22preserve\x22 xm\
31+
lns:serif=\x22http:\
32+
//www.serif.com/\
33+
\x22 style=\x22fill-ru\
34+
le:evenodd;clip-\
35+
rule:evenodd;str\
36+
oke-linejoin:rou\
37+
nd;stroke-miterl\
38+
imit:2;\x22>\x0a <p\
39+
ath d=\x22M32,4.531\
40+
L32,27.469C32,29\
41+
.97 29.97,32 27.\
42+
469,32L4.531,32C\
43+
2.03,32 0,29.97 \
44+
0,27.469L0,4.531\
45+
C0,2.03 2.03,0 4\
46+
.531,0L27.469,0C\
47+
29.97,0 32,2.03 \
48+
32,4.531Z\x22 style\
49+
=\x22fill:white;\x22/>\
50+
\x0a <g id=\x22FMI\x22\
51+
transform=\x22matr\
52+
ix(0.165413,0,0,\
53+
0.150131,1.40289\
54+
,5.95185)\x22>\x0a \
55+
<g transform\
56+
=\x22matrix(1,0,0,-\
57+
1,0,265.852)\x22>\x0a \
58+
<path\
59+
d=\x22M3.75,128.54\
60+
3L3.75,137.309L2\
61+
2.711,137.305L29\
62+
.625,131.317L36.\
63+
859,137.305L172.\
64+
883,137.305L172.\
65+
883,128.543L3.75\
66+
,128.543Z\x22 style\
67+
=\x22fill:rgb(204,2\
68+
5,58);fill-rule:\
69+
nonzero;\x22/>\x0a \
70+
</g>\x0a \
71+
<g transform=\x22m\
72+
atrix(1,0,0,1,-0\
73+
.558201,-0.09884\
74+
71)\x22>\x0a \
75+
<g transform=\x22\
76+
matrix(1,0,0,-1,\
77+
0,135.012)\x22>\x0a \
78+
<pa\
79+
th d=\x22M134.832,3\
80+
6.375L134.832,73\
81+
.074C134.832,79.\
82+
571 131.535,84.2\
83+
62 125.035,87.01\
84+
6C123.059,87.477\
85+
121.664,87.672 \
86+
120.574,87.672C1\
87+
14.816,87.672 11\
88+
0.383,84.719 107\
89+
.391,78.899C106.\
90+
625,76.926 106.2\
91+
62,74.571 106.26\
92+
2,71.789L106.34,\
93+
36.375L95.527,36\
94+
.375L95.445,73.8\
95+
05C95.445,80.508\
96+
91.855,87.672 8\
97+
1.773,87.672C69.\
98+
75,87.672 67.047\
99+
,77.313 67.047,7\
100+
3.688L67.047,36.\
101+
375L56.234,36.37\
102+
5L56.289,72.805C\
103+
56.289,89.121 65\
104+
.406,98.477 81.3\
105+
05,98.477C88.52,\
106+
98.477 94.852,95\
107+
.606 100.129,89.\
108+
942L100.949,89.0\
109+
59L101.762,89.95\
110+
3C106.984,95.711\
111+
113.461,98.637 \
112+
121.012,98.637C1\
113+
45.363,98.637 14\
114+
5.645,75.239 145\
115+
.645,74.246L145.\
116+
645,36.375L134.8\
117+
32,36.375Z\x22 styl\
118+
e=\x22fill:rgb(42,5\
119+
5,65);fill-rule:\
120+
nonzero;\x22/>\x0a \
121+
</g>\x0a \
122+
<g tran\
123+
sform=\x22matrix(1,\
124+
0,0,-1,0,160.792\
125+
)\x22>\x0a \
126+
<rect x=\x22161\
127+
.914\x22 y=\x2262.152\x22\
128+
width=\x2210.953\x22 \
129+
height=\x2236.488\x22 \
130+
style=\x22fill:rgb(\
131+
42,55,65);\x22/>\x0a \
132+
</g>\x0a \
133+
<g tr\
134+
ansform=\x22matrix(\
135+
1,0,0,-1,0,90.86\
136+
3)\x22>\x0a \
137+
<rect x=\x2216\
138+
1.934\x22 y=\x2238.445\
139+
\x22 width=\x2210.953\x22\
140+
height=\x2213.973\x22\
141+
style=\x22fill:rgb\
142+
(42,55,65);\x22/>\x0a \
143+
</g>\x0a\
144+
<g t\
145+
ransform=\x22matrix\
146+
(1,0,0,-1,0,132.\
147+
531)\x22>\x0a \
148+
<path d=\x22\
149+
M24.461,8.242L24\
150+
.461,85.187L4.16\
151+
8,85.187L4.379,9\
152+
5.996L24.461,95.\
153+
996L24.461,103.0\
154+
93C24.461,111.09\
155+
3 27.434,117.957\
156+
33.289,123.492C\
157+
35.441,125.125 3\
158+
7.848,126.461 40\
159+
.352,127.398C43.\
160+
23,128.289 46.58\
161+
6,128.758 50.266\
162+
,128.781L50.266,\
163+
117.965C43.234,1\
164+
17.898 38.688,11\
165+
5.308 36.75,110.\
166+
261C35.77,107.68\
167+
3 35.273,105.273\
168+
35.273,103.093L\
169+
35.273,95.996L56\
170+
.289,95.996C52.2\
171+
11,92.222 49.953\
172+
,87.109 49.207,8\
173+
5.187L35.273,85.\
174+
187L35.273,8.261\
175+
L29.656,3.75L24.\
176+
461,8.242Z\x22 styl\
177+
e=\x22fill:rgb(42,5\
178+
5,65);fill-rule:\
179+
nonzero;\x22/>\x0a \
180+
</g>\x0a \
181+
</g>\x0a </\
182+
g>\x0a</svg>\x0a\
183+
"
184+
185+
qt_resource_name = b"\
186+
\x00\x07\
187+
\x0d<Z\x07\
188+
\x00f\
189+
\x00m\x00i\x00.\x00s\x00v\x00g\
190+
"
191+
192+
qt_resource_struct = b"\
193+
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
194+
\x00\x00\x00\x00\x00\x00\x00\x00\
195+
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
196+
\x00\x00\x01\x97\x83[\xae\xe5\
197+
"
198+
199+
200+
def qInitResources():
201+
QtCore.qRegisterResourceData(
202+
0x03, qt_resource_struct, qt_resource_name, qt_resource_data
203+
)
204+
205+
206+
def qCleanupResources():
207+
QtCore.qUnregisterResourceData(
208+
0x03, qt_resource_struct, qt_resource_name, qt_resource_data
209+
)
210+
211+
212+
qInitResources()

0 commit comments

Comments
 (0)