개정판 51a9ae0c
add project info setting
Change-Id: Ib67d963ce30984c73dc09450a04bf8e4c4bc4578
DTI_PID/DTI_PID/AppRibbon.py | ||
---|---|---|
268 | 268 |
self._panes['Data'] = pane |
269 | 269 |
pane.ui.toolButtonHMBData.clicked.connect(main_wnd.onHMBData) |
270 | 270 |
pane.ui.toolButtonEngInfoList.clicked.connect(main_wnd.showItemDataList) |
271 |
pane.ui.toolButtonProjectInfo.clicked.connect(main_wnd.on_show_project_info) |
|
271 | 272 |
pane.ui.toolButtonSpecialItemTypes.clicked.connect(main_wnd.on_show_special_item_types) |
272 | 273 |
pane.ui.toolButtonSpecialItemTypes.setHidden(True) |
273 | 274 |
pane.ui.toolButtonOPCRelation.clicked.connect(main_wnd.on_show_opc_relation) |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
2071 | 2071 |
dlg = QExtAppsDialog(self) |
2072 | 2072 |
dlg.exec_() |
2073 | 2073 |
|
2074 |
def on_show_project_info(self): |
|
2075 |
from ProjectInfoDialog import QProjectInfoDialog |
|
2076 |
|
|
2077 |
dlg = QProjectInfoDialog(self) |
|
2078 |
dlg.show() |
|
2079 |
dlg.exec_() |
|
2080 |
self.graphicsView.useDefaultCommand() |
|
2081 |
|
|
2074 | 2082 |
def onShowCustomCodeTable(self): |
2075 | 2083 |
from CustomCodeTablesDialog import CustomCodeTablesDialog |
2076 | 2084 |
|
DTI_PID/DTI_PID/ProjectInfoDialog.py | ||
---|---|---|
1 |
# coding: utf-8 |
|
2 |
""" This is global validation dialog module """ |
|
3 |
|
|
4 |
import os |
|
5 |
import sys |
|
6 |
from PyQt5.QtCore import * |
|
7 |
from PyQt5.QtGui import * |
|
8 |
from PyQt5.QtWidgets import * |
|
9 |
from AppDocData import AppDocData, MessageType |
|
10 |
|
|
11 |
import ProjectInfo_UI |
|
12 |
|
|
13 |
|
|
14 |
class QProjectInfoDialog(QDialog): |
|
15 |
""" This Project Info. dialog class """ |
|
16 |
|
|
17 |
def __init__(self, parent): |
|
18 |
QDialog.__init__(self, parent) |
|
19 |
|
|
20 |
self.ui = ProjectInfo_UI.Ui_ProjectInfoDialog() |
|
21 |
self.ui.setupUi(self) |
|
22 |
self.ui.buttonBox.button(QDialogButtonBox.Ok).setIcon(QIcon(':/newPrefix/OK.svg')) |
|
23 |
self.ui.buttonBox.button(QDialogButtonBox.Cancel).setIcon(QIcon(':/newPrefix/Remove.svg')) |
|
24 |
|
|
25 |
self.ui.tabWidget.setTabVisible(1, False) |
|
26 |
|
|
27 |
def run(self): |
|
28 |
app_doc_data = AppDocData.instance() |
|
29 |
|
|
30 |
name = self.ui.lineEditDuplication.text() |
|
31 |
if self.ui.radioButtonDupilcation.isChecked() and name: |
|
32 |
attrs = app_doc_data.getDuplicatedAttrs(name) |
|
33 |
|
|
34 |
self.ui.tableWidgetResult.setRowCount(len(attrs)) |
|
35 |
for index in range(len(attrs)): |
|
36 |
self.ui.tableWidgetResult.setItem(index, 0, QTableWidgetItem(attrs[index][0])) |
|
37 |
self.ui.tableWidgetResult.setItem(index, 1, QTableWidgetItem(attrs[index][1])) |
|
38 |
self.ui.tableWidgetResult.setItem(index, 2, QTableWidgetItem(attrs[index][2])) |
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
DTI_PID/DTI_PID/ProjectInfo_UI.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
|
|
3 |
# Form implementation generated from reading ui file './UI/ProjectInfo.ui' |
|
4 |
# |
|
5 |
# Created by: PyQt5 UI code generator 5.15.4 |
|
6 |
# |
|
7 |
# WARNING: Any manual changes made to this file will be lost when pyuic5 is |
|
8 |
# run again. Do not edit this file unless you know what you are doing. |
|
9 |
|
|
10 |
|
|
11 |
from PyQt5 import QtCore, QtGui, QtWidgets |
|
12 |
|
|
13 |
|
|
14 |
class Ui_ProjectInfoDialog(object): |
|
15 |
def setupUi(self, ProjectInfoDialog): |
|
16 |
ProjectInfoDialog.setObjectName("ProjectInfoDialog") |
|
17 |
ProjectInfoDialog.resize(768, 485) |
|
18 |
font = QtGui.QFont() |
|
19 |
font.setFamily("맑은 고딕") |
|
20 |
ProjectInfoDialog.setFont(font) |
|
21 |
icon = QtGui.QIcon() |
|
22 |
icon.addPixmap(QtGui.QPixmap(":/newPrefix/setting.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
23 |
ProjectInfoDialog.setWindowIcon(icon) |
|
24 |
ProjectInfoDialog.setModal(True) |
|
25 |
self.gridLayout = QtWidgets.QGridLayout(ProjectInfoDialog) |
|
26 |
self.gridLayout.setObjectName("gridLayout") |
|
27 |
self.buttonBox = QtWidgets.QDialogButtonBox(ProjectInfoDialog) |
|
28 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
|
29 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
|
30 |
self.buttonBox.setObjectName("buttonBox") |
|
31 |
self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 1) |
|
32 |
self.tabWidget = QtWidgets.QTabWidget(ProjectInfoDialog) |
|
33 |
self.tabWidget.setObjectName("tabWidget") |
|
34 |
self.Recognition = QtWidgets.QWidget() |
|
35 |
self.Recognition.setObjectName("Recognition") |
|
36 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.Recognition) |
|
37 |
self.gridLayout_2.setObjectName("gridLayout_2") |
|
38 |
self.groupBoxText = QtWidgets.QGroupBox(self.Recognition) |
|
39 |
self.groupBoxText.setObjectName("groupBoxText") |
|
40 |
self.gridLayout_14 = QtWidgets.QGridLayout(self.groupBoxText) |
|
41 |
self.gridLayout_14.setObjectName("gridLayout_14") |
|
42 |
self.gridLayout_25 = QtWidgets.QGridLayout() |
|
43 |
self.gridLayout_25.setObjectName("gridLayout_25") |
|
44 |
self.label_2 = QtWidgets.QLabel(self.groupBoxText) |
|
45 |
self.label_2.setObjectName("label_2") |
|
46 |
self.gridLayout_25.addWidget(self.label_2, 10, 0, 1, 1) |
|
47 |
self.lineEditProjectType = QtWidgets.QLineEdit(self.groupBoxText) |
|
48 |
self.lineEditProjectType.setObjectName("lineEditProjectType") |
|
49 |
self.gridLayout_25.addWidget(self.lineEditProjectType, 2, 1, 1, 2) |
|
50 |
self.spinBoxNoPnID = QtWidgets.QSpinBox(self.groupBoxText) |
|
51 |
self.spinBoxNoPnID.setMinimumSize(QtCore.QSize(100, 0)) |
|
52 |
self.spinBoxNoPnID.setObjectName("spinBoxNoPnID") |
|
53 |
self.gridLayout_25.addWidget(self.spinBoxNoPnID, 8, 1, 1, 1) |
|
54 |
self.label_22 = QtWidgets.QLabel(self.groupBoxText) |
|
55 |
self.label_22.setObjectName("label_22") |
|
56 |
self.gridLayout_25.addWidget(self.label_22, 8, 0, 1, 1) |
|
57 |
self.label_44 = QtWidgets.QLabel(self.groupBoxText) |
|
58 |
self.label_44.setObjectName("label_44") |
|
59 |
self.gridLayout_25.addWidget(self.label_44, 9, 0, 1, 1) |
|
60 |
self.label_19 = QtWidgets.QLabel(self.groupBoxText) |
|
61 |
self.label_19.setObjectName("label_19") |
|
62 |
self.gridLayout_25.addWidget(self.label_19, 0, 0, 1, 1) |
|
63 |
self.lineEditProjectMainProcessDesc = QtWidgets.QLineEdit(self.groupBoxText) |
|
64 |
self.lineEditProjectMainProcessDesc.setObjectName("lineEditProjectMainProcessDesc") |
|
65 |
self.gridLayout_25.addWidget(self.lineEditProjectMainProcessDesc, 3, 1, 1, 2) |
|
66 |
self.label_3 = QtWidgets.QLabel(self.groupBoxText) |
|
67 |
self.label_3.setObjectName("label_3") |
|
68 |
self.gridLayout_25.addWidget(self.label_3, 11, 0, 1, 1) |
|
69 |
self.label_20 = QtWidgets.QLabel(self.groupBoxText) |
|
70 |
self.label_20.setObjectName("label_20") |
|
71 |
self.gridLayout_25.addWidget(self.label_20, 6, 0, 1, 1) |
|
72 |
self.label_43 = QtWidgets.QLabel(self.groupBoxText) |
|
73 |
self.label_43.setObjectName("label_43") |
|
74 |
self.gridLayout_25.addWidget(self.label_43, 3, 0, 1, 1) |
|
75 |
self.lineEditProjectDesc = QtWidgets.QLineEdit(self.groupBoxText) |
|
76 |
font = QtGui.QFont() |
|
77 |
font.setFamily("Consolas") |
|
78 |
self.lineEditProjectDesc.setFont(font) |
|
79 |
self.lineEditProjectDesc.setObjectName("lineEditProjectDesc") |
|
80 |
self.gridLayout_25.addWidget(self.lineEditProjectDesc, 1, 1, 1, 2) |
|
81 |
self.spinBoxNoEquipment = QtWidgets.QSpinBox(self.groupBoxText) |
|
82 |
self.spinBoxNoEquipment.setMaximum(99999) |
|
83 |
self.spinBoxNoEquipment.setObjectName("spinBoxNoEquipment") |
|
84 |
self.gridLayout_25.addWidget(self.spinBoxNoEquipment, 9, 1, 1, 1) |
|
85 |
self.label_7 = QtWidgets.QLabel(self.groupBoxText) |
|
86 |
self.label_7.setObjectName("label_7") |
|
87 |
self.gridLayout_25.addWidget(self.label_7, 1, 0, 1, 1) |
|
88 |
self.label_37 = QtWidgets.QLabel(self.groupBoxText) |
|
89 |
self.label_37.setObjectName("label_37") |
|
90 |
self.gridLayout_25.addWidget(self.label_37, 4, 0, 1, 1) |
|
91 |
self.label_39 = QtWidgets.QLabel(self.groupBoxText) |
|
92 |
self.label_39.setObjectName("label_39") |
|
93 |
self.gridLayout_25.addWidget(self.label_39, 2, 0, 1, 1) |
|
94 |
self.lineEditProjectName = QtWidgets.QLineEdit(self.groupBoxText) |
|
95 |
self.lineEditProjectName.setObjectName("lineEditProjectName") |
|
96 |
self.gridLayout_25.addWidget(self.lineEditProjectName, 0, 1, 1, 2) |
|
97 |
self.lineEditProjectOwner = QtWidgets.QLineEdit(self.groupBoxText) |
|
98 |
font = QtGui.QFont() |
|
99 |
font.setFamily("Consolas") |
|
100 |
self.lineEditProjectOwner.setFont(font) |
|
101 |
self.lineEditProjectOwner.setObjectName("lineEditProjectOwner") |
|
102 |
self.gridLayout_25.addWidget(self.lineEditProjectOwner, 5, 1, 1, 2) |
|
103 |
self.label_17 = QtWidgets.QLabel(self.groupBoxText) |
|
104 |
self.label_17.setObjectName("label_17") |
|
105 |
self.gridLayout_25.addWidget(self.label_17, 7, 0, 1, 1) |
|
106 |
self.label_50 = QtWidgets.QLabel(self.groupBoxText) |
|
107 |
self.label_50.setObjectName("label_50") |
|
108 |
self.gridLayout_25.addWidget(self.label_50, 5, 0, 1, 1) |
|
109 |
self.lineEditProjectDuration = QtWidgets.QLineEdit(self.groupBoxText) |
|
110 |
font = QtGui.QFont() |
|
111 |
font.setFamily("Consolas") |
|
112 |
self.lineEditProjectDuration.setFont(font) |
|
113 |
self.lineEditProjectDuration.setObjectName("lineEditProjectDuration") |
|
114 |
self.gridLayout_25.addWidget(self.lineEditProjectDuration, 4, 1, 1, 2) |
|
115 |
self.lineEditProjectLicensor = QtWidgets.QLineEdit(self.groupBoxText) |
|
116 |
self.lineEditProjectLicensor.setObjectName("lineEditProjectLicensor") |
|
117 |
self.gridLayout_25.addWidget(self.lineEditProjectLicensor, 7, 1, 1, 1) |
|
118 |
self.lineEditProjectContractor = QtWidgets.QLineEdit(self.groupBoxText) |
|
119 |
self.lineEditProjectContractor.setObjectName("lineEditProjectContractor") |
|
120 |
self.gridLayout_25.addWidget(self.lineEditProjectContractor, 6, 1, 1, 2) |
|
121 |
self.spinBoxNoInstrument = QtWidgets.QSpinBox(self.groupBoxText) |
|
122 |
self.spinBoxNoInstrument.setMaximum(99999) |
|
123 |
self.spinBoxNoInstrument.setObjectName("spinBoxNoInstrument") |
|
124 |
self.gridLayout_25.addWidget(self.spinBoxNoInstrument, 10, 1, 1, 1) |
|
125 |
self.spinBoxNoLine = QtWidgets.QSpinBox(self.groupBoxText) |
|
126 |
self.spinBoxNoLine.setMaximum(99999) |
|
127 |
self.spinBoxNoLine.setObjectName("spinBoxNoLine") |
|
128 |
self.gridLayout_25.addWidget(self.spinBoxNoLine, 11, 1, 1, 1) |
|
129 |
self.gridLayout_14.addLayout(self.gridLayout_25, 0, 0, 1, 1) |
|
130 |
self.gridLayout_2.addWidget(self.groupBoxText, 0, 1, 1, 1) |
|
131 |
self.tabWidget.addTab(self.Recognition, "") |
|
132 |
self.Recognition2 = QtWidgets.QWidget() |
|
133 |
self.Recognition2.setObjectName("Recognition2") |
|
134 |
self.gridLayout_21 = QtWidgets.QGridLayout(self.Recognition2) |
|
135 |
self.gridLayout_21.setObjectName("gridLayout_21") |
|
136 |
self.groupBox = QtWidgets.QGroupBox(self.Recognition2) |
|
137 |
self.groupBox.setObjectName("groupBox") |
|
138 |
self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox) |
|
139 |
self.gridLayout_5.setObjectName("gridLayout_5") |
|
140 |
self.gridLayout_11 = QtWidgets.QGridLayout() |
|
141 |
self.gridLayout_11.setObjectName("gridLayout_11") |
|
142 |
self.label_45 = QtWidgets.QLabel(self.groupBox) |
|
143 |
self.label_45.setObjectName("label_45") |
|
144 |
self.gridLayout_11.addWidget(self.label_45, 5, 0, 1, 1) |
|
145 |
self.radioButtonGapYes = QtWidgets.QRadioButton(self.groupBox) |
|
146 |
self.radioButtonGapYes.setObjectName("radioButtonGapYes") |
|
147 |
self.buttonGroup_5 = QtWidgets.QButtonGroup(ProjectInfoDialog) |
|
148 |
self.buttonGroup_5.setObjectName("buttonGroup_5") |
|
149 |
self.buttonGroup_5.addButton(self.radioButtonGapYes) |
|
150 |
self.gridLayout_11.addWidget(self.radioButtonGapYes, 5, 1, 1, 1) |
|
151 |
self.comboBoxLineType = QtWidgets.QComboBox(self.groupBox) |
|
152 |
self.comboBoxLineType.setObjectName("comboBoxLineType") |
|
153 |
self.gridLayout_11.addWidget(self.comboBoxLineType, 4, 1, 1, 2) |
|
154 |
self.label_4 = QtWidgets.QLabel(self.groupBox) |
|
155 |
self.label_4.setObjectName("label_4") |
|
156 |
self.gridLayout_11.addWidget(self.label_4, 0, 0, 1, 1) |
|
157 |
self.spinBoxLengthToConnectLine = QtWidgets.QSpinBox(self.groupBox) |
|
158 |
self.spinBoxLengthToConnectLine.setProperty("value", 20) |
|
159 |
self.spinBoxLengthToConnectLine.setObjectName("spinBoxLengthToConnectLine") |
|
160 |
self.gridLayout_11.addWidget(self.spinBoxLengthToConnectLine, 3, 1, 1, 1) |
|
161 |
self.label = QtWidgets.QLabel(self.groupBox) |
|
162 |
self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
|
163 |
self.label.setObjectName("label") |
|
164 |
self.gridLayout_11.addWidget(self.label, 1, 0, 1, 1) |
|
165 |
self.spinBoxWidth = QtWidgets.QSpinBox(self.groupBox) |
|
166 |
self.spinBoxWidth.setMinimumSize(QtCore.QSize(100, 0)) |
|
167 |
self.spinBoxWidth.setObjectName("spinBoxWidth") |
|
168 |
self.gridLayout_11.addWidget(self.spinBoxWidth, 1, 1, 1, 1) |
|
169 |
self.smallLineMinLengthSpinBox = QtWidgets.QSpinBox(self.groupBox) |
|
170 |
self.smallLineMinLengthSpinBox.setMinimumSize(QtCore.QSize(100, 0)) |
|
171 |
self.smallLineMinLengthSpinBox.setObjectName("smallLineMinLengthSpinBox") |
|
172 |
self.gridLayout_11.addWidget(self.smallLineMinLengthSpinBox, 2, 1, 1, 1) |
|
173 |
self.label_35 = QtWidgets.QLabel(self.groupBox) |
|
174 |
self.label_35.setObjectName("label_35") |
|
175 |
self.gridLayout_11.addWidget(self.label_35, 6, 0, 1, 1) |
|
176 |
self.radioButtonDiagonalYes = QtWidgets.QRadioButton(self.groupBox) |
|
177 |
self.radioButtonDiagonalYes.setObjectName("radioButtonDiagonalYes") |
|
178 |
self.buttonGroup_3 = QtWidgets.QButtonGroup(ProjectInfoDialog) |
|
179 |
self.buttonGroup_3.setObjectName("buttonGroup_3") |
|
180 |
self.buttonGroup_3.addButton(self.radioButtonDiagonalYes) |
|
181 |
self.gridLayout_11.addWidget(self.radioButtonDiagonalYes, 6, 1, 1, 1) |
|
182 |
self.label_5 = QtWidgets.QLabel(self.groupBox) |
|
183 |
self.label_5.setAlignment(QtCore.Qt.AlignCenter) |
|
184 |
self.label_5.setObjectName("label_5") |
|
185 |
self.gridLayout_11.addWidget(self.label_5, 0, 2, 1, 1) |
|
186 |
self.label_16 = QtWidgets.QLabel(self.groupBox) |
|
187 |
self.label_16.setObjectName("label_16") |
|
188 |
self.gridLayout_11.addWidget(self.label_16, 2, 0, 1, 1) |
|
189 |
self.spinBoxMaxArea = QtWidgets.QSpinBox(self.groupBox) |
|
190 |
self.spinBoxMaxArea.setMinimumSize(QtCore.QSize(100, 0)) |
|
191 |
self.spinBoxMaxArea.setObjectName("spinBoxMaxArea") |
|
192 |
self.gridLayout_11.addWidget(self.spinBoxMaxArea, 0, 3, 1, 1) |
|
193 |
self.label_28 = QtWidgets.QLabel(self.groupBox) |
|
194 |
self.label_28.setObjectName("label_28") |
|
195 |
self.gridLayout_11.addWidget(self.label_28, 4, 0, 1, 1) |
|
196 |
self.spinBoxHeight = QtWidgets.QSpinBox(self.groupBox) |
|
197 |
self.spinBoxHeight.setMinimumSize(QtCore.QSize(100, 0)) |
|
198 |
self.spinBoxHeight.setObjectName("spinBoxHeight") |
|
199 |
self.gridLayout_11.addWidget(self.spinBoxHeight, 1, 2, 1, 1) |
|
200 |
self.spinBoxMinArea = QtWidgets.QSpinBox(self.groupBox) |
|
201 |
self.spinBoxMinArea.setMinimumSize(QtCore.QSize(100, 0)) |
|
202 |
self.spinBoxMinArea.setObjectName("spinBoxMinArea") |
|
203 |
self.gridLayout_11.addWidget(self.spinBoxMinArea, 0, 1, 1, 1) |
|
204 |
self.radioButtonDiagonalNo = QtWidgets.QRadioButton(self.groupBox) |
|
205 |
self.radioButtonDiagonalNo.setObjectName("radioButtonDiagonalNo") |
|
206 |
self.buttonGroup_3.addButton(self.radioButtonDiagonalNo) |
|
207 |
self.gridLayout_11.addWidget(self.radioButtonDiagonalNo, 6, 2, 1, 1) |
|
208 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
209 |
self.gridLayout_11.addItem(spacerItem, 0, 4, 1, 1) |
|
210 |
self.label_9 = QtWidgets.QLabel(self.groupBox) |
|
211 |
self.label_9.setObjectName("label_9") |
|
212 |
self.gridLayout_11.addWidget(self.label_9, 3, 0, 1, 1) |
|
213 |
self.radioButtonGapNo = QtWidgets.QRadioButton(self.groupBox) |
|
214 |
self.radioButtonGapNo.setObjectName("radioButtonGapNo") |
|
215 |
self.buttonGroup_5.addButton(self.radioButtonGapNo) |
|
216 |
self.gridLayout_11.addWidget(self.radioButtonGapNo, 5, 2, 1, 1) |
|
217 |
self.gridLayout_5.addLayout(self.gridLayout_11, 0, 0, 1, 1) |
|
218 |
self.gridLayout_21.addWidget(self.groupBox, 0, 1, 1, 1) |
|
219 |
self.tabWidget.addTab(self.Recognition2, "") |
|
220 |
self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1) |
|
221 |
|
|
222 |
self.retranslateUi(ProjectInfoDialog) |
|
223 |
self.tabWidget.setCurrentIndex(0) |
|
224 |
self.buttonBox.accepted.connect(ProjectInfoDialog.accept) |
|
225 |
self.buttonBox.rejected.connect(ProjectInfoDialog.reject) |
|
226 |
QtCore.QMetaObject.connectSlotsByName(ProjectInfoDialog) |
|
227 |
ProjectInfoDialog.setTabOrder(self.lineEditProjectDesc, self.lineEditProjectDuration) |
|
228 |
ProjectInfoDialog.setTabOrder(self.lineEditProjectDuration, self.spinBoxNoPnID) |
|
229 |
ProjectInfoDialog.setTabOrder(self.spinBoxNoPnID, self.spinBoxMinArea) |
|
230 |
ProjectInfoDialog.setTabOrder(self.spinBoxMinArea, self.spinBoxMaxArea) |
|
231 |
ProjectInfoDialog.setTabOrder(self.spinBoxMaxArea, self.spinBoxWidth) |
|
232 |
ProjectInfoDialog.setTabOrder(self.spinBoxWidth, self.spinBoxHeight) |
|
233 |
ProjectInfoDialog.setTabOrder(self.spinBoxHeight, self.smallLineMinLengthSpinBox) |
|
234 |
ProjectInfoDialog.setTabOrder(self.smallLineMinLengthSpinBox, self.spinBoxLengthToConnectLine) |
|
235 |
ProjectInfoDialog.setTabOrder(self.spinBoxLengthToConnectLine, self.comboBoxLineType) |
|
236 |
ProjectInfoDialog.setTabOrder(self.comboBoxLineType, self.radioButtonDiagonalYes) |
|
237 |
ProjectInfoDialog.setTabOrder(self.radioButtonDiagonalYes, self.radioButtonDiagonalNo) |
|
238 |
ProjectInfoDialog.setTabOrder(self.radioButtonDiagonalNo, self.tabWidget) |
|
239 |
|
|
240 |
def retranslateUi(self, ProjectInfoDialog): |
|
241 |
_translate = QtCore.QCoreApplication.translate |
|
242 |
ProjectInfoDialog.setWindowTitle(_translate("ProjectInfoDialog", "Project Information")) |
|
243 |
self.groupBoxText.setTitle(_translate("ProjectInfoDialog", "General")) |
|
244 |
self.label_2.setText(_translate("ProjectInfoDialog", "Total number of Instrument : ")) |
|
245 |
self.label_22.setText(_translate("ProjectInfoDialog", "Number of P&IDs : ")) |
|
246 |
self.label_44.setText(_translate("ProjectInfoDialog", "Total number of Equipment : ")) |
|
247 |
self.label_19.setText(_translate("ProjectInfoDialog", "Project Name : ")) |
|
248 |
self.label_3.setText(_translate("ProjectInfoDialog", "Total number of Line : ")) |
|
249 |
self.label_20.setText(_translate("ProjectInfoDialog", "Contractor : ")) |
|
250 |
self.label_43.setText(_translate("ProjectInfoDialog", "Main Process Description : ")) |
|
251 |
self.label_7.setText(_translate("ProjectInfoDialog", "Description : ")) |
|
252 |
self.label_37.setText(_translate("ProjectInfoDialog", "Project Duration : ")) |
|
253 |
self.label_39.setText(_translate("ProjectInfoDialog", "Project Type : ")) |
|
254 |
self.label_17.setText(_translate("ProjectInfoDialog", "Licensor : ")) |
|
255 |
self.label_50.setText(_translate("ProjectInfoDialog", "Owner : ")) |
|
256 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Recognition), _translate("ProjectInfoDialog", "Recognition")) |
|
257 |
self.groupBox.setTitle(_translate("ProjectInfoDialog", "Line Detection")) |
|
258 |
self.label_45.setText(_translate("ProjectInfoDialog", "Detect Without Symbol : ")) |
|
259 |
self.radioButtonGapYes.setText(_translate("ProjectInfoDialog", "Yes")) |
|
260 |
self.label_4.setText(_translate("ProjectInfoDialog", "Ignore Small Object Size : ")) |
|
261 |
self.label.setText(_translate("ProjectInfoDialog", "Sliding Window Size(WxH) : ")) |
|
262 |
self.label_35.setText(_translate("ProjectInfoDialog", "Diagonal Detection : ")) |
|
263 |
self.radioButtonDiagonalYes.setText(_translate("ProjectInfoDialog", "Yes")) |
|
264 |
self.label_5.setText(_translate("ProjectInfoDialog", "< Area < ")) |
|
265 |
self.label_16.setText(_translate("ProjectInfoDialog", "Line Minimum Length : ")) |
|
266 |
self.label_28.setText(_translate("ProjectInfoDialog", "Default Line Type : ")) |
|
267 |
self.radioButtonDiagonalNo.setText(_translate("ProjectInfoDialog", "No")) |
|
268 |
self.label_9.setText(_translate("ProjectInfoDialog", "Length to Connect Line : ")) |
|
269 |
self.radioButtonGapNo.setText(_translate("ProjectInfoDialog", "No")) |
|
270 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Recognition2), _translate("ProjectInfoDialog", "Recognition")) |
|
271 |
import MainWindow_rc |
|
272 |
|
|
273 |
|
|
274 |
if __name__ == "__main__": |
|
275 |
import sys |
|
276 |
app = QtWidgets.QApplication(sys.argv) |
|
277 |
ProjectInfoDialog = QtWidgets.QDialog() |
|
278 |
ui = Ui_ProjectInfoDialog() |
|
279 |
ui.setupUi(ProjectInfoDialog) |
|
280 |
ProjectInfoDialog.show() |
|
281 |
sys.exit(app.exec_()) |
DTI_PID/DTI_PID/UI/Data.ui | ||
---|---|---|
6 | 6 |
<rect> |
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 |
<width>873</width>
|
|
9 |
<width>914</width>
|
|
10 | 10 |
<height>70</height> |
11 | 11 |
</rect> |
12 | 12 |
</property> |
... | ... | |
34 | 34 |
<property name="spacing"> |
35 | 35 |
<number>0</number> |
36 | 36 |
</property> |
37 |
<item row="0" column="1"> |
|
38 |
<widget class="QToolButton" name="toolButtonEngInfoList"> |
|
37 |
<item row="0" column="15"> |
|
38 |
<widget class="Line" name="line_4"> |
|
39 |
<property name="orientation"> |
|
40 |
<enum>Qt::Vertical</enum> |
|
41 |
</property> |
|
42 |
</widget> |
|
43 |
</item> |
|
44 |
<item row="0" column="11"> |
|
45 |
<widget class="QToolButton" name="toolButtonReplaceCodeTable"> |
|
39 | 46 |
<property name="text"> |
40 |
<string>Engineering Info.
|
|
41 |
List</string>
|
|
47 |
<string>Replace
|
|
48 |
Code Table</string>
|
|
42 | 49 |
</property> |
43 | 50 |
<property name="icon"> |
44 | 51 |
<iconset resource="../res/MainWindow.qrc"> |
45 |
<normaloff>:/newPrefix/EngineeringInfoList.svg</normaloff>:/newPrefix/EngineeringInfoList.svg</iconset>
|
|
52 |
<normaloff>:/newPrefix/table_32px.svg</normaloff>:/newPrefix/table_32px.svg</iconset>
|
|
46 | 53 |
</property> |
47 | 54 |
<property name="iconSize"> |
48 | 55 |
<size> |
... | ... | |
58 | 65 |
</property> |
59 | 66 |
</widget> |
60 | 67 |
</item> |
61 |
<item row="0" column="3"> |
|
62 |
<widget class="Line" name="line"> |
|
63 |
<property name="orientation"> |
|
64 |
<enum>Qt::Vertical</enum> |
|
68 |
<item row="0" column="16"> |
|
69 |
<widget class="QToolButton" name="toolButtonOCRTraining"> |
|
70 |
<property name="text"> |
|
71 |
<string>OCR |
|
72 |
Training</string> |
|
73 |
</property> |
|
74 |
<property name="icon"> |
|
75 |
<iconset resource="../res/MainWindow.qrc"> |
|
76 |
<normaloff>:/newPrefix/OCR.svg</normaloff>:/newPrefix/OCR.svg</iconset> |
|
77 |
</property> |
|
78 |
<property name="iconSize"> |
|
79 |
<size> |
|
80 |
<width>32</width> |
|
81 |
<height>32</height> |
|
82 |
</size> |
|
83 |
</property> |
|
84 |
<property name="toolButtonStyle"> |
|
85 |
<enum>Qt::ToolButtonTextUnderIcon</enum> |
|
86 |
</property> |
|
87 |
<property name="autoRaise"> |
|
88 |
<bool>true</bool> |
|
65 | 89 |
</property> |
66 | 90 |
</widget> |
67 | 91 |
</item> |
68 |
<item row="0" column="9">
|
|
69 |
<widget class="QToolButton" name="toolButtonReplaceCodeTable">
|
|
92 |
<item row="0" column="10">
|
|
93 |
<widget class="QToolButton" name="toolButtonCustomCodeTable">
|
|
70 | 94 |
<property name="text"> |
71 |
<string>Replace
|
|
95 |
<string>Custom
|
|
72 | 96 |
Code Table</string> |
73 | 97 |
</property> |
74 | 98 |
<property name="icon"> |
... | ... | |
89 | 113 |
</property> |
90 | 114 |
</widget> |
91 | 115 |
</item> |
92 |
<item row="0" column="15">
|
|
116 |
<item row="0" column="17">
|
|
93 | 117 |
<widget class="QToolButton" name="toolButtonSymbolTraining"> |
94 | 118 |
<property name="text"> |
95 | 119 |
<string>Symbol |
... | ... | |
113 | 137 |
</property> |
114 | 138 |
</widget> |
115 | 139 |
</item> |
116 |
<item row="0" column="14">
|
|
117 |
<widget class="QToolButton" name="toolButtonOCRTraining">
|
|
140 |
<item row="0" column="9">
|
|
141 |
<widget class="QToolButton" name="toolButtonCodeTable">
|
|
118 | 142 |
<property name="text"> |
119 |
<string>OCR
|
|
120 |
Training</string>
|
|
143 |
<string>Code Table
|
|
144 |
</string> |
|
121 | 145 |
</property> |
122 | 146 |
<property name="icon"> |
123 | 147 |
<iconset resource="../res/MainWindow.qrc"> |
124 |
<normaloff>:/newPrefix/OCR.svg</normaloff>:/newPrefix/OCR.svg</iconset>
|
|
148 |
<normaloff>:/newPrefix/table_32px.svg</normaloff>:/newPrefix/table_32px.svg</iconset>
|
|
125 | 149 |
</property> |
126 | 150 |
<property name="iconSize"> |
127 | 151 |
<size> |
... | ... | |
137 | 161 |
</property> |
138 | 162 |
</widget> |
139 | 163 |
</item> |
140 |
<item row="0" column="11"> |
|
164 |
<item row="0" column="5"> |
|
165 |
<widget class="Line" name="line"> |
|
166 |
<property name="orientation"> |
|
167 |
<enum>Qt::Vertical</enum> |
|
168 |
</property> |
|
169 |
</widget> |
|
170 |
</item> |
|
171 |
<item row="0" column="13"> |
|
141 | 172 |
<widget class="Line" name="line_3"> |
142 | 173 |
<property name="orientation"> |
143 | 174 |
<enum>Qt::Vertical</enum> |
144 | 175 |
</property> |
145 | 176 |
</widget> |
146 | 177 |
</item> |
147 |
<item row="0" column="2">
|
|
148 |
<widget class="QToolButton" name="toolButtonLineList">
|
|
178 |
<item row="0" column="14">
|
|
179 |
<widget class="QToolButton" name="toolButtonGlobalValidation">
|
|
149 | 180 |
<property name="text"> |
150 |
<string>Line List
|
|
151 |
</string> |
|
181 |
<string>Global
|
|
182 |
Validation</string>
|
|
152 | 183 |
</property> |
153 | 184 |
<property name="icon"> |
154 | 185 |
<iconset resource="../res/MainWindow.qrc"> |
155 |
<normaloff>:/newPrefix/EngineeringInfoList.svg</normaloff>:/newPrefix/EngineeringInfoList.svg</iconset>
|
|
186 |
<normaloff>:/newPrefix/Validation.svg</normaloff>:/newPrefix/Validation.svg</iconset>
|
|
156 | 187 |
</property> |
157 | 188 |
<property name="iconSize"> |
158 | 189 |
<size> |
... | ... | |
168 | 199 |
</property> |
169 | 200 |
</widget> |
170 | 201 |
</item> |
171 |
<item row="0" column="12">
|
|
172 |
<widget class="QToolButton" name="toolButtonGlobalValidation">
|
|
202 |
<item row="0" column="7">
|
|
203 |
<widget class="QToolButton" name="toolButtonOPCRelation">
|
|
173 | 204 |
<property name="text"> |
174 |
<string>Global
|
|
175 |
Validation</string>
|
|
205 |
<string>OPC
|
|
206 |
</string> |
|
176 | 207 |
</property> |
177 | 208 |
<property name="icon"> |
178 | 209 |
<iconset resource="../res/MainWindow.qrc"> |
179 |
<normaloff>:/newPrefix/Validation.svg</normaloff>:/newPrefix/Validation.svg</iconset>
|
|
210 |
<normaloff>:/newPrefix/OPC.svg</normaloff>:/newPrefix/OPC.svg</iconset>
|
|
180 | 211 |
</property> |
181 | 212 |
<property name="iconSize"> |
182 | 213 |
<size> |
... | ... | |
193 | 224 |
</widget> |
194 | 225 |
</item> |
195 | 226 |
<item row="0" column="6"> |
196 |
<widget class="Line" name="line_2"> |
|
197 |
<property name="orientation"> |
|
198 |
<enum>Qt::Vertical</enum> |
|
199 |
</property> |
|
200 |
</widget> |
|
201 |
</item> |
|
202 |
<item row="0" column="16"> |
|
203 |
<widget class="QToolButton" name="toolButtonMakeLabelData"> |
|
227 |
<widget class="QToolButton" name="toolButtonSpecialItemTypes"> |
|
204 | 228 |
<property name="text"> |
205 |
<string>Make
|
|
206 |
Label Data</string>
|
|
229 |
<string>Special Item
|
|
230 |
</string> |
|
207 | 231 |
</property> |
208 | 232 |
<property name="icon"> |
209 | 233 |
<iconset resource="../res/MainWindow.qrc"> |
210 |
<normaloff>:/newPrefix/Training.svg</normaloff>:/newPrefix/Training.svg</iconset>
|
|
234 |
<normaloff>:/newPrefix/Special.svg</normaloff>:/newPrefix/Special.svg</iconset>
|
|
211 | 235 |
</property> |
212 | 236 |
<property name="iconSize"> |
213 | 237 |
<size> |
... | ... | |
223 | 247 |
</property> |
224 | 248 |
</widget> |
225 | 249 |
</item> |
226 |
<item row="0" column="5">
|
|
227 |
<widget class="QToolButton" name="toolButtonOPCRelation">
|
|
250 |
<item row="0" column="1">
|
|
251 |
<widget class="QToolButton" name="toolButtonHMBData">
|
|
228 | 252 |
<property name="text"> |
229 |
<string>OPC
|
|
253 |
<string>HMB
|
|
230 | 254 |
</string> |
231 | 255 |
</property> |
232 | 256 |
<property name="icon"> |
233 | 257 |
<iconset resource="../res/MainWindow.qrc"> |
234 |
<normaloff>:/newPrefix/OPC.svg</normaloff>:/newPrefix/OPC.svg</iconset>
|
|
258 |
<normaloff>:/newPrefix/Database.svg</normaloff>:/newPrefix/Database.svg</iconset>
|
|
235 | 259 |
</property> |
236 | 260 |
<property name="iconSize"> |
237 | 261 |
<size> |
... | ... | |
247 | 271 |
</property> |
248 | 272 |
</widget> |
249 | 273 |
</item> |
250 |
<item row="0" column="4">
|
|
251 |
<widget class="QToolButton" name="toolButtonSpecialItemTypes">
|
|
274 |
<item row="0" column="3">
|
|
275 |
<widget class="QToolButton" name="toolButtonEngInfoList">
|
|
252 | 276 |
<property name="text"> |
253 |
<string>Special Item
|
|
254 |
</string> |
|
277 |
<string>Engineering
|
|
278 |
List</string>
|
|
255 | 279 |
</property> |
256 | 280 |
<property name="icon"> |
257 | 281 |
<iconset resource="../res/MainWindow.qrc"> |
258 |
<normaloff>:/newPrefix/Special.svg</normaloff>:/newPrefix/Special.svg</iconset>
|
|
282 |
<normaloff>:/newPrefix/EngineeringInfoList.svg</normaloff>:/newPrefix/EngineeringInfoList.svg</iconset>
|
|
259 | 283 |
</property> |
260 | 284 |
<property name="iconSize"> |
261 | 285 |
<size> |
... | ... | |
271 | 295 |
</property> |
272 | 296 |
</widget> |
273 | 297 |
</item> |
274 |
<item row="0" column="0">
|
|
275 |
<widget class="QToolButton" name="toolButtonHMBData">
|
|
298 |
<item row="0" column="4">
|
|
299 |
<widget class="QToolButton" name="toolButtonLineList">
|
|
276 | 300 |
<property name="text"> |
277 |
<string>HMB
|
|
301 |
<string>Line List
|
|
278 | 302 |
</string> |
279 | 303 |
</property> |
280 | 304 |
<property name="icon"> |
281 | 305 |
<iconset resource="../res/MainWindow.qrc"> |
282 |
<normaloff>:/newPrefix/Database.svg</normaloff>:/newPrefix/Database.svg</iconset>
|
|
306 |
<normaloff>:/newPrefix/EngineeringInfoList.svg</normaloff>:/newPrefix/EngineeringInfoList.svg</iconset>
|
|
283 | 307 |
</property> |
284 | 308 |
<property name="iconSize"> |
285 | 309 |
<size> |
... | ... | |
295 | 319 |
</property> |
296 | 320 |
</widget> |
297 | 321 |
</item> |
298 |
<item row="0" column="7"> |
|
299 |
<widget class="QToolButton" name="toolButtonCodeTable"> |
|
322 |
<item row="0" column="8"> |
|
323 |
<widget class="Line" name="line_2"> |
|
324 |
<property name="orientation"> |
|
325 |
<enum>Qt::Vertical</enum> |
|
326 |
</property> |
|
327 |
</widget> |
|
328 |
</item> |
|
329 |
<item row="0" column="18"> |
|
330 |
<widget class="QToolButton" name="toolButtonMakeLabelData"> |
|
300 | 331 |
<property name="text"> |
301 |
<string>Code Table
|
|
302 |
</string> |
|
332 |
<string>Make
|
|
333 |
Label Data</string>
|
|
303 | 334 |
</property> |
304 | 335 |
<property name="icon"> |
305 | 336 |
<iconset resource="../res/MainWindow.qrc"> |
306 |
<normaloff>:/newPrefix/table_32px.svg</normaloff>:/newPrefix/table_32px.svg</iconset>
|
|
337 |
<normaloff>:/newPrefix/Training.svg</normaloff>:/newPrefix/Training.svg</iconset>
|
|
307 | 338 |
</property> |
308 | 339 |
<property name="iconSize"> |
309 | 340 |
<size> |
... | ... | |
319 | 350 |
</property> |
320 | 351 |
</widget> |
321 | 352 |
</item> |
322 |
<item row="0" column="13"> |
|
323 |
<widget class="Line" name="line_4"> |
|
324 |
<property name="orientation"> |
|
325 |
<enum>Qt::Vertical</enum> |
|
326 |
</property> |
|
327 |
</widget> |
|
328 |
</item> |
|
329 |
<item row="0" column="8"> |
|
330 |
<widget class="QToolButton" name="toolButtonCustomCodeTable"> |
|
353 |
<item row="0" column="0"> |
|
354 |
<widget class="QToolButton" name="toolButtonProjectInfo"> |
|
331 | 355 |
<property name="text"> |
332 |
<string>Custom
|
|
333 |
Code Table</string>
|
|
356 |
<string>Project
|
|
357 |
Information</string>
|
|
334 | 358 |
</property> |
335 | 359 |
<property name="icon"> |
336 | 360 |
<iconset resource="../res/MainWindow.qrc"> |
337 |
<normaloff>:/newPrefix/table_32px.svg</normaloff>:/newPrefix/table_32px.svg</iconset>
|
|
361 |
<normaloff>:/newPrefix/text_list_32px.svg</normaloff>:/newPrefix/text_list_32px.svg</iconset>
|
|
338 | 362 |
</property> |
339 | 363 |
<property name="iconSize"> |
340 | 364 |
<size> |
... | ... | |
350 | 374 |
</property> |
351 | 375 |
</widget> |
352 | 376 |
</item> |
377 |
<item row="0" column="2"> |
|
378 |
<widget class="Line" name="line_5"> |
|
379 |
<property name="orientation"> |
|
380 |
<enum>Qt::Vertical</enum> |
|
381 |
</property> |
|
382 |
</widget> |
|
383 |
</item> |
|
353 | 384 |
</layout> |
354 | 385 |
</item> |
355 | 386 |
</layout> |
DTI_PID/DTI_PID/UI/ProjectInfo.ui | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<ui version="4.0"> |
|
3 |
<class>ProjectInfoDialog</class> |
|
4 |
<widget class="QDialog" name="ProjectInfoDialog"> |
|
5 |
<property name="geometry"> |
|
6 |
<rect> |
|
7 |
<x>0</x> |
|
8 |
<y>0</y> |
|
9 |
<width>768</width> |
|
10 |
<height>485</height> |
|
11 |
</rect> |
|
12 |
</property> |
|
13 |
<property name="font"> |
|
14 |
<font> |
|
15 |
<family>맑은 고딕</family> |
|
16 |
</font> |
|
17 |
</property> |
|
18 |
<property name="windowTitle"> |
|
19 |
<string>Project Information</string> |
|
20 |
</property> |
|
21 |
<property name="windowIcon"> |
|
22 |
<iconset resource="../res/MainWindow.qrc"> |
|
23 |
<normaloff>:/newPrefix/setting.png</normaloff>:/newPrefix/setting.png</iconset> |
|
24 |
</property> |
|
25 |
<property name="modal"> |
|
26 |
<bool>true</bool> |
|
27 |
</property> |
|
28 |
<layout class="QGridLayout" name="gridLayout"> |
|
29 |
<item row="4" column="0"> |
|
30 |
<widget class="QDialogButtonBox" name="buttonBox"> |
|
31 |
<property name="orientation"> |
|
32 |
<enum>Qt::Horizontal</enum> |
|
33 |
</property> |
|
34 |
<property name="standardButtons"> |
|
35 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
|
36 |
</property> |
|
37 |
</widget> |
|
38 |
</item> |
|
39 |
<item row="0" column="0"> |
|
40 |
<widget class="QTabWidget" name="tabWidget"> |
|
41 |
<property name="currentIndex"> |
|
42 |
<number>0</number> |
|
43 |
</property> |
|
44 |
<widget class="QWidget" name="Recognition"> |
|
45 |
<attribute name="title"> |
|
46 |
<string>Recognition</string> |
|
47 |
</attribute> |
|
48 |
<layout class="QGridLayout" name="gridLayout_2"> |
|
49 |
<item row="0" column="1"> |
|
50 |
<widget class="QGroupBox" name="groupBoxText"> |
|
51 |
<property name="title"> |
|
52 |
<string>General</string> |
|
53 |
</property> |
|
54 |
<layout class="QGridLayout" name="gridLayout_14"> |
|
55 |
<item row="0" column="0"> |
|
56 |
<layout class="QGridLayout" name="gridLayout_25"> |
|
57 |
<item row="10" column="0"> |
|
58 |
<widget class="QLabel" name="label_2"> |
|
59 |
<property name="text"> |
|
60 |
<string>Total number of Instrument : </string> |
|
61 |
</property> |
|
62 |
</widget> |
|
63 |
</item> |
|
64 |
<item row="2" column="1" colspan="2"> |
|
65 |
<widget class="QLineEdit" name="lineEditProjectType"/> |
|
66 |
</item> |
|
67 |
<item row="8" column="1"> |
|
68 |
<widget class="QSpinBox" name="spinBoxNoPnID"> |
|
69 |
<property name="minimumSize"> |
|
70 |
<size> |
|
71 |
<width>100</width> |
|
72 |
<height>0</height> |
|
73 |
</size> |
|
74 |
</property> |
|
75 |
</widget> |
|
76 |
</item> |
|
77 |
<item row="8" column="0"> |
|
78 |
<widget class="QLabel" name="label_22"> |
|
79 |
<property name="text"> |
|
80 |
<string>Number of P&IDs : </string> |
|
81 |
</property> |
|
82 |
</widget> |
|
83 |
</item> |
|
84 |
<item row="9" column="0"> |
|
85 |
<widget class="QLabel" name="label_44"> |
|
86 |
<property name="text"> |
|
87 |
<string>Total number of Equipment : </string> |
|
88 |
</property> |
|
89 |
</widget> |
|
90 |
</item> |
|
91 |
<item row="0" column="0"> |
|
92 |
<widget class="QLabel" name="label_19"> |
|
93 |
<property name="text"> |
|
94 |
<string>Project Name : </string> |
|
95 |
</property> |
|
96 |
</widget> |
|
97 |
</item> |
|
98 |
<item row="3" column="1" colspan="2"> |
|
99 |
<widget class="QLineEdit" name="lineEditProjectMainProcessDesc"/> |
|
100 |
</item> |
|
101 |
<item row="11" column="0"> |
|
102 |
<widget class="QLabel" name="label_3"> |
|
103 |
<property name="text"> |
|
104 |
<string>Total number of Line : </string> |
|
105 |
</property> |
|
106 |
</widget> |
|
107 |
</item> |
|
108 |
<item row="6" column="0"> |
|
109 |
<widget class="QLabel" name="label_20"> |
|
110 |
<property name="text"> |
|
111 |
<string>Contractor : </string> |
|
112 |
</property> |
|
113 |
</widget> |
|
114 |
</item> |
|
115 |
<item row="3" column="0"> |
|
116 |
<widget class="QLabel" name="label_43"> |
|
117 |
<property name="text"> |
|
118 |
<string>Main Process Description : </string> |
|
119 |
</property> |
|
120 |
</widget> |
|
121 |
</item> |
|
122 |
<item row="1" column="1" colspan="2"> |
|
123 |
<widget class="QLineEdit" name="lineEditProjectDesc"> |
|
124 |
<property name="font"> |
|
125 |
<font> |
|
126 |
<family>Consolas</family> |
|
127 |
</font> |
|
128 |
</property> |
|
129 |
</widget> |
|
130 |
</item> |
|
131 |
<item row="9" column="1"> |
|
132 |
<widget class="QSpinBox" name="spinBoxNoEquipment"> |
|
133 |
<property name="maximum"> |
|
134 |
<number>99999</number> |
|
135 |
</property> |
|
136 |
</widget> |
|
137 |
</item> |
|
138 |
<item row="1" column="0"> |
|
139 |
<widget class="QLabel" name="label_7"> |
|
140 |
<property name="text"> |
|
141 |
<string>Description : </string> |
|
142 |
</property> |
|
143 |
</widget> |
|
144 |
</item> |
|
145 |
<item row="4" column="0"> |
|
146 |
<widget class="QLabel" name="label_37"> |
|
147 |
<property name="text"> |
|
148 |
<string>Project Duration : </string> |
|
149 |
</property> |
|
150 |
</widget> |
|
151 |
</item> |
|
152 |
<item row="2" column="0"> |
|
153 |
<widget class="QLabel" name="label_39"> |
|
154 |
<property name="text"> |
|
155 |
<string>Project Type : </string> |
|
156 |
</property> |
|
157 |
</widget> |
|
158 |
</item> |
|
159 |
<item row="0" column="1" colspan="2"> |
|
160 |
<widget class="QLineEdit" name="lineEditProjectName"/> |
|
161 |
</item> |
|
162 |
<item row="5" column="1" colspan="2"> |
|
163 |
<widget class="QLineEdit" name="lineEditProjectOwner"> |
|
164 |
<property name="font"> |
|
165 |
<font> |
|
166 |
<family>Consolas</family> |
|
167 |
</font> |
|
168 |
</property> |
|
169 |
</widget> |
|
170 |
</item> |
|
171 |
<item row="7" column="0"> |
|
172 |
<widget class="QLabel" name="label_17"> |
|
173 |
<property name="text"> |
|
174 |
<string>Licensor : </string> |
|
175 |
</property> |
|
176 |
</widget> |
|
177 |
</item> |
|
178 |
<item row="5" column="0"> |
|
179 |
<widget class="QLabel" name="label_50"> |
|
180 |
<property name="text"> |
|
181 |
<string>Owner : </string> |
|
182 |
</property> |
|
183 |
</widget> |
|
184 |
</item> |
|
185 |
<item row="4" column="1" colspan="2"> |
|
186 |
<widget class="QLineEdit" name="lineEditProjectDuration"> |
|
187 |
<property name="font"> |
|
188 |
<font> |
|
189 |
<family>Consolas</family> |
|
190 |
</font> |
|
191 |
</property> |
|
192 |
</widget> |
|
193 |
</item> |
|
194 |
<item row="7" column="1"> |
|
195 |
<widget class="QLineEdit" name="lineEditProjectLicensor"/> |
|
196 |
</item> |
|
197 |
<item row="6" column="1" colspan="2"> |
|
198 |
<widget class="QLineEdit" name="lineEditProjectContractor"/> |
|
199 |
</item> |
|
200 |
<item row="10" column="1"> |
|
201 |
<widget class="QSpinBox" name="spinBoxNoInstrument"> |
|
202 |
<property name="maximum"> |
|
203 |
<number>99999</number> |
|
204 |
</property> |
|
205 |
</widget> |
|
206 |
</item> |
|
207 |
<item row="11" column="1"> |
|
208 |
<widget class="QSpinBox" name="spinBoxNoLine"> |
|
209 |
<property name="maximum"> |
|
210 |
<number>99999</number> |
|
211 |
</property> |
|
212 |
</widget> |
|
213 |
</item> |
|
214 |
</layout> |
|
215 |
</item> |
|
216 |
</layout> |
|
217 |
</widget> |
|
218 |
</item> |
|
219 |
</layout> |
|
220 |
</widget> |
|
221 |
<widget class="QWidget" name="Recognition2"> |
|
222 |
<attribute name="title"> |
|
223 |
<string>Recognition</string> |
|
224 |
</attribute> |
|
225 |
<layout class="QGridLayout" name="gridLayout_2"> |
|
226 |
<item row="0" column="1"> |
|
227 |
<widget class="QGroupBox" name="groupBox"> |
|
228 |
<property name="title"> |
|
229 |
<string>Line Detection</string> |
|
230 |
</property> |
|
231 |
<layout class="QGridLayout" name="gridLayout_5"> |
|
232 |
<item row="0" column="0"> |
|
233 |
<layout class="QGridLayout" name="gridLayout_11"> |
|
234 |
<item row="5" column="0"> |
|
235 |
<widget class="QLabel" name="label_45"> |
|
236 |
<property name="text"> |
|
237 |
<string>Detect Without Symbol : </string> |
|
238 |
</property> |
|
239 |
</widget> |
|
240 |
</item> |
|
241 |
<item row="5" column="1"> |
|
242 |
<widget class="QRadioButton" name="radioButtonGapYes"> |
|
243 |
<property name="text"> |
|
244 |
<string>Yes</string> |
|
245 |
</property> |
|
246 |
<attribute name="buttonGroup"> |
|
247 |
<string notr="true">buttonGroup_5</string> |
|
248 |
</attribute> |
|
249 |
</widget> |
|
250 |
</item> |
|
251 |
<item row="4" column="1" colspan="2"> |
|
252 |
<widget class="QComboBox" name="comboBoxLineType"/> |
|
253 |
</item> |
|
254 |
<item row="0" column="0"> |
|
255 |
<widget class="QLabel" name="label_4"> |
|
256 |
<property name="text"> |
|
257 |
<string>Ignore Small Object Size : </string> |
|
258 |
</property> |
|
259 |
</widget> |
|
260 |
</item> |
|
261 |
<item row="3" column="1"> |
|
262 |
<widget class="QSpinBox" name="spinBoxLengthToConnectLine"> |
|
263 |
<property name="value"> |
|
264 |
<number>20</number> |
|
265 |
</property> |
|
266 |
</widget> |
|
267 |
</item> |
|
268 |
<item row="1" column="0"> |
|
269 |
<widget class="QLabel" name="label"> |
|
270 |
<property name="text"> |
|
271 |
<string>Sliding Window Size(WxH) : </string> |
|
272 |
</property> |
|
273 |
<property name="alignment"> |
|
274 |
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
|
275 |
</property> |
|
276 |
</widget> |
|
277 |
</item> |
|
278 |
<item row="1" column="1"> |
|
279 |
<widget class="QSpinBox" name="spinBoxWidth"> |
|
280 |
<property name="minimumSize"> |
|
281 |
<size> |
|
282 |
<width>100</width> |
|
283 |
<height>0</height> |
|
284 |
</size> |
|
285 |
</property> |
|
286 |
</widget> |
|
287 |
</item> |
|
288 |
<item row="2" column="1"> |
|
289 |
<widget class="QSpinBox" name="smallLineMinLengthSpinBox"> |
|
290 |
<property name="minimumSize"> |
|
291 |
<size> |
|
292 |
<width>100</width> |
|
293 |
<height>0</height> |
|
294 |
</size> |
|
295 |
</property> |
|
296 |
</widget> |
|
297 |
</item> |
|
298 |
<item row="6" column="0"> |
|
299 |
<widget class="QLabel" name="label_35"> |
|
300 |
<property name="text"> |
|
301 |
<string>Diagonal Detection : </string> |
|
302 |
</property> |
|
303 |
</widget> |
|
304 |
</item> |
|
305 |
<item row="6" column="1"> |
|
306 |
<widget class="QRadioButton" name="radioButtonDiagonalYes"> |
|
307 |
<property name="text"> |
|
308 |
<string>Yes</string> |
|
309 |
</property> |
|
310 |
<attribute name="buttonGroup"> |
|
311 |
<string notr="true">buttonGroup_3</string> |
|
312 |
</attribute> |
|
313 |
</widget> |
|
314 |
</item> |
|
315 |
<item row="0" column="2"> |
|
316 |
<widget class="QLabel" name="label_5"> |
|
317 |
<property name="text"> |
|
318 |
<string>< Area < </string> |
|
319 |
</property> |
|
320 |
<property name="alignment"> |
|
321 |
<set>Qt::AlignCenter</set> |
|
322 |
</property> |
|
323 |
</widget> |
|
324 |
</item> |
|
325 |
<item row="2" column="0"> |
|
326 |
<widget class="QLabel" name="label_16"> |
|
327 |
<property name="text"> |
|
328 |
<string>Line Minimum Length : </string> |
|
329 |
</property> |
|
330 |
</widget> |
|
331 |
</item> |
|
332 |
<item row="0" column="3"> |
|
333 |
<widget class="QSpinBox" name="spinBoxMaxArea"> |
|
334 |
<property name="minimumSize"> |
|
335 |
<size> |
|
336 |
<width>100</width> |
|
337 |
<height>0</height> |
|
338 |
</size> |
|
339 |
</property> |
|
340 |
</widget> |
|
341 |
</item> |
|
342 |
<item row="4" column="0"> |
|
343 |
<widget class="QLabel" name="label_28"> |
|
344 |
<property name="text"> |
|
345 |
<string>Default Line Type : </string> |
|
346 |
</property> |
|
347 |
</widget> |
|
348 |
</item> |
|
349 |
<item row="1" column="2"> |
|
350 |
<widget class="QSpinBox" name="spinBoxHeight"> |
|
351 |
<property name="minimumSize"> |
|
352 |
<size> |
|
353 |
<width>100</width> |
|
354 |
<height>0</height> |
|
355 |
</size> |
|
356 |
</property> |
|
357 |
</widget> |
|
358 |
</item> |
|
359 |
<item row="0" column="1"> |
|
360 |
<widget class="QSpinBox" name="spinBoxMinArea"> |
|
361 |
<property name="minimumSize"> |
|
362 |
<size> |
|
363 |
<width>100</width> |
|
364 |
<height>0</height> |
|
365 |
</size> |
|
366 |
</property> |
|
367 |
</widget> |
|
368 |
</item> |
|
369 |
<item row="6" column="2"> |
|
370 |
<widget class="QRadioButton" name="radioButtonDiagonalNo"> |
|
371 |
<property name="text"> |
|
372 |
<string>No</string> |
|
373 |
</property> |
|
374 |
<attribute name="buttonGroup"> |
|
375 |
<string notr="true">buttonGroup_3</string> |
|
376 |
</attribute> |
|
377 |
</widget> |
|
378 |
</item> |
|
379 |
<item row="0" column="4"> |
|
380 |
<spacer name="horizontalSpacer_2"> |
|
381 |
<property name="orientation"> |
|
382 |
<enum>Qt::Horizontal</enum> |
|
383 |
</property> |
|
384 |
<property name="sizeHint" stdset="0"> |
|
385 |
<size> |
|
386 |
<width>40</width> |
|
387 |
<height>20</height> |
|
388 |
</size> |
|
389 |
</property> |
|
390 |
</spacer> |
|
391 |
</item> |
|
392 |
<item row="3" column="0"> |
|
393 |
<widget class="QLabel" name="label_9"> |
|
394 |
<property name="text"> |
|
395 |
<string>Length to Connect Line : </string> |
|
396 |
</property> |
|
397 |
</widget> |
|
398 |
</item> |
|
399 |
<item row="5" column="2"> |
|
400 |
<widget class="QRadioButton" name="radioButtonGapNo"> |
|
401 |
<property name="text"> |
|
402 |
<string>No</string> |
|
403 |
</property> |
|
404 |
<attribute name="buttonGroup"> |
|
405 |
<string notr="true">buttonGroup_5</string> |
|
406 |
</attribute> |
|
407 |
</widget> |
|
408 |
</item> |
|
409 |
</layout> |
|
410 |
</item> |
|
411 |
</layout> |
|
412 |
</widget> |
|
413 |
</item> |
|
414 |
</layout> |
|
415 |
</widget> |
|
416 |
</widget> |
|
417 |
</item> |
|
418 |
</layout> |
|
419 |
</widget> |
|
420 |
<tabstops> |
|
421 |
<tabstop>lineEditProjectDesc</tabstop> |
|
422 |
<tabstop>lineEditProjectDuration</tabstop> |
|
423 |
<tabstop>spinBoxNoPnID</tabstop> |
|
424 |
<tabstop>spinBoxMinArea</tabstop> |
|
425 |
<tabstop>spinBoxMaxArea</tabstop> |
|
426 |
<tabstop>spinBoxWidth</tabstop> |
|
427 |
<tabstop>spinBoxHeight</tabstop> |
|
428 |
<tabstop>smallLineMinLengthSpinBox</tabstop> |
|
429 |
<tabstop>spinBoxLengthToConnectLine</tabstop> |
|
430 |
<tabstop>comboBoxLineType</tabstop> |
|
431 |
<tabstop>radioButtonDiagonalYes</tabstop> |
|
432 |
<tabstop>radioButtonDiagonalNo</tabstop> |
|
433 |
<tabstop>tabWidget</tabstop> |
|
434 |
</tabstops> |
|
435 |
<resources> |
|
436 |
<include location="../res/MainWindow.qrc"/> |
|
437 |
</resources> |
|
438 |
<connections> |
|
439 |
<connection> |
|
440 |
<sender>buttonBox</sender> |
|
441 |
<signal>accepted()</signal> |
|
442 |
<receiver>ProjectInfoDialog</receiver> |
|
443 |
<slot>accept()</slot> |
|
444 |
<hints> |
|
445 |
<hint type="sourcelabel"> |
|
446 |
<x>257</x> |
|
447 |
<y>454</y> |
|
448 |
</hint> |
|
449 |
<hint type="destinationlabel"> |
|
450 |
<x>157</x> |
|
451 |
<y>274</y> |
|
452 |
</hint> |
|
453 |
</hints> |
|
454 |
</connection> |
|
455 |
<connection> |
|
456 |
<sender>buttonBox</sender> |
|
457 |
<signal>rejected()</signal> |
|
458 |
<receiver>ProjectInfoDialog</receiver> |
|
459 |
<slot>reject()</slot> |
|
460 |
<hints> |
|
461 |
<hint type="sourcelabel"> |
|
462 |
<x>325</x> |
|
463 |
<y>454</y> |
|
464 |
</hint> |
|
465 |
<hint type="destinationlabel"> |
|
466 |
<x>286</x> |
|
467 |
<y>274</y> |
|
468 |
</hint> |
|
469 |
</hints> |
|
470 |
</connection> |
|
471 |
</connections> |
|
472 |
<buttongroups> |
|
473 |
<buttongroup name="buttonGroup_12"/> |
|
474 |
<buttongroup name="buttonGroup_13"/> |
|
475 |
<buttongroup name="buttonGroup_10"/> |
|
476 |
<buttongroup name="buttonGroup_2"/> |
|
477 |
<buttongroup name="buttonGroup_14"/> |
|
478 |
<buttongroup name="buttonGroup_4"/> |
|
479 |
<buttongroup name="buttonGroup_5"/> |
|
480 |
<buttongroup name="buttonGroup_6"/> |
|
481 |
<buttongroup name="buttonGroup_11"/> |
|
482 |
<buttongroup name="buttonGroup_9"/> |
|
483 |
<buttongroup name="buttonGroup"/> |
|
484 |
<buttongroup name="buttonGroup_7"/> |
|
485 |
<buttongroup name="buttonGroup_3"/> |
|
486 |
<buttongroup name="buttonGroup_8"/> |
|
487 |
</buttongroups> |
|
488 |
</ui> |
내보내기 Unified diff