프로젝트

일반

사용자정보

통계
| 개정판:

hytos / DTI_PID / DTI_PID / CodeTable_UI.py @ a63b6383

이력 | 보기 | 이력해설 | 다운로드 (18.4 KB)

1
# -*- coding: utf-8 -*-
2

    
3
# Form implementation generated from reading ui file './UI/CodeTable.ui'
4
#
5
# Created by: PyQt5 UI code generator 5.11.3
6
#
7
# WARNING! All changes made in this file will be lost!
8

    
9
from PyQt5 import QtCore, QtGui, QtWidgets
10

    
11
class Ui_CodeTableDialog(object):
12
    def setupUi(self, CodeTableDialog):
13
        CodeTableDialog.setObjectName("CodeTableDialog")
14
        CodeTableDialog.resize(910, 589)
15
        font = QtGui.QFont()
16
        font.setFamily("맑은 고딕")
17
        CodeTableDialog.setFont(font)
18
        icon = QtGui.QIcon()
19
        icon.addPixmap(QtGui.QPixmap(":/newPrefix/codetable.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
20
        CodeTableDialog.setWindowIcon(icon)
21
        CodeTableDialog.setModal(False)
22
        self.gridLayout = QtWidgets.QGridLayout(CodeTableDialog)
23
        self.gridLayout.setObjectName("gridLayout")
24
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
25
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
26
        self.checkBoxAllowable = QtWidgets.QCheckBox(CodeTableDialog)
27
        self.checkBoxAllowable.setObjectName("checkBoxAllowable")
28
        self.horizontalLayout_2.addWidget(self.checkBoxAllowable)
29
        self.line_2 = QtWidgets.QFrame(CodeTableDialog)
30
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
31
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
32
        self.line_2.setObjectName("line_2")
33
        self.horizontalLayout_2.addWidget(self.line_2)
34
        self.label = QtWidgets.QLabel(CodeTableDialog)
35
        self.label.setObjectName("label")
36
        self.horizontalLayout_2.addWidget(self.label)
37
        self.spinBoxHeight = QtWidgets.QSpinBox(CodeTableDialog)
38
        self.spinBoxHeight.setMaximum(100)
39
        self.spinBoxHeight.setObjectName("spinBoxHeight")
40
        self.horizontalLayout_2.addWidget(self.spinBoxHeight)
41
        self.pushButtonRead = QtWidgets.QPushButton(CodeTableDialog)
42
        self.pushButtonRead.setObjectName("pushButtonRead")
43
        self.horizontalLayout_2.addWidget(self.pushButtonRead)
44
        self.line = QtWidgets.QFrame(CodeTableDialog)
45
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
46
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
47
        self.line.setObjectName("line")
48
        self.horizontalLayout_2.addWidget(self.line)
49
        self.pushButtonImport = QtWidgets.QPushButton(CodeTableDialog)
50
        self.pushButtonImport.setObjectName("pushButtonImport")
51
        self.horizontalLayout_2.addWidget(self.pushButtonImport)
52
        self.pushButtonExport = QtWidgets.QPushButton(CodeTableDialog)
53
        self.pushButtonExport.setObjectName("pushButtonExport")
54
        self.horizontalLayout_2.addWidget(self.pushButtonExport)
55
        self.buttonBox = QtWidgets.QDialogButtonBox(CodeTableDialog)
56
        self.buttonBox.setFocusPolicy(QtCore.Qt.TabFocus)
57
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
58
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
59
        self.buttonBox.setObjectName("buttonBox")
60
        self.horizontalLayout_2.addWidget(self.buttonBox)
61
        self.gridLayout.addLayout(self.horizontalLayout_2, 3, 0, 1, 1)
62
        self.tabWidget = QtWidgets.QTabWidget(CodeTableDialog)
63
        self.tabWidget.setFocusPolicy(QtCore.Qt.NoFocus)
64
        self.tabWidget.setObjectName("tabWidget")
65
        self.tabNominalDiameter = QtWidgets.QWidget()
66
        self.tabNominalDiameter.setObjectName("tabNominalDiameter")
67
        self.gridLayout_4 = QtWidgets.QGridLayout(self.tabNominalDiameter)
68
        self.gridLayout_4.setObjectName("gridLayout_4")
69
        self.verticalLayout = QtWidgets.QVBoxLayout()
70
        self.verticalLayout.setObjectName("verticalLayout")
71
        self.groupBox = QtWidgets.QGroupBox(self.tabNominalDiameter)
72
        self.groupBox.setObjectName("groupBox")
73
        self.gridLayout_13 = QtWidgets.QGridLayout(self.groupBox)
74
        self.gridLayout_13.setObjectName("gridLayout_13")
75
        self.tableWidgetNominalDiameter = QtWidgets.QTableWidget(self.groupBox)
76
        self.tableWidgetNominalDiameter.setColumnCount(4)
77
        self.tableWidgetNominalDiameter.setObjectName("tableWidgetNominalDiameter")
78
        self.tableWidgetNominalDiameter.setRowCount(0)
79
        self.tableWidgetNominalDiameter.horizontalHeader().setSortIndicatorShown(True)
80
        self.tableWidgetNominalDiameter.verticalHeader().setVisible(False)
81
        self.gridLayout_13.addWidget(self.tableWidgetNominalDiameter, 0, 0, 1, 1)
82
        self.verticalLayout.addWidget(self.groupBox)
83
        self.gridLayout_4.addLayout(self.verticalLayout, 0, 0, 1, 1)
84
        self.tabWidget.addTab(self.tabNominalDiameter, "")
85
        self.tabFluidCode = QtWidgets.QWidget()
86
        self.tabFluidCode.setObjectName("tabFluidCode")
87
        self.gridLayout_3 = QtWidgets.QGridLayout(self.tabFluidCode)
88
        self.gridLayout_3.setObjectName("gridLayout_3")
89
        self.gridLayout_2 = QtWidgets.QGridLayout()
90
        self.gridLayout_2.setObjectName("gridLayout_2")
91
        self.groupBox_2 = QtWidgets.QGroupBox(self.tabFluidCode)
92
        self.groupBox_2.setObjectName("groupBox_2")
93
        self.gridLayout_14 = QtWidgets.QGridLayout(self.groupBox_2)
94
        self.gridLayout_14.setObjectName("gridLayout_14")
95
        self.tableWidgetFluidCode = QtWidgets.QTableWidget(self.groupBox_2)
96
        self.tableWidgetFluidCode.setColumnCount(3)
97
        self.tableWidgetFluidCode.setObjectName("tableWidgetFluidCode")
98
        self.tableWidgetFluidCode.setRowCount(0)
99
        self.tableWidgetFluidCode.verticalHeader().setVisible(False)
100
        self.gridLayout_14.addWidget(self.tableWidgetFluidCode, 0, 0, 1, 1)
101
        self.gridLayout_2.addWidget(self.groupBox_2, 0, 0, 1, 1)
102
        self.gridLayout_3.addLayout(self.gridLayout_2, 0, 0, 1, 1)
103
        self.tabWidget.addTab(self.tabFluidCode, "")
104
        self.tabInsulationPurpose = QtWidgets.QWidget()
105
        self.tabInsulationPurpose.setObjectName("tabInsulationPurpose")
106
        self.gridLayout_6 = QtWidgets.QGridLayout(self.tabInsulationPurpose)
107
        self.gridLayout_6.setObjectName("gridLayout_6")
108
        self.gridLayout_5 = QtWidgets.QGridLayout()
109
        self.gridLayout_5.setObjectName("gridLayout_5")
110
        self.groupBox_3 = QtWidgets.QGroupBox(self.tabInsulationPurpose)
111
        self.groupBox_3.setObjectName("groupBox_3")
112
        self.gridLayout_15 = QtWidgets.QGridLayout(self.groupBox_3)
113
        self.gridLayout_15.setObjectName("gridLayout_15")
114
        self.tableWidgetInsulationPurpose = QtWidgets.QTableWidget(self.groupBox_3)
115
        self.tableWidgetInsulationPurpose.setColumnCount(3)
116
        self.tableWidgetInsulationPurpose.setObjectName("tableWidgetInsulationPurpose")
117
        self.tableWidgetInsulationPurpose.setRowCount(0)
118
        self.tableWidgetInsulationPurpose.verticalHeader().setVisible(False)
119
        self.gridLayout_15.addWidget(self.tableWidgetInsulationPurpose, 0, 0, 1, 1)
120
        self.gridLayout_5.addWidget(self.groupBox_3, 0, 0, 1, 1)
121
        self.gridLayout_6.addLayout(self.gridLayout_5, 0, 0, 1, 1)
122
        self.tabWidget.addTab(self.tabInsulationPurpose, "")
123
        self.tabPnIDNumber = QtWidgets.QWidget()
124
        self.tabPnIDNumber.setObjectName("tabPnIDNumber")
125
        self.gridLayout_10 = QtWidgets.QGridLayout(self.tabPnIDNumber)
126
        self.gridLayout_10.setObjectName("gridLayout_10")
127
        self.gridLayout_9 = QtWidgets.QGridLayout()
128
        self.gridLayout_9.setObjectName("gridLayout_9")
129
        self.groupBox_4 = QtWidgets.QGroupBox(self.tabPnIDNumber)
130
        self.groupBox_4.setObjectName("groupBox_4")
131
        self.gridLayout_16 = QtWidgets.QGridLayout(self.groupBox_4)
132
        self.gridLayout_16.setObjectName("gridLayout_16")
133
        self.tableWidgetPnIDNumber = QtWidgets.QTableWidget(self.groupBox_4)
134
        self.tableWidgetPnIDNumber.setColumnCount(3)
135
        self.tableWidgetPnIDNumber.setObjectName("tableWidgetPnIDNumber")
136
        self.tableWidgetPnIDNumber.setRowCount(0)
137
        self.tableWidgetPnIDNumber.verticalHeader().setVisible(False)
138
        self.gridLayout_16.addWidget(self.tableWidgetPnIDNumber, 0, 0, 1, 1)
139
        self.gridLayout_9.addWidget(self.groupBox_4, 0, 0, 1, 1)
140
        self.gridLayout_10.addLayout(self.gridLayout_9, 0, 0, 1, 1)
141
        self.tabWidget.addTab(self.tabPnIDNumber, "")
142
        self.tabPipingMaterialsClass = QtWidgets.QWidget()
143
        self.tabPipingMaterialsClass.setObjectName("tabPipingMaterialsClass")
144
        self.gridLayout_8 = QtWidgets.QGridLayout(self.tabPipingMaterialsClass)
145
        self.gridLayout_8.setObjectName("gridLayout_8")
146
        self.gridLayout_7 = QtWidgets.QGridLayout()
147
        self.gridLayout_7.setObjectName("gridLayout_7")
148
        self.groupBox_5 = QtWidgets.QGroupBox(self.tabPipingMaterialsClass)
149
        self.groupBox_5.setObjectName("groupBox_5")
150
        self.gridLayout_17 = QtWidgets.QGridLayout(self.groupBox_5)
151
        self.gridLayout_17.setObjectName("gridLayout_17")
152
        self.tableWidgetPipingMaterialsClass = QtWidgets.QTableWidget(self.groupBox_5)
153
        self.tableWidgetPipingMaterialsClass.setColumnCount(3)
154
        self.tableWidgetPipingMaterialsClass.setObjectName("tableWidgetPipingMaterialsClass")
155
        self.tableWidgetPipingMaterialsClass.setRowCount(0)
156
        self.tableWidgetPipingMaterialsClass.verticalHeader().setVisible(False)
157
        self.gridLayout_17.addWidget(self.tableWidgetPipingMaterialsClass, 0, 0, 1, 1)
158
        self.gridLayout_7.addWidget(self.groupBox_5, 0, 0, 1, 1)
159
        self.gridLayout_8.addLayout(self.gridLayout_7, 0, 0, 1, 1)
160
        self.tabWidget.addTab(self.tabPipingMaterialsClass, "")
161
        self.tabUnitNumber = QtWidgets.QWidget()
162
        self.tabUnitNumber.setObjectName("tabUnitNumber")
163
        self.gridLayout_12 = QtWidgets.QGridLayout(self.tabUnitNumber)
164
        self.gridLayout_12.setObjectName("gridLayout_12")
165
        self.gridLayout_11 = QtWidgets.QGridLayout()
166
        self.gridLayout_11.setObjectName("gridLayout_11")
167
        self.groupBox_6 = QtWidgets.QGroupBox(self.tabUnitNumber)
168
        self.groupBox_6.setObjectName("groupBox_6")
169
        self.gridLayout_18 = QtWidgets.QGridLayout(self.groupBox_6)
170
        self.gridLayout_18.setObjectName("gridLayout_18")
171
        self.tableWidgetUnitNumber = QtWidgets.QTableWidget(self.groupBox_6)
172
        self.tableWidgetUnitNumber.setColumnCount(3)
173
        self.tableWidgetUnitNumber.setObjectName("tableWidgetUnitNumber")
174
        self.tableWidgetUnitNumber.setRowCount(0)
175
        self.tableWidgetUnitNumber.verticalHeader().setVisible(False)
176
        self.gridLayout_18.addWidget(self.tableWidgetUnitNumber, 0, 0, 1, 1)
177
        self.gridLayout_11.addWidget(self.groupBox_6, 0, 0, 1, 1)
178
        self.gridLayout_12.addLayout(self.gridLayout_11, 0, 0, 1, 1)
179
        self.tabWidget.addTab(self.tabUnitNumber, "")
180
        self.tabValveOperCodes = QtWidgets.QWidget()
181
        self.tabValveOperCodes.setObjectName("tabValveOperCodes")
182
        self.gridLayout_19 = QtWidgets.QGridLayout(self.tabValveOperCodes)
183
        self.gridLayout_19.setObjectName("gridLayout_19")
184
        self.groupBox_7 = QtWidgets.QGroupBox(self.tabValveOperCodes)
185
        self.groupBox_7.setObjectName("groupBox_7")
186
        self.gridLayout_20 = QtWidgets.QGridLayout(self.groupBox_7)
187
        self.gridLayout_20.setObjectName("gridLayout_20")
188
        self.tableWidgetValveOperCodes = QtWidgets.QTableWidget(self.groupBox_7)
189
        self.tableWidgetValveOperCodes.setColumnCount(3)
190
        self.tableWidgetValveOperCodes.setObjectName("tableWidgetValveOperCodes")
191
        self.tableWidgetValveOperCodes.setRowCount(0)
192
        self.tableWidgetValveOperCodes.verticalHeader().setVisible(False)
193
        self.gridLayout_20.addWidget(self.tableWidgetValveOperCodes, 0, 0, 1, 1)
194
        self.gridLayout_19.addWidget(self.groupBox_7, 0, 0, 1, 1)
195
        self.tabWidget.addTab(self.tabValveOperCodes, "")
196
        self.tabEqpTagNames = QtWidgets.QWidget()
197
        self.tabEqpTagNames.setObjectName("tabEqpTagNames")
198
        self.gridLayout_22 = QtWidgets.QGridLayout(self.tabEqpTagNames)
199
        self.gridLayout_22.setObjectName("gridLayout_22")
200
        self.groupBox_8 = QtWidgets.QGroupBox(self.tabEqpTagNames)
201
        self.groupBox_8.setObjectName("groupBox_8")
202
        self.gridLayout_21 = QtWidgets.QGridLayout(self.groupBox_8)
203
        self.gridLayout_21.setObjectName("gridLayout_21")
204
        self.tableWidgetEqpTagNames = QtWidgets.QTableWidget(self.groupBox_8)
205
        self.tableWidgetEqpTagNames.setColumnCount(3)
206
        self.tableWidgetEqpTagNames.setObjectName("tableWidgetEqpTagNames")
207
        self.tableWidgetEqpTagNames.setRowCount(0)
208
        self.tableWidgetEqpTagNames.verticalHeader().setVisible(False)
209
        self.gridLayout_21.addWidget(self.tableWidgetEqpTagNames, 0, 0, 1, 1)
210
        self.gridLayout_22.addWidget(self.groupBox_8, 0, 0, 1, 1)
211
        self.tabWidget.addTab(self.tabEqpTagNames, "")
212
        self.tabReservedWord = QtWidgets.QWidget()
213
        self.tabReservedWord.setObjectName("tabReservedWord")
214
        self.gridLayout_24 = QtWidgets.QGridLayout(self.tabReservedWord)
215
        self.gridLayout_24.setObjectName("gridLayout_24")
216
        self.groupBox_9 = QtWidgets.QGroupBox(self.tabReservedWord)
217
        self.groupBox_9.setObjectName("groupBox_9")
218
        self.gridLayout_23 = QtWidgets.QGridLayout(self.groupBox_9)
219
        self.gridLayout_23.setObjectName("gridLayout_23")
220
        self.tableWidgetReservedWords = QtWidgets.QTableWidget(self.groupBox_9)
221
        self.tableWidgetReservedWords.setColumnCount(4)
222
        self.tableWidgetReservedWords.setObjectName("tableWidgetReservedWords")
223
        self.tableWidgetReservedWords.setRowCount(0)
224
        self.tableWidgetReservedWords.horizontalHeader().setSortIndicatorShown(True)
225
        self.tableWidgetReservedWords.verticalHeader().setVisible(False)
226
        self.gridLayout_23.addWidget(self.tableWidgetReservedWords, 0, 0, 1, 1)
227
        self.gridLayout_24.addWidget(self.groupBox_9, 0, 0, 1, 1)
228
        self.tabWidget.addTab(self.tabReservedWord, "")
229
        self.tabDIctionary = QtWidgets.QWidget()
230
        self.tabDIctionary.setObjectName("tabDIctionary")
231
        self.gridLayout_25 = QtWidgets.QGridLayout(self.tabDIctionary)
232
        self.gridLayout_25.setObjectName("gridLayout_25")
233
        self.groupBox_10 = QtWidgets.QGroupBox(self.tabDIctionary)
234
        self.groupBox_10.setObjectName("groupBox_10")
235
        self.gridLayout_26 = QtWidgets.QGridLayout(self.groupBox_10)
236
        self.gridLayout_26.setObjectName("gridLayout_26")
237
        self.tableWidgetDictionary = QtWidgets.QTableWidget(self.groupBox_10)
238
        self.tableWidgetDictionary.setObjectName("tableWidgetDictionary")
239
        self.tableWidgetDictionary.setColumnCount(3)
240
        self.tableWidgetDictionary.setRowCount(0)
241
        item = QtWidgets.QTableWidgetItem()
242
        self.tableWidgetDictionary.setHorizontalHeaderItem(0, item)
243
        item = QtWidgets.QTableWidgetItem()
244
        self.tableWidgetDictionary.setHorizontalHeaderItem(1, item)
245
        item = QtWidgets.QTableWidgetItem()
246
        self.tableWidgetDictionary.setHorizontalHeaderItem(2, item)
247
        self.gridLayout_26.addWidget(self.tableWidgetDictionary, 0, 0, 1, 1)
248
        self.gridLayout_25.addWidget(self.groupBox_10, 0, 0, 1, 1)
249
        self.tabWidget.addTab(self.tabDIctionary, "")
250
        self.gridLayout.addWidget(self.tabWidget, 1, 0, 1, 1)
251

    
252
        self.retranslateUi(CodeTableDialog)
253
        self.tabWidget.setCurrentIndex(0)
254
        self.buttonBox.accepted.connect(CodeTableDialog.accept)
255
        self.buttonBox.rejected.connect(CodeTableDialog.reject)
256
        QtCore.QMetaObject.connectSlotsByName(CodeTableDialog)
257

    
258
    def retranslateUi(self, CodeTableDialog):
259
        _translate = QtCore.QCoreApplication.translate
260
        CodeTableDialog.setWindowTitle(_translate("CodeTableDialog", "Code Table"))
261
        self.checkBoxAllowable.setText(_translate("CodeTableDialog", "Auto Allowable"))
262
        self.label.setText(_translate("CodeTableDialog", "Line Height : "))
263
        self.pushButtonRead.setText(_translate("CodeTableDialog", "Read from Legend"))
264
        self.pushButtonImport.setText(_translate("CodeTableDialog", "Import"))
265
        self.pushButtonExport.setText(_translate("CodeTableDialog", "Export"))
266
        self.groupBox.setTitle(_translate("CodeTableDialog", "Nominal Diameter"))
267
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabNominalDiameter), _translate("CodeTableDialog", "Nominal Diameter"))
268
        self.groupBox_2.setTitle(_translate("CodeTableDialog", "Fluid Code"))
