개정판 d3dd1b53
issue #665: formatting omw
DTI_PID/DTI_PID/ItemDataExportDialog.py | ||
---|---|---|
306 | 306 |
# Table Header Label 설정 |
307 | 307 |
self.viewTables[tableIndex].setHorizontalHeaderLabels(self.columnListAll[tableIndex]) |
308 | 308 |
# Table Header 크기 설정 |
309 |
self.viewTables[tableIndex].horizontalHeaderItem(1).setSizeHint(QSize(25, 25)) |
|
310 |
# UID column hide |
|
309 |
for listIndex in range(len(self.columnListAll[tableIndex])): |
|
310 |
self.viewTables[tableIndex].horizontalHeaderItem(listIndex).setSizeHint(QSize(25, 25)) |
|
311 |
self.viewTables[tableIndex].setColumnWidth(listIndex, len(self.columnListAll[tableIndex][listIndex]) * 8 + 10) |
|
312 |
# UID column hide |
|
311 | 313 |
self.viewTables[tableIndex].hideColumn(0) |
312 | 314 |
|
313 | 315 |
# talbe Data 설정 |
... | ... | |
698 | 700 |
""" |
699 | 701 |
from ItemDataFormatDialog import QItemDataFormatDialog |
700 | 702 |
|
701 |
item_data_format_dialog = QItemDataFormatDialog(self, self.lineColumnListAll, self.equipColumnListAll, self.valveColumnListAll, self.instColumnListAll, self.noteColumnListAll)
|
|
703 |
item_data_format_dialog = QItemDataFormatDialog(self, self.columnListAll, self.columnOrder)
|
|
702 | 704 |
item_data_format_dialog.exec_() |
703 | 705 |
|
704 | 706 |
''' |
DTI_PID/DTI_PID/ItemDataFormatDialog.py | ||
---|---|---|
11 | 11 |
from AppDocData import AppDocData |
12 | 12 |
import ItemDataFormat_UI |
13 | 13 |
|
14 |
dbListOrderName = ['LINE_DATA_LIST_EXPORT_ORDER', 'EQUIPMENT_DATA_LIST_EXPORT_ORDER', 'VALVE_DATA_LIST_EXPORT_ORDER', 'INSTRUMENT_DATA_LIST_EXPORT_ORDER', 'NOTE_DATA_LIST_EXPORT_ORDER'] |
|
15 |
|
|
14 | 16 |
class QItemDataFormatDialog(QDialog): |
15 | 17 |
""" |
16 | 18 |
This is QItemDataFormatDialog class |
17 | 19 |
""" |
18 |
def __init__(self, parent): |
|
19 |
QDialog.__init__(self, parent, lineColumnList, equipColumnList, valveColumnList, instColumnList, noteColumnList)
|
|
20 |
def __init__(self, parent, columnListAll, columnOrder):
|
|
21 |
QDialog.__init__(self, parent) |
|
20 | 22 |
|
21 | 23 |
self.parent = parent |
22 | 24 |
self.ui = ItemDataFormat_UI.Ui_ItemDataFormatDialog() |
23 |
self.ui.setupUi(self) |
|
25 |
self.ui.setupUi(self) |
|
26 |
|
|
27 |
self.columnListAll = columnListAll |
|
28 |
self.columnOrder = columnOrder |
|
29 |
|
|
30 |
self.listWidgets = [] |
|
31 |
self.tableWidgets = [] |
|
32 |
self.listWidgets.append(self.ui.listWidgetLine) |
|
33 |
self.listWidgets.append(self.ui.listWidgetEquipment) |
|
34 |
self.listWidgets.append(self.ui.listWidgetValve) |
|
35 |
self.listWidgets.append(self.ui.listWidgetInstrument) |
|
36 |
self.listWidgets.append(self.ui.listWidgetNote) |
|
37 |
|
|
38 |
self.tableWidgets.append(self.ui.tableWidgetLine) |
|
39 |
self.tableWidgets.append(self.ui.tableWidgetEquipment) |
|
40 |
self.tableWidgets.append(self.ui.tableWidgetValve) |
|
41 |
self.tableWidgets.append(self.ui.tableWidgetInstrument) |
|
42 |
self.tableWidgets.append(self.ui.tableWidgetNote) |
|
43 |
|
|
44 |
for index in range(len(self.listWidgets)): |
|
45 |
for header in range(1, len(columnListAll[index])): |
|
46 |
item = QListWidgetItem(columnListAll[index][header]) |
|
47 |
self.listWidgets[index].addItem(item) |
|
48 |
|
|
49 |
for index in range(len(self.listWidgets)): |
|
50 |
self.tableWidgets[index].horizontalHeader().setSectionsMovable(True) |
|
51 |
self.tableWidgets[index].setColumnCount(len(self.columnOrder[index])) |
|
52 |
self.tableWidgets[index].setHorizontalHeaderLabels(self.columnOrder[index]) |
|
53 |
for listIndex in range(len(self.columnOrder[index])): |
|
54 |
self.tableWidgets[index].horizontalHeaderItem(listIndex).setSizeHint(QSize(25, 25)) |
|
55 |
self.tableWidgets[index].setColumnWidth(listIndex, len(self.columnListAll[index][listIndex]) * 8 + 10) |
|
56 |
self.tableWidgets[index].hideColumn(0) |
DTI_PID/DTI_PID/ItemDataFormat_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file '.\ui\ItemDataFormat.ui'
|
|
3 |
# Form implementation generated from reading ui file './UI/ItemDataFormat.ui'
|
|
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
|
5 |
# Created by: PyQt5 UI code generator 5.11.2
|
|
6 | 6 |
# |
7 | 7 |
# WARNING! All changes made in this file will be lost! |
8 | 8 |
|
... | ... | |
20 | 20 |
ItemDataFormatDialog.setModal(True) |
21 | 21 |
self.gridLayout = QtWidgets.QGridLayout(ItemDataFormatDialog) |
22 | 22 |
self.gridLayout.setObjectName("gridLayout") |
23 |
self.buttonBox = QtWidgets.QDialogButtonBox(ItemDataFormatDialog) |
|
24 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
|
25 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
|
26 |
self.buttonBox.setObjectName("buttonBox") |
|
27 |
self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 1) |
|
23 |
self.horizontalLayout = QtWidgets.QHBoxLayout() |
|
24 |
self.horizontalLayout.setObjectName("horizontalLayout") |
|
25 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
26 |
self.horizontalLayout.addItem(spacerItem) |
|
27 |
self.pushButtonApply = QtWidgets.QPushButton(ItemDataFormatDialog) |
|
28 |
self.pushButtonApply.setMaximumSize(QtCore.QSize(68, 16777215)) |
|
29 |
self.pushButtonApply.setObjectName("pushButtonApply") |
|
30 |
self.horizontalLayout.addWidget(self.pushButtonApply) |
|
31 |
self.pushButtonCancel = QtWidgets.QPushButton(ItemDataFormatDialog) |
|
32 |
self.pushButtonCancel.setMaximumSize(QtCore.QSize(68, 16777215)) |
|
33 |
self.pushButtonCancel.setObjectName("pushButtonCancel") |
|
34 |
self.horizontalLayout.addWidget(self.pushButtonCancel) |
|
35 |
self.gridLayout.addLayout(self.horizontalLayout, 2, 0, 1, 1) |
|
28 | 36 |
self.tabWidget = QtWidgets.QTabWidget(ItemDataFormatDialog) |
29 | 37 |
self.tabWidget.setTabPosition(QtWidgets.QTabWidget.North) |
30 | 38 |
self.tabWidget.setObjectName("tabWidget") |
... | ... | |
35 | 43 |
self.splitter = QtWidgets.QSplitter(self.tabLineList) |
36 | 44 |
self.splitter.setOrientation(QtCore.Qt.Horizontal) |
37 | 45 |
self.splitter.setObjectName("splitter") |
38 |
self.listWidget = QtWidgets.QListWidget(self.splitter) |
|
39 |
self.listWidget.setMaximumSize(QtCore.QSize(200, 16777215)) |
|
40 |
self.listWidget.setObjectName("listWidget")
|
|
46 |
self.listWidgetLine = QtWidgets.QListWidget(self.splitter)
|
|
47 |
self.listWidgetLine.setMaximumSize(QtCore.QSize(200, 16777215))
|
|
48 |
self.listWidgetLine.setObjectName("listWidgetLine")
|
|
41 | 49 |
self.verticalLayoutWidget = QtWidgets.QWidget(self.splitter) |
42 | 50 |
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") |
43 | 51 |
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) |
... | ... | |
45 | 53 |
self.verticalLayout.setObjectName("verticalLayout") |
46 | 54 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
47 | 55 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
48 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
49 |
self.horizontalLayout_2.addItem(spacerItem) |
|
56 |
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
57 |
self.horizontalLayout_2.addItem(spacerItem1)
|
|
50 | 58 |
self.pushButton_2 = QtWidgets.QPushButton(self.verticalLayoutWidget) |
51 | 59 |
self.pushButton_2.setMaximumSize(QtCore.QSize(24, 16777215)) |
52 | 60 |
self.pushButton_2.setObjectName("pushButton_2") |
... | ... | |
56 | 64 |
self.pushButton.setObjectName("pushButton") |
57 | 65 |
self.horizontalLayout_2.addWidget(self.pushButton) |
58 | 66 |
self.verticalLayout.addLayout(self.horizontalLayout_2) |
59 |
self.tableWidget = QtWidgets.QTableWidget(self.verticalLayoutWidget) |
|
60 |
self.tableWidget.setRowCount(2) |
|
61 |
self.tableWidget.setObjectName("tableWidget") |
|
62 |
self.tableWidget.setColumnCount(0) |
|
63 |
self.verticalLayout.addWidget(self.tableWidget) |
|
67 |
self.tableWidgetLine = QtWidgets.QTableWidget(self.verticalLayoutWidget) |
|
68 |
self.tableWidgetLine.setRowCount(0) |
|
69 |
self.tableWidgetLine.setObjectName("tableWidgetLine") |
|
70 |
self.tableWidgetLine.setColumnCount(0) |
|
71 |
self.tableWidgetLine.verticalHeader().setVisible(False) |
|
72 |
self.verticalLayout.addWidget(self.tableWidgetLine) |
|
64 | 73 |
self.gridLayout_2.addWidget(self.splitter, 0, 0, 1, 1) |
65 | 74 |
self.tabWidget.addTab(self.tabLineList, "") |
66 | 75 |
self.tabEqpList = QtWidgets.QWidget() |
... | ... | |
70 | 79 |
self.splitter_2 = QtWidgets.QSplitter(self.tabEqpList) |
71 | 80 |
self.splitter_2.setOrientation(QtCore.Qt.Horizontal) |
72 | 81 |
self.splitter_2.setObjectName("splitter_2") |
73 |
self.listWidget_2 = QtWidgets.QListWidget(self.splitter_2)
|
|
74 |
self.listWidget_2.setMaximumSize(QtCore.QSize(200, 16777215))
|
|
75 |
self.listWidget_2.setObjectName("listWidget_2")
|
|
82 |
self.listWidgetEquipment = QtWidgets.QListWidget(self.splitter_2)
|
|
83 |
self.listWidgetEquipment.setMaximumSize(QtCore.QSize(200, 16777215))
|
|
84 |
self.listWidgetEquipment.setObjectName("listWidgetEquipment")
|
|
76 | 85 |
self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.splitter_2) |
77 | 86 |
self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") |
78 | 87 |
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) |
... | ... | |
80 | 89 |
self.verticalLayout_2.setObjectName("verticalLayout_2") |
81 | 90 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
82 | 91 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
83 |
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
84 |
self.horizontalLayout_3.addItem(spacerItem1)
|
|
92 |
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
93 |
self.horizontalLayout_3.addItem(spacerItem2)
|
|
85 | 94 |
self.pushButton_4 = QtWidgets.QPushButton(self.verticalLayoutWidget_2) |
86 | 95 |
self.pushButton_4.setMaximumSize(QtCore.QSize(24, 16777215)) |
87 | 96 |
self.pushButton_4.setObjectName("pushButton_4") |
... | ... | |
91 | 100 |
self.pushButton_3.setObjectName("pushButton_3") |
92 | 101 |
self.horizontalLayout_3.addWidget(self.pushButton_3) |
93 | 102 |
self.verticalLayout_2.addLayout(self.horizontalLayout_3) |
94 |
self.tableWidget_2 = QtWidgets.QTableWidget(self.verticalLayoutWidget_2) |
|
95 |
self.tableWidget_2.setRowCount(2) |
|
96 |
self.tableWidget_2.setObjectName("tableWidget_2") |
|
97 |
self.tableWidget_2.setColumnCount(0) |
|
98 |
self.verticalLayout_2.addWidget(self.tableWidget_2) |
|
103 |
self.tableWidgetEquipment = QtWidgets.QTableWidget(self.verticalLayoutWidget_2) |
|
104 |
self.tableWidgetEquipment.setRowCount(0) |
|
105 |
self.tableWidgetEquipment.setObjectName("tableWidgetEquipment") |
|
106 |
self.tableWidgetEquipment.setColumnCount(0) |
|
107 |
self.tableWidgetEquipment.verticalHeader().setVisible(False) |
|
108 |
self.verticalLayout_2.addWidget(self.tableWidgetEquipment) |
|
99 | 109 |
self.gridLayout_3.addWidget(self.splitter_2, 0, 0, 1, 1) |
100 | 110 |
self.tabWidget.addTab(self.tabEqpList, "") |
101 | 111 |
self.tabValveList = QtWidgets.QWidget() |
... | ... | |
105 | 115 |
self.splitter_3 = QtWidgets.QSplitter(self.tabValveList) |
106 | 116 |
self.splitter_3.setOrientation(QtCore.Qt.Horizontal) |
107 | 117 |
self.splitter_3.setObjectName("splitter_3") |
108 |
self.listWidget_3 = QtWidgets.QListWidget(self.splitter_3)
|
|
109 |
self.listWidget_3.setMaximumSize(QtCore.QSize(200, 16777215))
|
|
110 |
self.listWidget_3.setObjectName("listWidget_3")
|
|
118 |
self.listWidgetValve = QtWidgets.QListWidget(self.splitter_3)
|
|
119 |
self.listWidgetValve.setMaximumSize(QtCore.QSize(200, 16777215))
|
|
120 |
self.listWidgetValve.setObjectName("listWidgetValve")
|
|
111 | 121 |
self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.splitter_3) |
112 | 122 |
self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") |
113 | 123 |
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) |
... | ... | |
115 | 125 |
self.verticalLayout_3.setObjectName("verticalLayout_3") |
116 | 126 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
117 | 127 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
118 |
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
119 |
self.horizontalLayout_4.addItem(spacerItem2)
|
|
128 |
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
129 |
self.horizontalLayout_4.addItem(spacerItem3)
|
|
120 | 130 |
self.pushButton_6 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) |
121 | 131 |
self.pushButton_6.setMaximumSize(QtCore.QSize(24, 16777215)) |
122 | 132 |
self.pushButton_6.setObjectName("pushButton_6") |
... | ... | |
126 | 136 |
self.pushButton_5.setObjectName("pushButton_5") |
127 | 137 |
self.horizontalLayout_4.addWidget(self.pushButton_5) |
128 | 138 |
self.verticalLayout_3.addLayout(self.horizontalLayout_4) |
129 |
self.tableWidget_3 = QtWidgets.QTableWidget(self.verticalLayoutWidget_3) |
|
130 |
self.tableWidget_3.setRowCount(2) |
|
131 |
self.tableWidget_3.setObjectName("tableWidget_3") |
|
132 |
self.tableWidget_3.setColumnCount(0) |
|
133 |
self.verticalLayout_3.addWidget(self.tableWidget_3) |
|
139 |
self.tableWidgetValve = QtWidgets.QTableWidget(self.verticalLayoutWidget_3) |
|
140 |
self.tableWidgetValve.setRowCount(0) |
|
141 |
self.tableWidgetValve.setObjectName("tableWidgetValve") |
|
142 |
self.tableWidgetValve.setColumnCount(0) |
|
143 |
self.tableWidgetValve.verticalHeader().setVisible(False) |
|
144 |
self.verticalLayout_3.addWidget(self.tableWidgetValve) |
|
134 | 145 |
self.gridLayout_4.addWidget(self.splitter_3, 0, 0, 1, 1) |
135 | 146 |
self.tabWidget.addTab(self.tabValveList, "") |
136 | 147 |
self.tabInstList = QtWidgets.QWidget() |
... | ... | |
140 | 151 |
self.splitter_4 = QtWidgets.QSplitter(self.tabInstList) |
141 | 152 |
self.splitter_4.setOrientation(QtCore.Qt.Horizontal) |
142 | 153 |
self.splitter_4.setObjectName("splitter_4") |
143 |
self.listWidget_4 = QtWidgets.QListWidget(self.splitter_4)
|
|
144 |
self.listWidget_4.setMaximumSize(QtCore.QSize(200, 16777215))
|
|
145 |
self.listWidget_4.setObjectName("listWidget_4")
|
|
154 |
self.listWidgetInstrument = QtWidgets.QListWidget(self.splitter_4)
|
|
155 |
self.listWidgetInstrument.setMaximumSize(QtCore.QSize(200, 16777215))
|
|
156 |
self.listWidgetInstrument.setObjectName("listWidgetInstrument")
|
|
146 | 157 |
self.verticalLayoutWidget_4 = QtWidgets.QWidget(self.splitter_4) |
147 | 158 |
self.verticalLayoutWidget_4.setObjectName("verticalLayoutWidget_4") |
148 | 159 |
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_4) |
... | ... | |
150 | 161 |
self.verticalLayout_4.setObjectName("verticalLayout_4") |
151 | 162 |
self.horizontalLayout_5 = QtWidgets.QHBoxLayout() |
152 | 163 |
self.horizontalLayout_5.setObjectName("horizontalLayout_5") |
153 |
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
154 |
self.horizontalLayout_5.addItem(spacerItem3)
|
|
164 |
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
165 |
self.horizontalLayout_5.addItem(spacerItem4)
|
|
155 | 166 |
self.pushButton_8 = QtWidgets.QPushButton(self.verticalLayoutWidget_4) |
156 | 167 |
self.pushButton_8.setMaximumSize(QtCore.QSize(24, 16777215)) |
157 | 168 |
self.pushButton_8.setObjectName("pushButton_8") |
... | ... | |
161 | 172 |
self.pushButton_7.setObjectName("pushButton_7") |
162 | 173 |
self.horizontalLayout_5.addWidget(self.pushButton_7) |
163 | 174 |
self.verticalLayout_4.addLayout(self.horizontalLayout_5) |
164 |
self.tableWidget_4 = QtWidgets.QTableWidget(self.verticalLayoutWidget_4) |
|
165 |
self.tableWidget_4.setRowCount(2) |
|
166 |
self.tableWidget_4.setObjectName("tableWidget_4") |
|
167 |
self.tableWidget_4.setColumnCount(0) |
|
168 |
self.verticalLayout_4.addWidget(self.tableWidget_4) |
|
175 |
self.tableWidgetInstrument = QtWidgets.QTableWidget(self.verticalLayoutWidget_4) |
|
176 |
self.tableWidgetInstrument.setRowCount(0) |
|
177 |
self.tableWidgetInstrument.setObjectName("tableWidgetInstrument") |
|
178 |
self.tableWidgetInstrument.setColumnCount(0) |
|
179 |
self.tableWidgetInstrument.verticalHeader().setVisible(False) |
|
180 |
self.verticalLayout_4.addWidget(self.tableWidgetInstrument) |
|
169 | 181 |
self.gridLayout_5.addWidget(self.splitter_4, 0, 0, 1, 1) |
170 | 182 |
self.tabWidget.addTab(self.tabInstList, "") |
171 | 183 |
self.tabNoteList = QtWidgets.QWidget() |
... | ... | |
175 | 187 |
self.splitter_5 = QtWidgets.QSplitter(self.tabNoteList) |
176 | 188 |
self.splitter_5.setOrientation(QtCore.Qt.Horizontal) |
177 | 189 |
self.splitter_5.setObjectName("splitter_5") |
178 |
self.listWidget_5 = QtWidgets.QListWidget(self.splitter_5)
|
|
179 |
self.listWidget_5.setMaximumSize(QtCore.QSize(200, 16777215))
|
|
180 |
self.listWidget_5.setObjectName("listWidget_5")
|
|
190 |
self.listWidgetNote = QtWidgets.QListWidget(self.splitter_5)
|
|
191 |
self.listWidgetNote.setMaximumSize(QtCore.QSize(200, 16777215))
|
|
192 |
self.listWidgetNote.setObjectName("listWidgetNote")
|
|
181 | 193 |
self.verticalLayoutWidget_5 = QtWidgets.QWidget(self.splitter_5) |
182 | 194 |
self.verticalLayoutWidget_5.setObjectName("verticalLayoutWidget_5") |
183 | 195 |
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_5) |
... | ... | |
185 | 197 |
self.verticalLayout_5.setObjectName("verticalLayout_5") |
186 | 198 |
self.horizontalLayout_6 = QtWidgets.QHBoxLayout() |
187 | 199 |
self.horizontalLayout_6.setObjectName("horizontalLayout_6") |
188 |
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
189 |
self.horizontalLayout_6.addItem(spacerItem4)
|
|
200 |
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
201 |
self.horizontalLayout_6.addItem(spacerItem5)
|
|
190 | 202 |
self.pushButton_10 = QtWidgets.QPushButton(self.verticalLayoutWidget_5) |
191 | 203 |
self.pushButton_10.setMaximumSize(QtCore.QSize(24, 16777215)) |
192 | 204 |
self.pushButton_10.setObjectName("pushButton_10") |
... | ... | |
196 | 208 |
self.pushButton_9.setObjectName("pushButton_9") |
197 | 209 |
self.horizontalLayout_6.addWidget(self.pushButton_9) |
198 | 210 |
self.verticalLayout_5.addLayout(self.horizontalLayout_6) |
199 |
self.tableWidget_5 = QtWidgets.QTableWidget(self.verticalLayoutWidget_5) |
|
200 |
self.tableWidget_5.setRowCount(2) |
|
201 |
self.tableWidget_5.setObjectName("tableWidget_5") |
|
202 |
self.tableWidget_5.setColumnCount(0) |
|
203 |
self.verticalLayout_5.addWidget(self.tableWidget_5) |
|
211 |
self.tableWidgetNote = QtWidgets.QTableWidget(self.verticalLayoutWidget_5) |
|
212 |
self.tableWidgetNote.setRowCount(0) |
|
213 |
self.tableWidgetNote.setObjectName("tableWidgetNote") |
|
214 |
self.tableWidgetNote.setColumnCount(0) |
|
215 |
self.tableWidgetNote.verticalHeader().setVisible(False) |
|
216 |
self.verticalLayout_5.addWidget(self.tableWidgetNote) |
|
204 | 217 |
self.gridLayout_6.addWidget(self.splitter_5, 0, 0, 1, 1) |
205 | 218 |
self.tabWidget.addTab(self.tabNoteList, "") |
206 | 219 |
self.gridLayout.addWidget(self.tabWidget, 1, 0, 1, 1) |
207 | 220 |
|
208 | 221 |
self.retranslateUi(ItemDataFormatDialog) |
209 | 222 |
self.tabWidget.setCurrentIndex(0) |
210 |
self.buttonBox.accepted.connect(ItemDataFormatDialog.accept) |
|
211 |
self.buttonBox.rejected.connect(ItemDataFormatDialog.reject) |
|
212 | 223 |
QtCore.QMetaObject.connectSlotsByName(ItemDataFormatDialog) |
213 | 224 |
|
214 | 225 |
def retranslateUi(self, ItemDataFormatDialog): |
215 | 226 |
_translate = QtCore.QCoreApplication.translate |
216 | 227 |
ItemDataFormatDialog.setWindowTitle(_translate("ItemDataFormatDialog", "리스트 양식 설정")) |
228 |
self.pushButtonApply.setText(_translate("ItemDataFormatDialog", "Apply")) |
|
229 |
self.pushButtonCancel.setText(_translate("ItemDataFormatDialog", "Cancel")) |
|
217 | 230 |
self.pushButton_2.setText(_translate("ItemDataFormatDialog", "+")) |
218 | 231 |
self.pushButton.setText(_translate("ItemDataFormatDialog", "-")) |
219 | 232 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabLineList), _translate("ItemDataFormatDialog", "라인 리스트")) |
DTI_PID/DTI_PID/UI/ItemDataFormat.ui | ||
---|---|---|
25 | 25 |
</property> |
26 | 26 |
<layout class="QGridLayout" name="gridLayout"> |
27 | 27 |
<item row="2" column="0"> |
28 |
<widget class="QDialogButtonBox" name="buttonBox"> |
|
29 |
<property name="orientation"> |
|
30 |
<enum>Qt::Horizontal</enum> |
|
31 |
</property> |
|
32 |
<property name="standardButtons"> |
|
33 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
|
34 |
</property> |
|
35 |
</widget> |
|
28 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
29 |
<item> |
|
30 |
<spacer name="horizontalSpacer_6"> |
|
31 |
<property name="orientation"> |
|
32 |
<enum>Qt::Horizontal</enum> |
|
33 |
</property> |
|
34 |
<property name="sizeHint" stdset="0"> |
|
35 |
<size> |
|
36 |
<width>40</width> |
|
37 |
<height>20</height> |
|
38 |
</size> |
|
39 |
</property> |
|
40 |
</spacer> |
|
41 |
</item> |
|
42 |
<item> |
|
43 |
<widget class="QPushButton" name="pushButtonApply"> |
|
44 |
<property name="maximumSize"> |
|
45 |
<size> |
|
46 |
<width>68</width> |
|
47 |
<height>16777215</height> |
|
48 |
</size> |
|
49 |
</property> |
|
50 |
<property name="text"> |
|
51 |
<string>Apply</string> |
|
52 |
</property> |
|
53 |
</widget> |
|
54 |
</item> |
|
55 |
<item> |
|
56 |
<widget class="QPushButton" name="pushButtonCancel"> |
|
57 |
<property name="maximumSize"> |
|
58 |
<size> |
|
59 |
<width>68</width> |
|
60 |
<height>16777215</height> |
|
61 |
</size> |
|
62 |
</property> |
|
63 |
<property name="text"> |
|
64 |
<string>Cancel</string> |
|
65 |
</property> |
|
66 |
</widget> |
|
67 |
</item> |
|
68 |
</layout> |
|
36 | 69 |
</item> |
37 | 70 |
<item row="1" column="0"> |
38 | 71 |
<widget class="QTabWidget" name="tabWidget"> |
... | ... | |
52 | 85 |
<property name="orientation"> |
53 | 86 |
<enum>Qt::Horizontal</enum> |
54 | 87 |
</property> |
55 |
<widget class="QListWidget" name="listWidget"> |
|
88 |
<widget class="QListWidget" name="listWidgetLine">
|
|
56 | 89 |
<property name="maximumSize"> |
57 | 90 |
<size> |
58 | 91 |
<width>200</width> |
... | ... | |
106 | 139 |
</layout> |
107 | 140 |
</item> |
108 | 141 |
<item> |
109 |
<widget class="QTableWidget" name="tableWidget"> |
|
142 |
<widget class="QTableWidget" name="tableWidgetLine">
|
|
110 | 143 |
<property name="rowCount"> |
111 |
<number>2</number>
|
|
144 |
<number>0</number>
|
|
112 | 145 |
</property> |
113 |
<row/> |
|
114 |
<row/> |
|
146 |
<attribute name="verticalHeaderVisible"> |
|
147 |
<bool>false</bool> |
|
148 |
</attribute> |
|
115 | 149 |
</widget> |
116 | 150 |
</item> |
117 | 151 |
</layout> |
... | ... | |
130 | 164 |
<property name="orientation"> |
131 | 165 |
<enum>Qt::Horizontal</enum> |
132 | 166 |
</property> |
133 |
<widget class="QListWidget" name="listWidget_2">
|
|
167 |
<widget class="QListWidget" name="listWidgetEquipment">
|
|
134 | 168 |
<property name="maximumSize"> |
135 | 169 |
<size> |
136 | 170 |
<width>200</width> |
... | ... | |
184 | 218 |
</layout> |
185 | 219 |
</item> |
186 | 220 |
<item> |
187 |
<widget class="QTableWidget" name="tableWidget_2">
|
|
221 |
<widget class="QTableWidget" name="tableWidgetEquipment">
|
|
188 | 222 |
<property name="rowCount"> |
189 |
<number>2</number>
|
|
223 |
<number>0</number>
|
|
190 | 224 |
</property> |
191 |
<row/> |
|
192 |
<row/> |
|
225 |
<attribute name="verticalHeaderVisible"> |
|
226 |
<bool>false</bool> |
|
227 |
</attribute> |
|
193 | 228 |
</widget> |
194 | 229 |
</item> |
195 | 230 |
</layout> |
... | ... | |
208 | 243 |
<property name="orientation"> |
209 | 244 |
<enum>Qt::Horizontal</enum> |
210 | 245 |
</property> |
211 |
<widget class="QListWidget" name="listWidget_3">
|
|
246 |
<widget class="QListWidget" name="listWidgetValve">
|
|
212 | 247 |
<property name="maximumSize"> |
213 | 248 |
<size> |
214 | 249 |
<width>200</width> |
... | ... | |
262 | 297 |
</layout> |
263 | 298 |
</item> |
264 | 299 |
<item> |
265 |
<widget class="QTableWidget" name="tableWidget_3">
|
|
300 |
<widget class="QTableWidget" name="tableWidgetValve">
|
|
266 | 301 |
<property name="rowCount"> |
267 |
<number>2</number>
|
|
302 |
<number>0</number>
|
|
268 | 303 |
</property> |
269 |
<row/> |
|
270 |
<row/> |
|
304 |
<attribute name="verticalHeaderVisible"> |
|
305 |
<bool>false</bool> |
|
306 |
</attribute> |
|
271 | 307 |
</widget> |
272 | 308 |
</item> |
273 | 309 |
</layout> |
... | ... | |
286 | 322 |
<property name="orientation"> |
287 | 323 |
<enum>Qt::Horizontal</enum> |
288 | 324 |
</property> |
289 |
<widget class="QListWidget" name="listWidget_4">
|
|
325 |
<widget class="QListWidget" name="listWidgetInstrument">
|
|
290 | 326 |
<property name="maximumSize"> |
291 | 327 |
<size> |
292 | 328 |
<width>200</width> |
... | ... | |
340 | 376 |
</layout> |
341 | 377 |
</item> |
342 | 378 |
<item> |
343 |
<widget class="QTableWidget" name="tableWidget_4">
|
|
379 |
<widget class="QTableWidget" name="tableWidgetInstrument">
|
|
344 | 380 |
<property name="rowCount"> |
345 |
<number>2</number>
|
|
381 |
<number>0</number>
|
|
346 | 382 |
</property> |
347 |
<row/> |
|
348 |
<row/> |
|
383 |
<attribute name="verticalHeaderVisible"> |
|
384 |
<bool>false</bool> |
|
385 |
</attribute> |
|
349 | 386 |
</widget> |
350 | 387 |
</item> |
351 | 388 |
</layout> |
... | ... | |
364 | 401 |
<property name="orientation"> |
365 | 402 |
<enum>Qt::Horizontal</enum> |
366 | 403 |
</property> |
367 |
<widget class="QListWidget" name="listWidget_5">
|
|
404 |
<widget class="QListWidget" name="listWidgetNote">
|
|
368 | 405 |
<property name="maximumSize"> |
369 | 406 |
<size> |
370 | 407 |
<width>200</width> |
... | ... | |
418 | 455 |
</layout> |
419 | 456 |
</item> |
420 | 457 |
<item> |
421 |
<widget class="QTableWidget" name="tableWidget_5">
|
|
458 |
<widget class="QTableWidget" name="tableWidgetNote">
|
|
422 | 459 |
<property name="rowCount"> |
423 |
<number>2</number>
|
|
460 |
<number>0</number>
|
|
424 | 461 |
</property> |
425 |
<row/> |
|
426 |
<row/> |
|
462 |
<attribute name="verticalHeaderVisible"> |
|
463 |
<bool>false</bool> |
|
464 |
</attribute> |
|
427 | 465 |
</widget> |
428 | 466 |
</item> |
429 | 467 |
</layout> |
... | ... | |
437 | 475 |
</layout> |
438 | 476 |
</widget> |
439 | 477 |
<resources/> |
440 |
<connections> |
|
441 |
<connection> |
|
442 |
<sender>buttonBox</sender> |
|
443 |
<signal>accepted()</signal> |
|
444 |
<receiver>ItemDataFormatDialog</receiver> |
|
445 |
<slot>accept()</slot> |
|
446 |
<hints> |
|
447 |
<hint type="sourcelabel"> |
|
448 |
<x>248</x> |
|
449 |
<y>254</y> |
|
450 |
</hint> |
|
451 |
<hint type="destinationlabel"> |
|
452 |
<x>157</x> |
|
453 |
<y>274</y> |
|
454 |
</hint> |
|
455 |
</hints> |
|
456 |
</connection> |
|
457 |
<connection> |
|
458 |
<sender>buttonBox</sender> |
|
459 |
<signal>rejected()</signal> |
|
460 |
<receiver>ItemDataFormatDialog</receiver> |
|
461 |
<slot>reject()</slot> |
|
462 |
<hints> |
|
463 |
<hint type="sourcelabel"> |
|
464 |
<x>316</x> |
|
465 |
<y>260</y> |
|
466 |
</hint> |
|
467 |
<hint type="destinationlabel"> |
|
468 |
<x>286</x> |
|
469 |
<y>274</y> |
|
470 |
</hint> |
|
471 |
</hints> |
|
472 |
</connection> |
|
473 |
</connections> |
|
478 |
<connections/> |
|
474 | 479 |
</ui> |
내보내기 Unified diff