-
Notifications
You must be signed in to change notification settings - Fork 2
/
GUIMainWindow.py
323 lines (316 loc) · 18.8 KB
/
GUIMainWindow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1208, 870)
MainWindow.setMinimumSize(QtCore.QSize(800, 600))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName("horizontalLayout")
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
font = QtGui.QFont()
font.setPointSize(8)
self.tabWidget.setFont(font)
self.tabWidget.setObjectName("tabWidget")
self.DesignView = QtWidgets.QWidget()
self.DesignView.setObjectName("DesignView")
self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.DesignView)
self.horizontalLayout_10.setObjectName("horizontalLayout_10")
self.verticalLayout_canvas = QtWidgets.QVBoxLayout()
self.verticalLayout_canvas.setObjectName("verticalLayout_canvas")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.verticalLayout_canvas.addItem(spacerItem)
self.horizontalLayout_10.addLayout(self.verticalLayout_canvas)
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.checkBox_grid = QtWidgets.QCheckBox(self.DesignView)
self.checkBox_grid.setChecked(True)
self.checkBox_grid.setObjectName("checkBox_grid")
self.horizontalLayout_3.addWidget(self.checkBox_grid)
self.checkBox_airfoil_grid = QtWidgets.QCheckBox(self.DesignView)
self.checkBox_airfoil_grid.setChecked(False)
self.checkBox_airfoil_grid.setObjectName("checkBox_airfoil_grid")
self.horizontalLayout_3.addWidget(self.checkBox_airfoil_grid)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.checkBox_history = QtWidgets.QCheckBox(self.DesignView)
self.checkBox_history.setChecked(True)
self.checkBox_history.setObjectName("checkBox_history")
self.verticalLayout.addWidget(self.checkBox_history)
self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.lbl_surface_sel = QtWidgets.QLabel(self.DesignView)
self.lbl_surface_sel.setObjectName("lbl_surface_sel")
self.horizontalLayout_9.addWidget(self.lbl_surface_sel)
self.radio_upper_surface = QtWidgets.QRadioButton(self.DesignView)
self.radio_upper_surface.setChecked(True)
self.radio_upper_surface.setObjectName("radio_upper_surface")
self.horizontalLayout_9.addWidget(self.radio_upper_surface)
self.radio_lower_surface = QtWidgets.QRadioButton(self.DesignView)
self.radio_lower_surface.setObjectName("radio_lower_surface")
self.horizontalLayout_9.addWidget(self.radio_lower_surface)
self.verticalLayout.addLayout(self.horizontalLayout_9)
self.btn_start_edits = QtWidgets.QPushButton(self.DesignView)
font = QtGui.QFont()
font.setPointSize(8)
self.btn_start_edits.setFont(font)
self.btn_start_edits.setStyleSheet("")
self.btn_start_edits.setObjectName("btn_start_edits")
self.verticalLayout.addWidget(self.btn_start_edits)
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_8.addItem(spacerItem1)
self.btn_cancel = QtWidgets.QPushButton(self.DesignView)
font = QtGui.QFont()
font.setPointSize(8)
self.btn_cancel.setFont(font)
self.btn_cancel.setObjectName("btn_cancel")
self.horizontalLayout_8.addWidget(self.btn_cancel)
self.verticalLayout.addLayout(self.horizontalLayout_8)
self.btn_apply_edits = QtWidgets.QPushButton(self.DesignView)
font = QtGui.QFont()
font.setPointSize(8)
self.btn_apply_edits.setFont(font)
self.btn_apply_edits.setObjectName("btn_apply_edits")
self.verticalLayout.addWidget(self.btn_apply_edits)
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem2)
self.btn_undo = QtWidgets.QPushButton(self.DesignView)
font = QtGui.QFont()
font.setPointSize(8)
self.btn_undo.setFont(font)
self.btn_undo.setObjectName("btn_undo")
self.horizontalLayout_6.addWidget(self.btn_undo)
self.verticalLayout.addLayout(self.horizontalLayout_6)
self.btn_plot_from_file = QtWidgets.QPushButton(self.DesignView)
font = QtGui.QFont()
font.setPointSize(8)
self.btn_plot_from_file.setFont(font)
self.btn_plot_from_file.setObjectName("btn_plot_from_file")
self.verticalLayout.addWidget(self.btn_plot_from_file)
self.btn_run_profoil = QtWidgets.QPushButton(self.DesignView)
font = QtGui.QFont()
font.setPointSize(8)
self.btn_run_profoil.setFont(font)
self.btn_run_profoil.setStyleSheet("background-color:yellowgreen;")
self.btn_run_profoil.setObjectName("btn_run_profoil")
self.verticalLayout.addWidget(self.btn_run_profoil)
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_7.addItem(spacerItem3)
self.btn_revert = QtWidgets.QPushButton(self.DesignView)
font = QtGui.QFont()
font.setPointSize(8)
self.btn_revert.setFont(font)
self.btn_revert.setObjectName("btn_revert")
self.horizontalLayout_7.addWidget(self.btn_revert)
self.verticalLayout.addLayout(self.horizontalLayout_7)
self.lbl_summary = QtWidgets.QLabel(self.DesignView)
font = QtGui.QFont()
font.setFamily("Courier")
font.setPointSize(8)
self.lbl_summary.setFont(font)
self.lbl_summary.setWordWrap(True)
self.lbl_summary.setObjectName("lbl_summary")
self.verticalLayout.addWidget(self.lbl_summary)
spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem4)
self.horizontalLayout_10.addLayout(self.verticalLayout)
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
spacerItem5 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.verticalLayout_2.addItem(spacerItem5)
self.btn_file_open = QtWidgets.QPushButton(self.DesignView)
self.btn_file_open.setObjectName("btn_file_open")
self.verticalLayout_2.addWidget(self.btn_file_open)
self.btn_file_save = QtWidgets.QPushButton(self.DesignView)
self.btn_file_save.setObjectName("btn_file_save")
self.verticalLayout_2.addWidget(self.btn_file_save)
self.btn_overlay_xy = QtWidgets.QPushButton(self.DesignView)
self.btn_overlay_xy.setObjectName("btn_overlay_xy")
self.verticalLayout_2.addWidget(self.btn_overlay_xy)
self.btn_overlay_dat = QtWidgets.QPushButton(self.DesignView)
self.btn_overlay_dat.setObjectName("btn_overlay_dat")
self.verticalLayout_2.addWidget(self.btn_overlay_dat)
self.btn_overlay_clear = QtWidgets.QPushButton(self.DesignView)
self.btn_overlay_clear.setObjectName("btn_overlay_clear")
self.verticalLayout_2.addWidget(self.btn_overlay_clear)
spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem6)
self.horizontalLayout_10.addLayout(self.verticalLayout_2)
self.horizontalLayout_10.setStretch(0, 6)
self.horizontalLayout_10.setStretch(1, 1)
self.tabWidget.addTab(self.DesignView, "")
self.FileView = QtWidgets.QWidget()
self.FileView.setObjectName("FileView")
self.gridLayout = QtWidgets.QGridLayout(self.FileView)
self.gridLayout.setObjectName("gridLayout")
self.plainTextEdit_profoil_log = QtWidgets.QPlainTextEdit(self.FileView)
font = QtGui.QFont()
font.setFamily("Courier")
font.setPointSize(8)
self.plainTextEdit_profoil_log.setFont(font)
self.plainTextEdit_profoil_log.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.plainTextEdit_profoil_log.setLineWrapMode(QtWidgets.QPlainTextEdit.NoWrap)
self.plainTextEdit_profoil_log.setReadOnly(True)
self.plainTextEdit_profoil_log.setPlainText("")
self.plainTextEdit_profoil_log.setObjectName("plainTextEdit_profoil_log")
self.gridLayout.addWidget(self.plainTextEdit_profoil_log, 1, 1, 1, 1)
self.plainTextEdit_profoil_in = QtWidgets.QPlainTextEdit(self.FileView)
font = QtGui.QFont()
font.setFamily("Courier")
font.setPointSize(8)
self.plainTextEdit_profoil_in.setFont(font)
self.plainTextEdit_profoil_in.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.plainTextEdit_profoil_in.setLineWrapMode(QtWidgets.QPlainTextEdit.NoWrap)
self.plainTextEdit_profoil_in.setPlainText("")
self.plainTextEdit_profoil_in.setObjectName("plainTextEdit_profoil_in")
self.gridLayout.addWidget(self.plainTextEdit_profoil_in, 1, 0, 1, 1)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem7)
self.btn_annotate = QtWidgets.QPushButton(self.FileView)
self.btn_annotate.setObjectName("btn_annotate")
self.horizontalLayout_2.addWidget(self.btn_annotate)
self.btn_save_profoil_in = QtWidgets.QPushButton(self.FileView)
self.btn_save_profoil_in.setObjectName("btn_save_profoil_in")
self.horizontalLayout_2.addWidget(self.btn_save_profoil_in)
self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 1)
self.label = QtWidgets.QLabel(self.FileView)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
self.label_2 = QtWidgets.QLabel(self.FileView)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
self.gridLayout.setColumnStretch(0, 9)
self.gridLayout.setColumnStretch(1, 11)
self.tabWidget.addTab(self.FileView, "")
self.ConvergedView = QtWidgets.QWidget()
self.ConvergedView.setObjectName("ConvergedView")
self.gridLayout_2 = QtWidgets.QGridLayout(self.ConvergedView)
self.gridLayout_2.setObjectName("gridLayout_2")
self.label_5 = QtWidgets.QLabel(self.ConvergedView)
self.label_5.setObjectName("label_5")
self.gridLayout_2.addWidget(self.label_5, 1, 2, 1, 1)
self.plainTextEdit_profoil_dmp = QtWidgets.QPlainTextEdit(self.ConvergedView)
font = QtGui.QFont()
font.setFamily("Courier")
self.plainTextEdit_profoil_dmp.setFont(font)
self.plainTextEdit_profoil_dmp.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.plainTextEdit_profoil_dmp.setReadOnly(True)
self.plainTextEdit_profoil_dmp.setObjectName("plainTextEdit_profoil_dmp")
self.gridLayout_2.addWidget(self.plainTextEdit_profoil_dmp, 2, 1, 1, 1)
self.plainTextEdit_profoil_xy = QtWidgets.QPlainTextEdit(self.ConvergedView)
font = QtGui.QFont()
font.setFamily("Courier")
self.plainTextEdit_profoil_xy.setFont(font)
self.plainTextEdit_profoil_xy.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.plainTextEdit_profoil_xy.setReadOnly(True)
self.plainTextEdit_profoil_xy.setObjectName("plainTextEdit_profoil_xy")
self.gridLayout_2.addWidget(self.plainTextEdit_profoil_xy, 2, 2, 1, 1)
self.label_3 = QtWidgets.QLabel(self.ConvergedView)
self.label_3.setObjectName("label_3")
self.gridLayout_2.addWidget(self.label_3, 1, 1, 1, 1)
self.tabWidget.addTab(self.ConvergedView, "")
self.horizontalLayout.addWidget(self.tabWidget)
self.horizontalLayout.setStretch(0, 4)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1208, 26))
self.menubar.setObjectName("menubar")
self.menuFile = QtWidgets.QMenu(self.menubar)
self.menuFile.setObjectName("menuFile")
self.menuOverlay = QtWidgets.QMenu(self.menubar)
self.menuOverlay.setObjectName("menuOverlay")
self.menuAbout = QtWidgets.QMenu(self.menubar)
self.menuAbout.setObjectName("menuAbout")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionOpen = QtWidgets.QAction(MainWindow)
self.actionOpen.setObjectName("actionOpen")
self.actionSave = QtWidgets.QAction(MainWindow)
self.actionSave.setObjectName("actionSave")
self.actionProfoil_dat_File = QtWidgets.QAction(MainWindow)
self.actionProfoil_dat_File.setObjectName("actionProfoil_dat_File")
self.actionClear_Overlay = QtWidgets.QAction(MainWindow)
self.actionClear_Overlay.setObjectName("actionClear_Overlay")
self.actionXFoil_dat_File = QtWidgets.QAction(MainWindow)
self.actionXFoil_dat_File.setObjectName("actionXFoil_dat_File")
self.actionPROFOIL = QtWidgets.QAction(MainWindow)
self.actionPROFOIL.setObjectName("actionPROFOIL")
self.actionPROFOIL_UI = QtWidgets.QAction(MainWindow)
self.actionPROFOIL_UI.setObjectName("actionPROFOIL_UI")
self.actionSave_DAT = QtWidgets.QAction(MainWindow)
self.actionSave_DAT.setObjectName("actionSave_DAT")
self.menuFile.addAction(self.actionOpen)
self.menuFile.addAction(self.actionSave)
self.menuFile.addAction(self.actionSave_DAT)
self.menuOverlay.addAction(self.actionProfoil_dat_File)
self.menuOverlay.addAction(self.actionXFoil_dat_File)
self.menuOverlay.addAction(self.actionClear_Overlay)
self.menuAbout.addAction(self.actionPROFOIL)
self.menuAbout.addAction(self.actionPROFOIL_UI)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuOverlay.menuAction())
self.menubar.addAction(self.menuAbout.menuAction())
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "PROFOIL-UI"))
self.checkBox_grid.setText(_translate("MainWindow", "Alpha* Grid"))
self.checkBox_airfoil_grid.setText(_translate("MainWindow", "xy Grid"))
self.checkBox_history.setText(_translate("MainWindow", "History"))
self.lbl_surface_sel.setText(_translate("MainWindow", "Alpha*"))
self.radio_upper_surface.setText(_translate("MainWindow", "Upper"))
self.radio_lower_surface.setText(_translate("MainWindow", "Lower"))
self.btn_start_edits.setText(_translate("MainWindow", "Start Edits"))
self.btn_cancel.setText(_translate("MainWindow", "Cancel"))
self.btn_apply_edits.setText(_translate("MainWindow", "Apply Edits"))
self.btn_undo.setText(_translate("MainWindow", "Undo"))
self.btn_plot_from_file.setText(_translate("MainWindow", "Plot From File"))
self.btn_run_profoil.setText(_translate("MainWindow", "Run PROFOIL"))
self.btn_revert.setText(_translate("MainWindow", "Revert"))
self.lbl_summary.setText(_translate("MainWindow", "<html><head/><body><p><br/></p></body></html>"))
self.btn_file_open.setText(_translate("MainWindow", "File | Open"))
self.btn_file_save.setText(_translate("MainWindow", "File | Save As"))
self.btn_overlay_xy.setText(_translate("MainWindow", "Overlay | xy"))
self.btn_overlay_dat.setText(_translate("MainWindow", "Overlay | dat"))
self.btn_overlay_clear.setText(_translate("MainWindow", "Overlay | Clear"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.DesignView), _translate("MainWindow", "Design View"))
self.btn_annotate.setText(_translate("MainWindow", "Annotate"))
self.btn_save_profoil_in.setText(_translate("MainWindow", "Save"))
self.label.setText(_translate("MainWindow", "~/work/profoil.in"))
self.label_2.setText(_translate("MainWindow", "~/work/profoil.log"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.FileView), _translate("MainWindow", "File View"))
self.label_5.setText(_translate("MainWindow", "~/work/profoil.xy"))
self.label_3.setText(_translate("MainWindow", "~/work/profoil.dmp"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.ConvergedView), _translate("MainWindow", "Converged Data"))
self.menuFile.setTitle(_translate("MainWindow", "File"))
self.menuOverlay.setTitle(_translate("MainWindow", "Overlay"))
self.menuAbout.setTitle(_translate("MainWindow", "About"))
self.actionOpen.setText(_translate("MainWindow", "Open"))
self.actionSave.setText(_translate("MainWindow", "Save As"))
self.actionProfoil_dat_File.setText(_translate("MainWindow", "Geometry from *.xy file (no header line)"))
self.actionClear_Overlay.setText(_translate("MainWindow", "Clear Overlay"))
self.actionXFoil_dat_File.setText(_translate("MainWindow", "Geometry from *.dat file (1 header line)"))
self.actionPROFOIL.setText(_translate("MainWindow", "PROFOIL"))
self.actionPROFOIL_UI.setText(_translate("MainWindow", "PROFOIL_UI"))
self.actionSave_DAT.setText(_translate("MainWindow", "Save *.dat"))