269
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabFluidCode), _translate("CodeTableDialog", "Fluid Code"))
270
        self.groupBox_3.setTitle(_translate("CodeTableDialog", "Insulation Purpose"))
271
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabInsulationPurpose), _translate("CodeTableDialog", "Insulation Purpose"))
272
        self.groupBox_4.setTitle(_translate("CodeTableDialog", "P&&ID Number"))
273
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabPnIDNumber), _translate("CodeTableDialog", "P&&ID Number"))
274
        self.groupBox_5.setTitle(_translate("CodeTableDialog", "Piping Materials Class"))
275
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabPipingMaterialsClass), _translate("CodeTableDialog", "Piping Materials Class"))
276
        self.groupBox_6.setTitle(_translate("CodeTableDialog", "Unit Number"))
277
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabUnitNumber), _translate("CodeTableDialog", "Unit Number"))
278
        self.groupBox_7.setTitle(_translate("CodeTableDialog", "Valve Oper Code"))
279
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabValveOperCodes), _translate("CodeTableDialog", "Valve Oper Codes"))
280
        self.groupBox_8.setTitle(_translate("CodeTableDialog", "Tag Name"))
281
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabEqpTagNames), _translate("CodeTableDialog", "Eqp Tag Names"))
282
        self.groupBox_9.setTitle(_translate("CodeTableDialog", "Reserved Word"))
283
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabReservedWord), _translate("CodeTableDialog", "Reserved Words"))
284
        self.groupBox_10.setTitle(_translate("CodeTableDialog", "Dictionary"))
285
        item = self.tableWidgetDictionary.horizontalHeaderItem(0)
286
        item.setText(_translate("CodeTableDialog", "1"))
287
        item = self.tableWidgetDictionary.horizontalHeaderItem(1)
288
        item.setText(_translate("CodeTableDialog", "2"))
289
        item = self.tableWidgetDictionary.horizontalHeaderItem(2)
290
        item.setText(_translate("CodeTableDialog", "3"))
291
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabDIctionary), _translate("CodeTableDialog", "Dictionary"))
292

    
293
import MainWindow_rc
294

    
295
if __name__ == "__main__":
296
    import sys
297
    app = QtWidgets.QApplication(sys.argv)
298
    CodeTableDialog = QtWidgets.QDialog()
299
    ui = Ui_CodeTableDialog()
300
    ui.setupUi(CodeTableDialog)
301
    CodeTableDialog.show()
302
    sys.exit(app.exec_())
303

    
클립보드 이미지 추가 (최대 크기: 500 MB)