개정판 7d24a1ec
validation filter on going
Change-Id: Ice2ec8a334dcf9808c4bc0e571a9e5d8d7da6b25
DTI_PID/DTI_PID/Commands/ValidateCommand.py | ||
---|---|---|
3 | 3 |
|
4 | 4 |
import os.path |
5 | 5 |
import AbstractCommand |
6 |
from enum import Enum |
|
6 | 7 |
|
7 | 8 |
try: |
8 | 9 |
from PyQt5.QtCore import * |
... | ... | |
15 | 16 |
QCursor |
16 | 17 |
except ImportError: |
17 | 18 |
raise ImportError("ImageViewerQt: Requires PyQt5 or PyQt4.") |
19 |
|
|
20 |
|
|
21 |
class SymbolValidation(Enum): |
|
22 |
LineTypeError = 1 |
|
23 |
DuplicatedConnectionError = 2 |
|
24 |
FlowDirectionError = 3 |
|
25 |
NotCombined = 4 |
|
26 |
DisconnectedFromOppositeSide = 5 |
|
27 |
DisconnectionError = 6 |
|
28 |
AssociationError = 7 |
|
29 |
MultipleLabelError = 8 |
|
30 |
UpStreamOrDownStreamIsDisconnected = 9 |
|
31 |
UpStreamOrDownStreamIsNone = 10 |
|
32 |
UpStreamAndDownStreamIsMisconnected = 11 |
|
33 |
XMismatchedConnectionPoint = 12 |
|
34 |
|
|
35 |
NoSizeLabelWarning = 13 |
|
36 |
NoLabelWarning = 14 |
|
37 |
SymbolOverlappingWarning = 15 |
|
38 |
SymbolToSymbolConnectionWarning = 16 |
|
39 |
|
|
40 |
class TextValidation(Enum): |
|
41 |
AssociationError = 1 |
|
42 |
|
|
43 |
TextOverlappingWarning = 2 |
|
44 |
|
|
45 |
class LineValidation(Enum): |
|
46 |
LineTypeError = 1 |
|
47 |
DuplicatedConnectionError = 2 |
|
48 |
FlowDirectionError = 3 |
|
49 |
DisconnectedFromOppositeSide = 4 |
|
50 |
MismatchedPositionError = 5 |
|
51 |
LinePositionError = 6 |
|
52 |
LoopPathError = 7 |
|
53 |
|
|
54 |
DisconnectionWarning = 8 |
|
55 |
LineOverlappingWarning = 9 |
|
56 |
LineAngleWarning = 10 |
|
57 |
|
|
58 |
class LineNoValidation(Enum): |
|
59 |
SizeChangeError = 1 |
|
60 |
BranchSizeError = 2 |
|
61 |
FromToError = 3 |
|
62 |
|
|
63 |
MainRunSizeWarning = 4 |
|
18 | 64 |
|
19 | 65 |
|
20 | 66 |
class ValidateCommand(AbstractCommand.AbstractCommand): |
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
8 | 8 |
import cv2 |
9 | 9 |
import numpy as np |
10 | 10 |
import timeit |
11 |
from enum import Enum |
|
11 | 12 |
from PyQt5.QtCore import * |
12 | 13 |
from PyQt5.QtGui import * |
13 | 14 |
from PyQt5.QtWidgets import * |
... | ... | |
59 | 60 |
ACCEPT_OVERLAY_AREA = 20 |
60 | 61 |
# endregion |
61 | 62 |
|
62 |
''' |
|
63 |
@history 2018.05.25 Jeongwoo Add pyqtSignal(recognizeLine, loadRecognitionResult) |
|
64 |
''' |
|
65 |
from enum import Enum |
|
66 | 63 |
class Arrow(Enum): |
67 | 64 |
NULL = 1 |
68 | 65 |
DOWN = 2 |
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
1219 | 1219 |
error = SymbolSvgItem.createItem('Error', None, dataPath) |
1220 | 1220 |
error.setPosition(list(connector.center())) |
1221 | 1221 |
error.parent = self |
1222 |
error.msg = _translate('Mismatched position', 'Mismatched position')
|
|
1222 |
error.msg = _translate('Mismatched position error', 'Mismatched position error')
|
|
1223 | 1223 |
error.setToolTip(error.msg) |
1224 | 1224 |
error.area = 'Drawing' |
1225 | 1225 |
error.name = 'Error' |
DTI_PID/DTI_PID/Shapes/EngineeringLineNoTextItem.py | ||
---|---|---|
1381 | 1381 |
error = SymbolSvgItem.createItem('Error', None, dataPath) |
1382 | 1382 |
error.setPosition([size.sceneBoundingRect().center().x(), size.sceneBoundingRect().center().y()]) |
1383 | 1383 |
error.parent = size |
1384 |
error.msg = _translate('Branch Size error', 'Branch Size error')
|
|
1384 |
error.msg = _translate('Branch size error', 'Branch size error')
|
|
1385 | 1385 |
error.setToolTip(error.msg) |
1386 | 1386 |
error.area = 'Drawing' |
1387 | 1387 |
error.name = 'Error' |
DTI_PID/DTI_PID/UI/Validation.ui | ||
---|---|---|
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 | 9 |
<width>647</width> |
10 |
<height>467</height>
|
|
10 |
<height>755</height>
|
|
11 | 11 |
</rect> |
12 | 12 |
</property> |
13 | 13 |
<property name="windowTitle"> |
14 | 14 |
<string>Validation</string> |
15 | 15 |
</property> |
16 | 16 |
<layout class="QGridLayout" name="gridLayout_2"> |
17 |
<item row="1" column="0">
|
|
18 |
<widget class="QGroupBox" name="groupBox"> |
|
17 |
<item row="2" column="0">
|
|
18 |
<widget class="QGroupBox" name="groupBox_4">
|
|
19 | 19 |
<property name="title"> |
20 |
<string>Custom Rules</string>
|
|
20 |
<string>Line</string>
|
|
21 | 21 |
</property> |
22 |
<layout class="QGridLayout" name="gridLayout_4">
|
|
22 |
<layout class="QGridLayout" name="gridLayout_9">
|
|
23 | 23 |
<item row="0" column="0"> |
24 |
<layout class="QGridLayout" name="gridLayout_3"> |
|
25 |
<item row="0" column="1"> |
|
26 |
<widget class="QToolButton" name="pushButtonAddRule"> |
|
24 |
<layout class="QGridLayout" name="gridLayout_8"> |
|
25 |
<item row="0" column="0"> |
|
26 |
<widget class="QLabel" name="label_5"> |
|
27 |
<property name="font"> |
|
28 |
<font> |
|
29 |
<weight>75</weight> |
|
30 |
<bold>true</bold> |
|
31 |
</font> |
|
32 |
</property> |
|
27 | 33 |
<property name="text"> |
28 |
<string/>
|
|
34 |
<string>Error</string>
|
|
29 | 35 |
</property> |
30 |
<property name="icon"> |
|
31 |
<iconset resource="../res/MainWindow.qrc"> |
|
32 |
<normaloff>:/newPrefix/Add.svg</normaloff>:/newPrefix/Add.svg</iconset> |
|
36 |
</widget> |
|
37 |
</item> |
|
38 |
<item row="2" column="1"> |
|
39 |
<widget class="QCheckBox" name="checkBox_21"> |
|
40 |
<property name="text"> |
|
41 |
<string>Disconnected from opposite side</string> |
|
33 | 42 |
</property> |
34 | 43 |
</widget> |
35 | 44 |
</item> |
36 |
<item row="0" column="0"> |
|
37 |
<widget class="QLineEdit" name="lineEditRuleName"/> |
|
45 |
<item row="3" column="0"> |
|
46 |
<widget class="QCheckBox" name="checkBox_22"> |
|
47 |
<property name="text"> |
|
48 |
<string>Mismatched position</string> |
|
49 |
</property> |
|
50 |
</widget> |
|
51 |
</item> |
|
52 |
<item row="3" column="1"> |
|
53 |
<widget class="QCheckBox" name="checkBox_23"> |
|
54 |
<property name="text"> |
|
55 |
<string>Line position error</string> |
|
56 |
</property> |
|
57 |
</widget> |
|
58 |
</item> |
|
59 |
<item row="4" column="0"> |
|
60 |
<widget class="QCheckBox" name="checkBox_24"> |
|
61 |
<property name="text"> |
|
62 |
<string>Loop path error</string> |
|
63 |
</property> |
|
64 |
</widget> |
|
65 |
</item> |
|
66 |
<item row="1" column="0"> |
|
67 |
<widget class="QCheckBox" name="checkBox_16"> |
|
68 |
<property name="text"> |
|
69 |
<string>Line type error</string> |
|
70 |
</property> |
|
71 |
</widget> |
|
72 |
</item> |
|
73 |
<item row="5" column="0"> |
|
74 |
<widget class="QLabel" name="label_6"> |
|
75 |
<property name="font"> |
|
76 |
<font> |
|
77 |
<weight>75</weight> |
|
78 |
<bold>true</bold> |
|
79 |
</font> |
|
80 |
</property> |
|
81 |
<property name="text"> |
|
82 |
<string>Warning</string> |
|
83 |
</property> |
|
84 |
</widget> |
|
85 |
</item> |
|
86 |
<item row="6" column="1"> |
|
87 |
<widget class="QCheckBox" name="checkBox_19"> |
|
88 |
<property name="text"> |
|
89 |
<string>Line overlapping warning</string> |
|
90 |
</property> |
|
91 |
</widget> |
|
92 |
</item> |
|
93 |
<item row="6" column="0"> |
|
94 |
<widget class="QCheckBox" name="checkBox_18"> |
|
95 |
<property name="text"> |
|
96 |
<string>Disconnection warning</string> |
|
97 |
</property> |
|
98 |
</widget> |
|
38 | 99 |
</item> |
39 |
<item row="0" column="2">
|
|
40 |
<widget class="QToolButton" name="pushButtonDelRule">
|
|
100 |
<item row="1" column="1">
|
|
101 |
<widget class="QCheckBox" name="checkBox_17">
|
|
41 | 102 |
<property name="text"> |
42 |
<string/>
|
|
103 |
<string>Duplicated connection error</string>
|
|
43 | 104 |
</property> |
44 |
<property name="icon"> |
|
45 |
<iconset resource="../res/MainWindow.qrc"> |
|
46 |
<normaloff>:/newPrefix/Remove.svg</normaloff>:/newPrefix/Remove.svg</iconset> |
|
105 |
</widget> |
|
106 |
</item> |
|
107 |
<item row="2" column="0"> |
|
108 |
<widget class="QCheckBox" name="checkBox_20"> |
|
109 |
<property name="text"> |
|
110 |
<string>Flow direction error</string> |
|
47 | 111 |
</property> |
48 | 112 |
</widget> |
49 | 113 |
</item> |
50 |
<item row="1" column="0" colspan="3"> |
|
51 |
<widget class="QTableWidget" name="tableWidget"/> |
|
114 |
<item row="7" column="0"> |
|
115 |
<widget class="QCheckBox" name="checkBox_25"> |
|
116 |
<property name="text"> |
|
117 |
<string>Line angle warning</string> |
|
118 |
</property> |
|
119 |
</widget> |
|
52 | 120 |
</item> |
53 | 121 |
</layout> |
54 | 122 |
</item> |
55 | 123 |
</layout> |
56 | 124 |
</widget> |
57 | 125 |
</item> |
58 |
<item row="2" column="0">
|
|
126 |
<item row="5" column="0">
|
|
59 | 127 |
<widget class="QDialogButtonBox" name="buttonBox"> |
60 | 128 |
<property name="orientation"> |
61 | 129 |
<enum>Qt::Horizontal</enum> |
... | ... | |
68 | 136 |
<item row="0" column="0"> |
69 | 137 |
<widget class="QGroupBox" name="groupBox_2"> |
70 | 138 |
<property name="title"> |
71 |
<string>Basic Rules</string>
|
|
139 |
<string>Symbol</string>
|
|
72 | 140 |
</property> |
73 | 141 |
<layout class="QGridLayout" name="gridLayout"> |
74 | 142 |
<item row="0" column="0"> |
... | ... | |
76 | 144 |
<property name="sizeConstraint"> |
77 | 145 |
<enum>QLayout::SetFixedSize</enum> |
78 | 146 |
</property> |
79 |
<item row="0" column="0">
|
|
80 |
<widget class="QCheckBox" name="checkBoxSpecBreakError">
|
|
81 |
<property name="enabled">
|
|
82 |
<bool>false</bool>
|
|
147 |
<item row="9" column="0">
|
|
148 |
<widget class="QCheckBox" name="checkBox_10">
|
|
149 |
<property name="text">
|
|
150 |
<string>No size label warning</string>
|
|
83 | 151 |
</property> |
152 |
</widget> |
|
153 |
</item> |
|
154 |
<item row="9" column="1"> |
|
155 |
<widget class="QCheckBox" name="checkBox_11"> |
|
84 | 156 |
<property name="text"> |
85 |
<string>check specbreak error</string> |
|
157 |
<string>No label warning</string> |
|
158 |
</property> |
|
159 |
</widget> |
|
160 |
</item> |
|
161 |
<item row="8" column="0"> |
|
162 |
<widget class="QLabel" name="label_2"> |
|
163 |
<property name="font"> |
|
164 |
<font> |
|
165 |
<weight>50</weight> |
|
166 |
<bold>false</bold> |
|
167 |
</font> |
|
86 | 168 |
</property> |
87 |
<property name="checked">
|
|
88 |
<bool>true</bool>
|
|
169 |
<property name="text">
|
|
170 |
<string>Warning</string>
|
|
89 | 171 |
</property> |
90 | 172 |
</widget> |
91 | 173 |
</item> |
92 |
<item row="5" column="0">
|
|
93 |
<widget class="QCheckBox" name="checkBoxFlowDirectionError">
|
|
94 |
<property name="enabled">
|
|
95 |
<bool>false</bool>
|
|
174 |
<item row="10" column="1">
|
|
175 |
<widget class="QCheckBox" name="checkBox_13">
|
|
176 |
<property name="text">
|
|
177 |
<string>Symbol to symbol connection warning</string>
|
|
96 | 178 |
</property> |
179 |
</widget> |
|
180 |
</item> |
|
181 |
<item row="10" column="0"> |
|
182 |
<widget class="QCheckBox" name="checkBox_12"> |
|
97 | 183 |
<property name="text"> |
98 |
<string>check flow direction error</string>
|
|
184 |
<string>Symbol overlapping warning</string>
|
|
99 | 185 |
</property> |
100 |
<property name="checked"> |
|
101 |
<bool>true</bool> |
|
186 |
</widget> |
|
187 |
</item> |
|
188 |
<item row="0" column="0"> |
|
189 |
<widget class="QLabel" name="label"> |
|
190 |
<property name="font"> |
|
191 |
<font> |
|
192 |
<weight>50</weight> |
|
193 |
<bold>false</bold> |
|
194 |
</font> |
|
195 |
</property> |
|
196 |
<property name="text"> |
|
197 |
<string>Error</string> |
|
102 | 198 |
</property> |
103 | 199 |
</widget> |
104 | 200 |
</item> |
105 |
<item row="3" column="0">
|
|
106 |
<widget class="QCheckBox" name="checkBoxDuplicatedConnectionError">
|
|
107 |
<property name="enabled">
|
|
108 |
<bool>false</bool>
|
|
201 |
<item row="2" column="0">
|
|
202 |
<widget class="QCheckBox" name="checkBox_3">
|
|
203 |
<property name="text">
|
|
204 |
<string>Flow direction error</string>
|
|
109 | 205 |
</property> |
206 |
</widget> |
|
207 |
</item> |
|
208 |
<item row="1" column="1"> |
|
209 |
<widget class="QCheckBox" name="checkBox_2"> |
|
210 |
<property name="text"> |
|
211 |
<string>Duplicated connection error</string> |
|
212 |
</property> |
|
213 |
</widget> |
|
214 |
</item> |
|
215 |
<item row="2" column="1"> |
|
216 |
<widget class="QCheckBox" name="checkBox_4"> |
|
110 | 217 |
<property name="text"> |
111 |
<string>check duplicated connection error</string>
|
|
218 |
<string>Not combined</string>
|
|
112 | 219 |
</property> |
113 |
<property name="checked"> |
|
114 |
<bool>true</bool> |
|
220 |
</widget> |
|
221 |
</item> |
|
222 |
<item row="1" column="0"> |
|
223 |
<widget class="QCheckBox" name="checkBox"> |
|
224 |
<property name="text"> |
|
225 |
<string>Line type error</string> |
|
115 | 226 |
</property> |
116 | 227 |
</widget> |
117 | 228 |
</item> |
118 | 229 |
<item row="4" column="0"> |
119 |
<widget class="QCheckBox" name="checkBoxLineTypeError">
|
|
120 |
<property name="enabled">
|
|
121 |
<bool>false</bool>
|
|
230 |
<widget class="QCheckBox" name="checkBox_7">
|
|
231 |
<property name="text">
|
|
232 |
<string>Association error</string>
|
|
122 | 233 |
</property> |
234 |
</widget> |
|
235 |
</item> |
|
236 |
<item row="4" column="1"> |
|
237 |
<widget class="QCheckBox" name="checkBox_8"> |
|
123 | 238 |
<property name="text"> |
124 |
<string>check line type error</string>
|
|
239 |
<string>Multiple label error</string>
|
|
125 | 240 |
</property> |
126 |
<property name="checked"> |
|
127 |
<bool>true</bool> |
|
241 |
</widget> |
|
242 |
</item> |
|
243 |
<item row="3" column="1"> |
|
244 |
<widget class="QCheckBox" name="checkBox_6"> |
|
245 |
<property name="text"> |
|
246 |
<string>Disconnection error</string> |
|
128 | 247 |
</property> |
129 | 248 |
</widget> |
130 | 249 |
</item> |
131 |
<item row="2" column="0">
|
|
132 |
<widget class="QCheckBox" name="checkBoxSizeError">
|
|
133 |
<property name="enabled">
|
|
134 |
<bool>false</bool>
|
|
250 |
<item row="3" column="0">
|
|
251 |
<widget class="QCheckBox" name="checkBox_5">
|
|
252 |
<property name="text">
|
|
253 |
<string>Disconnected from opposite side</string>
|
|
135 | 254 |
</property> |
255 |
</widget> |
|
256 |
</item> |
|
257 |
<item row="5" column="1"> |
|
258 |
<widget class="QCheckBox" name="checkBox_31"> |
|
136 | 259 |
<property name="text"> |
137 |
<string>check graphic size error</string>
|
|
260 |
<string>UpStream or DownStream is None</string>
|
|
138 | 261 |
</property> |
139 |
<property name="checked"> |
|
140 |
<bool>true</bool> |
|
262 |
</widget> |
|
263 |
</item> |
|
264 |
<item row="5" column="0"> |
|
265 |
<widget class="QCheckBox" name="checkBox_30"> |
|
266 |
<property name="text"> |
|
267 |
<string>UpStream or DownStream is disconnected</string> |
|
141 | 268 |
</property> |
142 | 269 |
</widget> |
143 | 270 |
</item> |
144 |
<item row="1" column="0"> |
|
145 |
<widget class="QCheckBox" name="checkBoxAssociationError"> |
|
146 |
<property name="enabled"> |
|
147 |
<bool>false</bool> |
|
271 |
<item row="6" column="1"> |
|
272 |
<widget class="QCheckBox" name="checkBox_9"> |
|
273 |
<property name="text"> |
|
274 |
<string>X Mismatched connection point</string> |
|
275 |
</property> |
|
276 |
</widget> |
|
277 |
</item> |
|
278 |
<item row="6" column="0"> |
|
279 |
<widget class="QCheckBox" name="checkBox_32"> |
|
280 |
<property name="text"> |
|
281 |
<string>UpStream and DownStream is misconnected</string> |
|
282 |
</property> |
|
283 |
</widget> |
|
284 |
</item> |
|
285 |
</layout> |
|
286 |
</item> |
|
287 |
</layout> |
|
288 |
</widget> |
|
289 |
</item> |
|
290 |
<item row="1" column="0"> |
|
291 |
<widget class="QGroupBox" name="groupBox_3"> |
|
292 |
<property name="title"> |
|
293 |
<string>Text</string> |
|
294 |
</property> |
|
295 |
<layout class="QGridLayout" name="gridLayout_7"> |
|
296 |
<item row="0" column="0"> |
|
297 |
<layout class="QGridLayout" name="gridLayout_6"> |
|
298 |
<item row="0" column="0"> |
|
299 |
<widget class="QLabel" name="label_3"> |
|
300 |
<property name="font"> |
|
301 |
<font> |
|
302 |
<weight>75</weight> |
|
303 |
<bold>true</bold> |
|
304 |
</font> |
|
148 | 305 |
</property> |
149 | 306 |
<property name="text"> |
150 |
<string>check association error</string>
|
|
307 |
<string>Error</string>
|
|
151 | 308 |
</property> |
152 |
<property name="checked"> |
|
153 |
<bool>true</bool> |
|
309 |
</widget> |
|
310 |
</item> |
|
311 |
<item row="1" column="0"> |
|
312 |
<widget class="QCheckBox" name="checkBox_14"> |
|
313 |
<property name="text"> |
|
314 |
<string>Association error</string> |
|
154 | 315 |
</property> |
155 | 316 |
</widget> |
156 | 317 |
</item> |
157 |
<item row="6" column="0"> |
|
158 |
<widget class="QCheckBox" name="checkBoxDisconnectionError"> |
|
159 |
<property name="enabled"> |
|
160 |
<bool>false</bool> |
|
318 |
<item row="2" column="0"> |
|
319 |
<widget class="QLabel" name="label_4"> |
|
320 |
<property name="font"> |
|
321 |
<font> |
|
322 |
<weight>75</weight> |
|
323 |
<bold>true</bold> |
|
324 |
</font> |
|
325 |
</property> |
|
326 |
<property name="text"> |
|
327 |
<string>Warning</string> |
|
161 | 328 |
</property> |
329 |
</widget> |
|
330 |
</item> |
|
331 |
<item row="3" column="0"> |
|
332 |
<widget class="QCheckBox" name="checkBox_15"> |
|
162 | 333 |
<property name="text"> |
163 |
<string>check disconnection error</string>
|
|
334 |
<string>Text overlapping warning</string>
|
|
164 | 335 |
</property> |
165 |
<property name="checked"> |
|
166 |
<bool>true</bool> |
|
336 |
</widget> |
|
337 |
</item> |
|
338 |
</layout> |
|
339 |
</item> |
|
340 |
</layout> |
|
341 |
</widget> |
|
342 |
</item> |
|
343 |
<item row="3" column="0"> |
|
344 |
<widget class="QGroupBox" name="groupBox"> |
|
345 |
<property name="title"> |
|
346 |
<string>Line No</string> |
|
347 |
</property> |
|
348 |
<layout class="QGridLayout" name="gridLayout_4"> |
|
349 |
<item row="0" column="0"> |
|
350 |
<layout class="QGridLayout" name="gridLayout_3"> |
|
351 |
<item row="1" column="1"> |
|
352 |
<widget class="QCheckBox" name="checkBox_27"> |
|
353 |
<property name="text"> |
|
354 |
<string>Branch size error</string> |
|
167 | 355 |
</property> |
168 | 356 |
</widget> |
169 | 357 |
</item> |
170 |
<item row="7" column="0"> |
|
171 |
<widget class="QCheckBox" name="checkBoxSizeChange"> |
|
172 |
<property name="enabled"> |
|
173 |
<bool>false</bool> |
|
358 |
<item row="1" column="0"> |
|
359 |
<widget class="QCheckBox" name="checkBox_26"> |
|
360 |
<property name="text"> |
|
361 |
<string>Size change error</string> |
|
362 |
</property> |
|
363 |
</widget> |
|
364 |
</item> |
|
365 |
<item row="0" column="0"> |
|
366 |
<widget class="QLabel" name="label_8"> |
|
367 |
<property name="font"> |
|
368 |
<font> |
|
369 |
<weight>75</weight> |
|
370 |
<bold>true</bold> |
|
371 |
</font> |
|
174 | 372 |
</property> |
175 | 373 |
<property name="text"> |
176 |
<string>check size change error</string>
|
|
374 |
<string>Error</string>
|
|
177 | 375 |
</property> |
178 |
<property name="checkable"> |
|
179 |
<bool>true</bool> |
|
376 |
</widget> |
|
377 |
</item> |
|
378 |
<item row="4" column="0"> |
|
379 |
<widget class="QCheckBox" name="checkBox_28"> |
|
380 |
<property name="text"> |
|
381 |
<string>Main run size warning</string> |
|
180 | 382 |
</property> |
181 |
<property name="checked"> |
|
182 |
<bool>true</bool> |
|
383 |
</widget> |
|
384 |
</item> |
|
385 |
<item row="3" column="0"> |
|
386 |
<widget class="QLabel" name="label_7"> |
|
387 |
<property name="font"> |
|
388 |
<font> |
|
389 |
<weight>75</weight> |
|
390 |
<bold>true</bold> |
|
391 |
</font> |
|
392 |
</property> |
|
393 |
<property name="text"> |
|
394 |
<string>Warning</string> |
|
395 |
</property> |
|
396 |
</widget> |
|
397 |
</item> |
|
398 |
<item row="2" column="0"> |
|
399 |
<widget class="QCheckBox" name="checkBox_29"> |
|
400 |
<property name="text"> |
|
401 |
<string>From/ To error</string> |
|
183 | 402 |
</property> |
184 | 403 |
</widget> |
185 | 404 |
</item> |
... | ... | |
188 | 407 |
</layout> |
189 | 408 |
</widget> |
190 | 409 |
</item> |
410 |
<item row="4" column="0"> |
|
411 |
<spacer name="verticalSpacer"> |
|
412 |
<property name="orientation"> |
|
413 |
<enum>Qt::Vertical</enum> |
|
414 |
</property> |
|
415 |
<property name="sizeHint" stdset="0"> |
|
416 |
<size> |
|
417 |
<width>20</width> |
|
418 |
<height>40</height> |
|
419 |
</size> |
|
420 |
</property> |
|
421 |
</spacer> |
|
422 |
</item> |
|
191 | 423 |
</layout> |
192 | 424 |
</widget> |
425 |
<tabstops> |
|
426 |
<tabstop>checkBox</tabstop> |
|
427 |
<tabstop>checkBox_2</tabstop> |
|
428 |
<tabstop>checkBox_3</tabstop> |
|
429 |
<tabstop>checkBox_4</tabstop> |
|
430 |
<tabstop>checkBox_5</tabstop> |
|
431 |
<tabstop>checkBox_6</tabstop> |
|
432 |
<tabstop>checkBox_7</tabstop> |
|
433 |
<tabstop>checkBox_8</tabstop> |
|
434 |
<tabstop>checkBox_30</tabstop> |
|
435 |
<tabstop>checkBox_31</tabstop> |
|
436 |
<tabstop>checkBox_32</tabstop> |
|
437 |
<tabstop>checkBox_9</tabstop> |
|
438 |
<tabstop>checkBox_10</tabstop> |
|
439 |
<tabstop>checkBox_11</tabstop> |
|
440 |
<tabstop>checkBox_12</tabstop> |
|
441 |
<tabstop>checkBox_13</tabstop> |
|
442 |
<tabstop>checkBox_14</tabstop> |
|
443 |
<tabstop>checkBox_15</tabstop> |
|
444 |
<tabstop>checkBox_16</tabstop> |
|
445 |
<tabstop>checkBox_17</tabstop> |
|
446 |
<tabstop>checkBox_20</tabstop> |
|
447 |
<tabstop>checkBox_21</tabstop> |
|
448 |
<tabstop>checkBox_22</tabstop> |
|
449 |
<tabstop>checkBox_23</tabstop> |
|
450 |
<tabstop>checkBox_24</tabstop> |
|
451 |
<tabstop>checkBox_18</tabstop> |
|
452 |
<tabstop>checkBox_19</tabstop> |
|
453 |
<tabstop>checkBox_25</tabstop> |
|
454 |
<tabstop>checkBox_26</tabstop> |
|
455 |
<tabstop>checkBox_27</tabstop> |
|
456 |
<tabstop>checkBox_29</tabstop> |
|
457 |
<tabstop>checkBox_28</tabstop> |
|
458 |
</tabstops> |
|
193 | 459 |
<resources> |
194 | 460 |
<include location="../res/MainWindow.qrc"/> |
195 | 461 |
</resources> |
DTI_PID/DTI_PID/UI/Validation_UI.py | ||
---|---|---|
2 | 2 |
|
3 | 3 |
# Form implementation generated from reading ui file './UI/Validation.ui' |
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.9.2
|
|
5 |
# Created by: PyQt5 UI code generator 5.15.4
|
|
6 | 6 |
# |
7 |
# WARNING! All changes made in this file will be lost! |
|
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 |
|
|
8 | 10 |
|
9 | 11 |
from PyQt5 import QtCore, QtGui, QtWidgets |
10 | 12 |
|
13 |
|
|
11 | 14 |
class Ui_ValidationDialog(object): |
12 | 15 |
def setupUi(self, ValidationDialog): |
13 | 16 |
ValidationDialog.setObjectName("ValidationDialog") |
14 |
ValidationDialog.resize(647, 467)
|
|
17 |
ValidationDialog.resize(647, 755)
|
|
15 | 18 |
self.gridLayout_2 = QtWidgets.QGridLayout(ValidationDialog) |
16 | 19 |
self.gridLayout_2.setObjectName("gridLayout_2") |
17 |
self.groupBox = QtWidgets.QGroupBox(ValidationDialog) |
|
18 |
self.groupBox.setObjectName("groupBox") |
|
19 |
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox) |
|
20 |
self.gridLayout_4.setObjectName("gridLayout_4") |
|
21 |
self.gridLayout_3 = QtWidgets.QGridLayout() |
|
22 |
self.gridLayout_3.setObjectName("gridLayout_3") |
|
23 |
self.pushButtonAddRule = QtWidgets.QToolButton(self.groupBox) |
|
24 |
self.pushButtonAddRule.setText("") |
|
25 |
icon = QtGui.QIcon() |
|
26 |
icon.addPixmap(QtGui.QPixmap(":/newPrefix/Add.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
27 |
self.pushButtonAddRule.setIcon(icon) |
|
28 |
self.pushButtonAddRule.setObjectName("pushButtonAddRule") |
|
29 |
self.gridLayout_3.addWidget(self.pushButtonAddRule, 0, 1, 1, 1) |
|
30 |
self.lineEditRuleName = QtWidgets.QLineEdit(self.groupBox) |
|
31 |
self.lineEditRuleName.setObjectName("lineEditRuleName") |
|
32 |
self.gridLayout_3.addWidget(self.lineEditRuleName, 0, 0, 1, 1) |
|
33 |
self.pushButtonDelRule = QtWidgets.QToolButton(self.groupBox) |
|
34 |
self.pushButtonDelRule.setText("") |
|
35 |
icon1 = QtGui.QIcon() |
|
36 |
icon1.addPixmap(QtGui.QPixmap(":/newPrefix/Remove.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
37 |
self.pushButtonDelRule.setIcon(icon1) |
|
38 |
self.pushButtonDelRule.setObjectName("pushButtonDelRule") |
|
39 |
self.gridLayout_3.addWidget(self.pushButtonDelRule, 0, 2, 1, 1) |
|
40 |
self.tableWidget = QtWidgets.QTableWidget(self.groupBox) |
|
41 |
self.tableWidget.setObjectName("tableWidget") |
|
42 |
self.tableWidget.setColumnCount(0) |
|
43 |
self.tableWidget.setRowCount(0) |
|
44 |
self.gridLayout_3.addWidget(self.tableWidget, 1, 0, 1, 3) |
|
45 |
self.gridLayout_4.addLayout(self.gridLayout_3, 0, 0, 1, 1) |
|
46 |
self.gridLayout_2.addWidget(self.groupBox, 1, 0, 1, 1) |
|
20 |
self.groupBox_4 = QtWidgets.QGroupBox(ValidationDialog) |
|
21 |
self.groupBox_4.setObjectName("groupBox_4") |
|
22 |
self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox_4) |
|
23 |
self.gridLayout_9.setObjectName("gridLayout_9") |
|
24 |
self.gridLayout_8 = QtWidgets.QGridLayout() |
|
25 |
self.gridLayout_8.setObjectName("gridLayout_8") |
|
26 |
self.label_5 = QtWidgets.QLabel(self.groupBox_4) |
|
27 |
font = QtGui.QFont() |
|
28 |
font.setBold(True) |
|
29 |
font.setWeight(75) |
|
30 |
self.label_5.setFont(font) |
|
31 |
self.label_5.setObjectName("label_5") |
|
32 |
self.gridLayout_8.addWidget(self.label_5, 0, 0, 1, 1) |
|
33 |
self.checkBox_21 = QtWidgets.QCheckBox(self.groupBox_4) |
|
34 |
self.checkBox_21.setObjectName("checkBox_21") |
|
35 |
self.gridLayout_8.addWidget(self.checkBox_21, 2, 1, 1, 1) |
|
36 |
self.checkBox_22 = QtWidgets.QCheckBox(self.groupBox_4) |
|
37 |
self.checkBox_22.setObjectName("checkBox_22") |
|
38 |
self.gridLayout_8.addWidget(self.checkBox_22, 3, 0, 1, 1) |
|
39 |
self.checkBox_23 = QtWidgets.QCheckBox(self.groupBox_4) |
|
40 |
self.checkBox_23.setObjectName("checkBox_23") |
|
41 |
self.gridLayout_8.addWidget(self.checkBox_23, 3, 1, 1, 1) |
|
42 |
self.checkBox_24 = QtWidgets.QCheckBox(self.groupBox_4) |
|
43 |
self.checkBox_24.setObjectName("checkBox_24") |
|
44 |
self.gridLayout_8.addWidget(self.checkBox_24, 4, 0, 1, 1) |
|
45 |
self.checkBox_16 = QtWidgets.QCheckBox(self.groupBox_4) |
|
46 |
self.checkBox_16.setObjectName("checkBox_16") |
|
47 |
self.gridLayout_8.addWidget(self.checkBox_16, 1, 0, 1, 1) |
|
48 |
self.label_6 = QtWidgets.QLabel(self.groupBox_4) |
|
49 |
font = QtGui.QFont() |
|
50 |
font.setBold(True) |
|
51 |
font.setWeight(75) |
|
52 |
self.label_6.setFont(font) |
|
53 |
self.label_6.setObjectName("label_6") |
|
54 |
self.gridLayout_8.addWidget(self.label_6, 5, 0, 1, 1) |
|
55 |
self.checkBox_19 = QtWidgets.QCheckBox(self.groupBox_4) |
|
56 |
self.checkBox_19.setObjectName("checkBox_19") |
|
57 |
self.gridLayout_8.addWidget(self.checkBox_19, 6, 1, 1, 1) |
|
58 |
self.checkBox_18 = QtWidgets.QCheckBox(self.groupBox_4) |
|
59 |
self.checkBox_18.setObjectName("checkBox_18") |
|
60 |
self.gridLayout_8.addWidget(self.checkBox_18, 6, 0, 1, 1) |
|
61 |
self.checkBox_17 = QtWidgets.QCheckBox(self.groupBox_4) |
|
62 |
self.checkBox_17.setObjectName("checkBox_17") |
|
63 |
self.gridLayout_8.addWidget(self.checkBox_17, 1, 1, 1, 1) |
|
64 |
self.checkBox_20 = QtWidgets.QCheckBox(self.groupBox_4) |
|
65 |
self.checkBox_20.setObjectName("checkBox_20") |
|
66 |
self.gridLayout_8.addWidget(self.checkBox_20, 2, 0, 1, 1) |
|
67 |
self.checkBox_25 = QtWidgets.QCheckBox(self.groupBox_4) |
|
68 |
self.checkBox_25.setObjectName("checkBox_25") |
|
69 |
self.gridLayout_8.addWidget(self.checkBox_25, 7, 0, 1, 1) |
|
70 |
self.gridLayout_9.addLayout(self.gridLayout_8, 0, 0, 1, 1) |
|
71 |
self.gridLayout_2.addWidget(self.groupBox_4, 2, 0, 1, 1) |
|
47 | 72 |
self.buttonBox = QtWidgets.QDialogButtonBox(ValidationDialog) |
48 | 73 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
49 | 74 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
50 | 75 |
self.buttonBox.setObjectName("buttonBox") |
51 |
self.gridLayout_2.addWidget(self.buttonBox, 2, 0, 1, 1)
|
|
76 |
self.gridLayout_2.addWidget(self.buttonBox, 5, 0, 1, 1)
|
|
52 | 77 |
self.groupBox_2 = QtWidgets.QGroupBox(ValidationDialog) |
53 | 78 |
self.groupBox_2.setObjectName("groupBox_2") |
54 | 79 |
self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2) |
... | ... | |
56 | 81 |
self.gridLayout_5 = QtWidgets.QGridLayout() |
57 | 82 |
self.gridLayout_5.setSizeConstraint(QtWidgets.QLayout.SetFixedSize) |
58 | 83 |
self.gridLayout_5.setObjectName("gridLayout_5") |
59 |
self.checkBoxSpecBreakError = QtWidgets.QCheckBox(self.groupBox_2) |
|
60 |
self.checkBoxSpecBreakError.setEnabled(False) |
|
61 |
self.checkBoxSpecBreakError.setChecked(True) |
|
62 |
self.checkBoxSpecBreakError.setObjectName("checkBoxSpecBreakError") |
|
63 |
self.gridLayout_5.addWidget(self.checkBoxSpecBreakError, 0, 0, 1, 1) |
|
64 |
self.checkBoxFlowDirectionError = QtWidgets.QCheckBox(self.groupBox_2) |
|
65 |
self.checkBoxFlowDirectionError.setEnabled(False) |
|
66 |
self.checkBoxFlowDirectionError.setChecked(True) |
|
67 |
self.checkBoxFlowDirectionError.setObjectName("checkBoxFlowDirectionError") |
|
68 |
self.gridLayout_5.addWidget(self.checkBoxFlowDirectionError, 5, 0, 1, 1) |
|
69 |
self.checkBoxDuplicatedConnectionError = QtWidgets.QCheckBox(self.groupBox_2) |
|
70 |
self.checkBoxDuplicatedConnectionError.setEnabled(False) |
|
71 |
self.checkBoxDuplicatedConnectionError.setChecked(True) |
|
72 |
self.checkBoxDuplicatedConnectionError.setObjectName("checkBoxDuplicatedConnectionError") |
|
73 |
self.gridLayout_5.addWidget(self.checkBoxDuplicatedConnectionError, 3, 0, 1, 1) |
|
74 |
self.checkBoxLineTypeError = QtWidgets.QCheckBox(self.groupBox_2) |
|
75 |
self.checkBoxLineTypeError.setEnabled(False) |
|
76 |
self.checkBoxLineTypeError.setChecked(True) |
|
77 |
self.checkBoxLineTypeError.setObjectName("checkBoxLineTypeError") |
|
78 |
self.gridLayout_5.addWidget(self.checkBoxLineTypeError, 4, 0, 1, 1) |
|
79 |
self.checkBoxSizeError = QtWidgets.QCheckBox(self.groupBox_2) |
|
80 |
self.checkBoxSizeError.setEnabled(False) |
|
81 |
self.checkBoxSizeError.setChecked(True) |
|
82 |
self.checkBoxSizeError.setObjectName("checkBoxSizeError") |
|
83 |
self.gridLayout_5.addWidget(self.checkBoxSizeError, 2, 0, 1, 1) |
|
84 |
self.checkBoxAssociationError = QtWidgets.QCheckBox(self.groupBox_2) |
|
85 |
self.checkBoxAssociationError.setEnabled(False) |
|
86 |
self.checkBoxAssociationError.setChecked(True) |
|
87 |
self.checkBoxAssociationError.setObjectName("checkBoxAssociationError") |
|
88 |
self.gridLayout_5.addWidget(self.checkBoxAssociationError, 1, 0, 1, 1) |
|
89 |
self.checkBoxDisconnectionError = QtWidgets.QCheckBox(self.groupBox_2) |
|
90 |
self.checkBoxDisconnectionError.setEnabled(False) |
|
91 |
self.checkBoxDisconnectionError.setChecked(True) |
|
92 |
self.checkBoxDisconnectionError.setObjectName("checkBoxDisconnectionError") |
|
93 |
self.gridLayout_5.addWidget(self.checkBoxDisconnectionError, 6, 0, 1, 1) |
|
94 |
self.checkBoxSizeChange = QtWidgets.QCheckBox(self.groupBox_2) |
|
95 |
self.checkBoxSizeChange.setEnabled(False) |
|
96 |
self.checkBoxSizeChange.setCheckable(True) |
|
97 |
self.checkBoxSizeChange.setChecked(True) |
|
98 |
self.checkBoxSizeChange.setObjectName("checkBoxSizeChange") |
|
99 |
self.gridLayout_5.addWidget(self.checkBoxSizeChange, 7, 0, 1, 1) |
|
84 |
self.checkBox_10 = QtWidgets.QCheckBox(self.groupBox_2) |
|
85 |
self.checkBox_10.setObjectName("checkBox_10") |
|
86 |
self.gridLayout_5.addWidget(self.checkBox_10, 9, 0, 1, 1) |
|
87 |
self.checkBox_11 = QtWidgets.QCheckBox(self.groupBox_2) |
|
88 |
self.checkBox_11.setObjectName("checkBox_11") |
|
89 |
self.gridLayout_5.addWidget(self.checkBox_11, 9, 1, 1, 1) |
|
90 |
self.label_2 = QtWidgets.QLabel(self.groupBox_2) |
|
91 |
font = QtGui.QFont() |
|
92 |
font.setBold(False) |
|
93 |
font.setWeight(50) |
|
94 |
self.label_2.setFont(font) |
|
95 |
self.label_2.setObjectName("label_2") |
|
96 |
self.gridLayout_5.addWidget(self.label_2, 8, 0, 1, 1) |
|
97 |
self.checkBox_13 = QtWidgets.QCheckBox(self.groupBox_2) |
|
98 |
self.checkBox_13.setObjectName("checkBox_13") |
|
99 |
self.gridLayout_5.addWidget(self.checkBox_13, 10, 1, 1, 1) |
|
100 |
self.checkBox_12 = QtWidgets.QCheckBox(self.groupBox_2) |
|
101 |
self.checkBox_12.setObjectName("checkBox_12") |
|
102 |
self.gridLayout_5.addWidget(self.checkBox_12, 10, 0, 1, 1) |
|
103 |
self.label = QtWidgets.QLabel(self.groupBox_2) |
|
104 |
font = QtGui.QFont() |
|
105 |
font.setBold(False) |
|
106 |
font.setWeight(50) |
|
107 |
self.label.setFont(font) |
|
108 |
self.label.setObjectName("label") |
|
109 |
self.gridLayout_5.addWidget(self.label, 0, 0, 1, 1) |
|
110 |
self.checkBox_3 = QtWidgets.QCheckBox(self.groupBox_2) |
|
111 |
self.checkBox_3.setObjectName("checkBox_3") |
|
112 |
self.gridLayout_5.addWidget(self.checkBox_3, 2, 0, 1, 1) |
|
113 |
self.checkBox_2 = QtWidgets.QCheckBox(self.groupBox_2) |
|
114 |
self.checkBox_2.setObjectName("checkBox_2") |
|
115 |
self.gridLayout_5.addWidget(self.checkBox_2, 1, 1, 1, 1) |
|
116 |
self.checkBox_4 = QtWidgets.QCheckBox(self.groupBox_2) |
|
117 |
self.checkBox_4.setObjectName("checkBox_4") |
|
118 |
self.gridLayout_5.addWidget(self.checkBox_4, 2, 1, 1, 1) |
|
119 |
self.checkBox = QtWidgets.QCheckBox(self.groupBox_2) |
|
120 |
self.checkBox.setObjectName("checkBox") |
|
121 |
self.gridLayout_5.addWidget(self.checkBox, 1, 0, 1, 1) |
|
122 |
self.checkBox_7 = QtWidgets.QCheckBox(self.groupBox_2) |
|
123 |
self.checkBox_7.setObjectName("checkBox_7") |
|
124 |
self.gridLayout_5.addWidget(self.checkBox_7, 4, 0, 1, 1) |
|
125 |
self.checkBox_8 = QtWidgets.QCheckBox(self.groupBox_2) |
|
126 |
self.checkBox_8.setObjectName("checkBox_8") |
|
127 |
self.gridLayout_5.addWidget(self.checkBox_8, 4, 1, 1, 1) |
|
128 |
self.checkBox_6 = QtWidgets.QCheckBox(self.groupBox_2) |
|
129 |
self.checkBox_6.setObjectName("checkBox_6") |
|
130 |
self.gridLayout_5.addWidget(self.checkBox_6, 3, 1, 1, 1) |
|
131 |
self.checkBox_5 = QtWidgets.QCheckBox(self.groupBox_2) |
|
132 |
self.checkBox_5.setObjectName("checkBox_5") |
|
133 |
self.gridLayout_5.addWidget(self.checkBox_5, 3, 0, 1, 1) |
|
134 |
self.checkBox_31 = QtWidgets.QCheckBox(self.groupBox_2) |
|
135 |
self.checkBox_31.setObjectName("checkBox_31") |
|
136 |
self.gridLayout_5.addWidget(self.checkBox_31, 5, 1, 1, 1) |
|
137 |
self.checkBox_30 = QtWidgets.QCheckBox(self.groupBox_2) |
|
138 |
self.checkBox_30.setObjectName("checkBox_30") |
|
139 |
self.gridLayout_5.addWidget(self.checkBox_30, 5, 0, 1, 1) |
|
140 |
self.checkBox_9 = QtWidgets.QCheckBox(self.groupBox_2) |
|
141 |
self.checkBox_9.setObjectName("checkBox_9") |
|
142 |
self.gridLayout_5.addWidget(self.checkBox_9, 6, 1, 1, 1) |
|
143 |
self.checkBox_32 = QtWidgets.QCheckBox(self.groupBox_2) |
|
144 |
self.checkBox_32.setObjectName("checkBox_32") |
|
145 |
self.gridLayout_5.addWidget(self.checkBox_32, 6, 0, 1, 1) |
|
100 | 146 |
self.gridLayout.addLayout(self.gridLayout_5, 0, 0, 1, 1) |
101 | 147 |
self.gridLayout_2.addWidget(self.groupBox_2, 0, 0, 1, 1) |
148 |
self.groupBox_3 = QtWidgets.QGroupBox(ValidationDialog) |
|
149 |
self.groupBox_3.setObjectName("groupBox_3") |
|
150 |
self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_3) |
|
151 |
self.gridLayout_7.setObjectName("gridLayout_7") |
|
152 |
self.gridLayout_6 = QtWidgets.QGridLayout() |
|
153 |
self.gridLayout_6.setObjectName("gridLayout_6") |
|
154 |
self.label_3 = QtWidgets.QLabel(self.groupBox_3) |
|
155 |
font = QtGui.QFont() |
|
156 |
font.setBold(True) |
|
157 |
font.setWeight(75) |
|
158 |
self.label_3.setFont(font) |
|
159 |
self.label_3.setObjectName("label_3") |
|
160 |
self.gridLayout_6.addWidget(self.label_3, 0, 0, 1, 1) |
|
161 |
self.checkBox_14 = QtWidgets.QCheckBox(self.groupBox_3) |
|
162 |
self.checkBox_14.setObjectName("checkBox_14") |
|
163 |
self.gridLayout_6.addWidget(self.checkBox_14, 1, 0, 1, 1) |
|
164 |
self.label_4 = QtWidgets.QLabel(self.groupBox_3) |
|
165 |
font = QtGui.QFont() |
|
166 |
font.setBold(True) |
|
167 |
font.setWeight(75) |
|
168 |
self.label_4.setFont(font) |
|
169 |
self.label_4.setObjectName("label_4") |
|
170 |
self.gridLayout_6.addWidget(self.label_4, 2, 0, 1, 1) |
|
171 |
self.checkBox_15 = QtWidgets.QCheckBox(self.groupBox_3) |
|
172 |
self.checkBox_15.setObjectName("checkBox_15") |
|
173 |
self.gridLayout_6.addWidget(self.checkBox_15, 3, 0, 1, 1) |
|
174 |
self.gridLayout_7.addLayout(self.gridLayout_6, 0, 0, 1, 1) |
|
175 |
self.gridLayout_2.addWidget(self.groupBox_3, 1, 0, 1, 1) |
|
176 |
self.groupBox = QtWidgets.QGroupBox(ValidationDialog) |
|
177 |
self.groupBox.setObjectName("groupBox") |
|
178 |
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox) |
|
179 |
self.gridLayout_4.setObjectName("gridLayout_4") |
|
180 |
self.gridLayout_3 = QtWidgets.QGridLayout() |
|
181 |
self.gridLayout_3.setObjectName("gridLayout_3") |
|
182 |
self.checkBox_27 = QtWidgets.QCheckBox(self.groupBox) |
|
183 |
self.checkBox_27.setObjectName("checkBox_27") |
|
184 |
self.gridLayout_3.addWidget(self.checkBox_27, 1, 1, 1, 1) |
|
185 |
self.checkBox_26 = QtWidgets.QCheckBox(self.groupBox) |
|
186 |
self.checkBox_26.setObjectName("checkBox_26") |
|
187 |
self.gridLayout_3.addWidget(self.checkBox_26, 1, 0, 1, 1) |
|
188 |
self.label_8 = QtWidgets.QLabel(self.groupBox) |
|
189 |
font = QtGui.QFont() |
|
190 |
font.setBold(True) |
|
191 |
font.setWeight(75) |
|
192 |
self.label_8.setFont(font) |
|
193 |
self.label_8.setObjectName("label_8") |
|
194 |
self.gridLayout_3.addWidget(self.label_8, 0, 0, 1, 1) |
|
195 |
self.checkBox_28 = QtWidgets.QCheckBox(self.groupBox) |
|
196 |
self.checkBox_28.setObjectName("checkBox_28") |
|
197 |
self.gridLayout_3.addWidget(self.checkBox_28, 4, 0, 1, 1) |
|
198 |
self.label_7 = QtWidgets.QLabel(self.groupBox) |
|
199 |
font = QtGui.QFont() |
|
200 |
font.setBold(True) |
|
201 |
font.setWeight(75) |
|
202 |
self.label_7.setFont(font) |
|
203 |
self.label_7.setObjectName("label_7") |
|
204 |
self.gridLayout_3.addWidget(self.label_7, 3, 0, 1, 1) |
|
205 |
self.checkBox_29 = QtWidgets.QCheckBox(self.groupBox) |
|
206 |
self.checkBox_29.setObjectName("checkBox_29") |
|
207 |
self.gridLayout_3.addWidget(self.checkBox_29, 2, 0, 1, 1) |
|
208 |
self.gridLayout_4.addLayout(self.gridLayout_3, 0, 0, 1, 1) |
|
209 |
self.gridLayout_2.addWidget(self.groupBox, 3, 0, 1, 1) |
|
210 |
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
|
211 |
self.gridLayout_2.addItem(spacerItem, 4, 0, 1, 1) |
|
102 | 212 |
|
103 | 213 |
self.retranslateUi(ValidationDialog) |
104 | 214 |
self.buttonBox.accepted.connect(ValidationDialog.accept) |
105 | 215 |
self.buttonBox.rejected.connect(ValidationDialog.reject) |
106 | 216 |
QtCore.QMetaObject.connectSlotsByName(ValidationDialog) |
217 |
ValidationDialog.setTabOrder(self.checkBox, self.checkBox_2) |
|
218 |
ValidationDialog.setTabOrder(self.checkBox_2, self.checkBox_3) |
|
219 |
ValidationDialog.setTabOrder(self.checkBox_3, self.checkBox_4) |
|
220 |
ValidationDialog.setTabOrder(self.checkBox_4, self.checkBox_5) |
|
221 |
ValidationDialog.setTabOrder(self.checkBox_5, self.checkBox_6) |
|
222 |
ValidationDialog.setTabOrder(self.checkBox_6, self.checkBox_7) |
|
223 |
ValidationDialog.setTabOrder(self.checkBox_7, self.checkBox_8) |
|
224 |
ValidationDialog.setTabOrder(self.checkBox_8, self.checkBox_30) |
|
225 |
ValidationDialog.setTabOrder(self.checkBox_30, self.checkBox_31) |
|
226 |
ValidationDialog.setTabOrder(self.checkBox_31, self.checkBox_32) |
|
227 |
ValidationDialog.setTabOrder(self.checkBox_32, self.checkBox_9) |
|
228 |
ValidationDialog.setTabOrder(self.checkBox_9, self.checkBox_10) |
|
229 |
ValidationDialog.setTabOrder(self.checkBox_10, self.checkBox_11) |
|
230 |
ValidationDialog.setTabOrder(self.checkBox_11, self.checkBox_12) |
|
231 |
ValidationDialog.setTabOrder(self.checkBox_12, self.checkBox_13) |
|
232 |
ValidationDialog.setTabOrder(self.checkBox_13, self.checkBox_14) |
|
233 |
ValidationDialog.setTabOrder(self.checkBox_14, self.checkBox_15) |
|
234 |
ValidationDialog.setTabOrder(self.checkBox_15, self.checkBox_16) |
|
235 |
ValidationDialog.setTabOrder(self.checkBox_16, self.checkBox_17) |
|
236 |
ValidationDialog.setTabOrder(self.checkBox_17, self.checkBox_20) |
|
237 |
ValidationDialog.setTabOrder(self.checkBox_20, self.checkBox_21) |
|
238 |
ValidationDialog.setTabOrder(self.checkBox_21, self.checkBox_22) |
|
239 |
ValidationDialog.setTabOrder(self.checkBox_22, self.checkBox_23) |
|
240 |
ValidationDialog.setTabOrder(self.checkBox_23, self.checkBox_24) |
|
241 |
ValidationDialog.setTabOrder(self.checkBox_24, self.checkBox_18) |
|
242 |
ValidationDialog.setTabOrder(self.checkBox_18, self.checkBox_19) |
|
243 |
ValidationDialog.setTabOrder(self.checkBox_19, self.checkBox_25) |
|
244 |
ValidationDialog.setTabOrder(self.checkBox_25, self.checkBox_26) |
|
245 |
ValidationDialog.setTabOrder(self.checkBox_26, self.checkBox_27) |
|
246 |
ValidationDialog.setTabOrder(self.checkBox_27, self.checkBox_29) |
|
247 |
ValidationDialog.setTabOrder(self.checkBox_29, self.checkBox_28) |
|
107 | 248 |
|
108 | 249 |
def retranslateUi(self, ValidationDialog): |
109 | 250 |
_translate = QtCore.QCoreApplication.translate |
110 | 251 |
ValidationDialog.setWindowTitle(_translate("ValidationDialog", "Validation")) |
111 |
self.groupBox.setTitle(_translate("ValidationDialog", "Custom Rules")) |
|
112 |
self.groupBox_2.setTitle(_translate("ValidationDialog", "Basic Rules")) |
|
113 |
self.checkBoxSpecBreakError.setText(_translate("ValidationDialog", "check specbreak error")) |
|
114 |
self.checkBoxFlowDirectionError.setText(_translate("ValidationDialog", "check flow direction error")) |
|
115 |
self.checkBoxDuplicatedConnectionError.setText(_translate("ValidationDialog", "check duplicated connection error")) |
|
116 |
self.checkBoxLineTypeError.setText(_translate("ValidationDialog", "check line type error")) |
|
117 |
self.checkBoxSizeError.setText(_translate("ValidationDialog", "check graphic size error")) |
|
118 |
self.checkBoxAssociationError.setText(_translate("ValidationDialog", "check association error")) |
|
119 |
self.checkBoxDisconnectionError.setText(_translate("ValidationDialog", "check disconnection error")) |
|
120 |
self.checkBoxSizeChange.setText(_translate("ValidationDialog", "check size change error")) |
|
121 |
|
|
252 |
self.groupBox_4.setTitle(_translate("ValidationDialog", "Line")) |
|
253 |
self.label_5.setText(_translate("ValidationDialog", "Error")) |
|
254 |
self.checkBox_21.setText(_translate("ValidationDialog", "Disconnected from opposite side")) |
|
255 |
self.checkBox_22.setText(_translate("ValidationDialog", "Mismatched position")) |
|
256 |
self.checkBox_23.setText(_translate("ValidationDialog", "Line position error")) |
|
257 |
self.checkBox_24.setText(_translate("ValidationDialog", "Loop path error")) |
|
258 |
self.checkBox_16.setText(_translate("ValidationDialog", "Line type error")) |
|
259 |
self.label_6.setText(_translate("ValidationDialog", "Warning")) |
|
260 |
self.checkBox_19.setText(_translate("ValidationDialog", "Line overlapping warning")) |
|
261 |
self.checkBox_18.setText(_translate("ValidationDialog", "Disconnection warning")) |
|
262 |
self.checkBox_17.setText(_translate("ValidationDialog", "Duplicated connection error")) |
|
263 |
self.checkBox_20.setText(_translate("ValidationDialog", "Flow direction error")) |
|
264 |
self.checkBox_25.setText(_translate("ValidationDialog", "Line angle warning")) |
|
265 |
self.groupBox_2.setTitle(_translate("ValidationDialog", "Symbol")) |
|
266 |
self.checkBox_10.setText(_translate("ValidationDialog", "No size label warning")) |
|
267 |
self.checkBox_11.setText(_translate("ValidationDialog", "No label warning")) |
|
268 |
self.label_2.setText(_translate("ValidationDialog", "Warning")) |
|
269 |
self.checkBox_13.setText(_translate("ValidationDialog", "Symbol to symbol connection warning")) |
|
270 |
self.checkBox_12.setText(_translate("ValidationDialog", "Symbol overlapping warning")) |
|
271 |
self.label.setText(_translate("ValidationDialog", "Error")) |
|
272 |
self.checkBox_3.setText(_translate("ValidationDialog", "Flow direction error")) |
|
273 |
self.checkBox_2.setText(_translate("ValidationDialog", "Duplicated connection error")) |
|
274 |
self.checkBox_4.setText(_translate("ValidationDialog", "Not combined")) |
|
275 |
self.checkBox.setText(_translate("ValidationDialog", "Line type error")) |
|
276 |
self.checkBox_7.setText(_translate("ValidationDialog", "Association error")) |
|
277 |
self.checkBox_8.setText(_translate("ValidationDialog", "Multiple label error")) |
|
278 |
self.checkBox_6.setText(_translate("ValidationDialog", "Disconnection error")) |
|
279 |
self.checkBox_5.setText(_translate("ValidationDialog", "Disconnected from opposite side")) |
|
280 |
self.checkBox_31.setText(_translate("ValidationDialog", "UpStream or DownStream is None")) |
|
281 |
self.checkBox_30.setText(_translate("ValidationDialog", "UpStream or DownStream is disconnected")) |
|
282 |
self.checkBox_9.setText(_translate("ValidationDialog", "X Mismatched connection point")) |
|
283 |
self.checkBox_32.setText(_translate("ValidationDialog", "UpStream and DownStream is misconnected")) |
|
284 |
self.groupBox_3.setTitle(_translate("ValidationDialog", "Text")) |
|
285 |
self.label_3.setText(_translate("ValidationDialog", "Error")) |
|
286 |
self.checkBox_14.setText(_translate("ValidationDialog", "Association error")) |
|
287 |
self.label_4.setText(_translate("ValidationDialog", "Warning")) |
|
288 |
self.checkBox_15.setText(_translate("ValidationDialog", "Text overlapping warning")) |
|
289 |
self.groupBox.setTitle(_translate("ValidationDialog", "Line No")) |
|
290 |
self.checkBox_27.setText(_translate("ValidationDialog", "Branch size error")) |
|
291 |
self.checkBox_26.setText(_translate("ValidationDialog", "Size change error")) |
|
292 |
self.label_8.setText(_translate("ValidationDialog", "Error")) |
|
293 |
self.checkBox_28.setText(_translate("ValidationDialog", "Main run size warning")) |
|
294 |
self.label_7.setText(_translate("ValidationDialog", "Warning")) |
|
295 |
self.checkBox_29.setText(_translate("ValidationDialog", "From/ To error")) |
|
122 | 296 |
import MainWindow_rc |
123 | 297 |
|
298 |
|
|
124 | 299 |
if __name__ == "__main__": |
125 | 300 |
import sys |
126 | 301 |
app = QtWidgets.QApplication(sys.argv) |
... | ... | |
129 | 304 |
ui.setupUi(ValidationDialog) |
130 | 305 |
ValidationDialog.show() |
131 | 306 |
sys.exit(app.exec_()) |
132 |
|
DTI_PID/DTI_PID/ValidationDialog.py | ||
---|---|---|
23 | 23 |
self.ui.buttonBox.button(QDialogButtonBox.Ok).setIcon(QIcon(':/newPrefix/OK.svg')) |
24 | 24 |
self.ui.buttonBox.button(QDialogButtonBox.Cancel).setIcon(QIcon(':/newPrefix/Remove.svg')) |
25 | 25 |
|
26 |
self.ui.groupBox.setVisible(False) |
|
27 |
self.setFixedHeight(240) |
|
28 |
self.setFixedWidth(350) |
|
26 |
#self.ui.groupBox.setVisible(False)
|
|
27 |
#self.setFixedHeight(240)
|
|
28 |
#self.setFixedWidth(350)
|
|
29 | 29 |
|
30 | 30 |
def accept(self): |
31 | 31 |
QDialog.accept(self) |
내보내기 Unified diff