개정판 3432b794
add psn ui and method
Change-Id: Ib6b9f2c9f19b4bc25f6e2c54d6d611f48a4bb0e7
DTI_PID/DTI_PID/AppRibbon.py | ||
---|---|---|
190 | 190 |
pane.ui.toolButtonSpecialItemTypes.clicked.connect(main_wnd.on_show_special_item_types) |
191 | 191 |
pane.ui.toolButtonOPCRelation.clicked.connect(main_wnd.on_show_opc_relation) |
192 | 192 |
pane.ui.toolButtonCodeTable.clicked.connect(main_wnd.onShowCodeTable) |
193 |
pane.ui.toolButtonPSN.clicked.connect(main_wnd.onShowPSN) |
|
193 | 194 |
pane.ui.toolButtonCustomCodeTable.clicked.connect(main_wnd.onShowCustomCodeTable) |
194 | 195 |
pane.ui.toolButtonReplaceCodeTable.clicked.connect(main_wnd.onShowReplaceCodeTable) |
195 | 196 |
pane.ui.toolButtonGlobalValidation.clicked.connect(main_wnd.on_validation_global_clicked) |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1437 | 1437 |
self.graphicsView.scene().removeItem(dlg.desc_area) |
1438 | 1438 |
self.graphicsView.useDefaultCommand() |
1439 | 1439 | |
1440 |
def onShowPSN(self): |
|
1441 |
# here! |
|
1442 |
a = 1 |
|
1443 | ||
1440 | 1444 |
def onShowCustomCodeTable(self): |
1441 | 1445 |
from CustomCodeTablesDialog import CustomCodeTablesDialog |
1442 | 1446 |
DTI_PID/DTI_PID/UI/Data.ui | ||
---|---|---|
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="7">
|
|
38 |
<widget class="QToolButton" name="toolButtonCodeTable">
|
|
39 | 39 |
<property name="text"> |
40 |
<string>Engineering Info.
|
|
41 |
List</string>
|
|
40 |
<string>Code Table
|
|
41 |
</string> |
|
42 | 42 |
</property> |
43 | 43 |
<property name="icon"> |
44 | 44 |
<iconset resource="../res/MainWindow.qrc"> |
45 |
<normaloff>:/newPrefix/EngineeringInfoList.svg</normaloff>:/newPrefix/EngineeringInfoList.svg</iconset>
|
|
45 |
<normaloff>:/newPrefix/table_32px.svg</normaloff>:/newPrefix/table_32px.svg</iconset>
|
|
46 | 46 |
</property> |
47 | 47 |
<property name="iconSize"> |
48 | 48 |
<size> |
... | ... | |
58 | 58 |
</property> |
59 | 59 |
</widget> |
60 | 60 |
</item> |
61 |
<item row="0" column="6">
|
|
62 |
<widget class="Line" name="line_2">
|
|
61 |
<item row="0" column="14">
|
|
62 |
<widget class="Line" name="line_4">
|
|
63 | 63 |
<property name="orientation"> |
64 | 64 |
<enum>Qt::Vertical</enum> |
65 | 65 |
</property> |
66 | 66 |
</widget> |
67 | 67 |
</item> |
68 |
<item row="0" column="4"> |
|
69 |
<widget class="QToolButton" name="toolButtonSpecialItemTypes"> |
|
68 |
<item row="0" column="12"> |
|
69 |
<widget class="Line" name="line_3"> |
|
70 |
<property name="orientation"> |
|
71 |
<enum>Qt::Vertical</enum> |
|
72 |
</property> |
|
73 |
</widget> |
|
74 |
</item> |
|
75 |
<item row="0" column="16"> |
|
76 |
<widget class="QToolButton" name="toolButtonSymbolTraining"> |
|
70 | 77 |
<property name="text"> |
71 |
<string>Special Item
|
|
72 |
</string> |
|
78 |
<string>Symbol
|
|
79 |
Training</string>
|
|
73 | 80 |
</property> |
74 | 81 |
<property name="icon"> |
75 | 82 |
<iconset resource="../res/MainWindow.qrc"> |
76 |
<normaloff>:/newPrefix/Special.svg</normaloff>:/newPrefix/Special.svg</iconset>
|
|
83 |
<normaloff>:/newPrefix/Valve.svg</normaloff>:/newPrefix/Valve.svg</iconset>
|
|
77 | 84 |
</property> |
78 | 85 |
<property name="iconSize"> |
79 | 86 |
<size> |
... | ... | |
89 | 96 |
</property> |
90 | 97 |
</widget> |
91 | 98 |
</item> |
92 |
<item row="0" column="12">
|
|
93 |
<widget class="QToolButton" name="toolButtonGlobalValidation">
|
|
99 |
<item row="0" column="15">
|
|
100 |
<widget class="QToolButton" name="toolButtonOCRTraining">
|
|
94 | 101 |
<property name="text"> |
95 |
<string>Global
|
|
96 |
Validation</string>
|
|
102 |
<string>OCR
|
|
103 |
Training</string>
|
|
97 | 104 |
</property> |
98 | 105 |
<property name="icon"> |
99 | 106 |
<iconset resource="../res/MainWindow.qrc"> |
100 |
<normaloff>:/newPrefix/Validation.svg</normaloff>:/newPrefix/Validation.svg</iconset>
|
|
107 |
<normaloff>:/newPrefix/OCR.svg</normaloff>:/newPrefix/OCR.svg</iconset>
|
|
101 | 108 |
</property> |
102 | 109 |
<property name="iconSize"> |
103 | 110 |
<size> |
... | ... | |
113 | 120 |
</property> |
114 | 121 |
</widget> |
115 | 122 |
</item> |
116 |
<item row="0" column="16">
|
|
117 |
<widget class="QToolButton" name="toolButtonMakeLabelData">
|
|
123 |
<item row="0" column="2">
|
|
124 |
<widget class="QToolButton" name="toolButtonLineList">
|
|
118 | 125 |
<property name="text"> |
119 |
<string>Make
|
|
120 |
Label Data</string>
|
|
126 |
<string>Line List
|
|
127 |
</string> |
|
121 | 128 |
</property> |
122 | 129 |
<property name="icon"> |
123 | 130 |
<iconset resource="../res/MainWindow.qrc"> |
124 |
<normaloff>:/newPrefix/Training.svg</normaloff>:/newPrefix/Training.svg</iconset>
|
|
131 |
<normaloff>:/newPrefix/EngineeringInfoList.svg</normaloff>:/newPrefix/EngineeringInfoList.svg</iconset>
|
|
125 | 132 |
</property> |
126 | 133 |
<property name="iconSize"> |
127 | 134 |
<size> |
... | ... | |
137 | 144 |
</property> |
138 | 145 |
</widget> |
139 | 146 |
</item> |
140 |
<item row="0" column="9">
|
|
141 |
<widget class="QToolButton" name="toolButtonReplaceCodeTable">
|
|
147 |
<item row="0" column="5">
|
|
148 |
<widget class="QToolButton" name="toolButtonOPCRelation">
|
|
142 | 149 |
<property name="text"> |
143 |
<string>Replace
|
|
144 |
Code Table</string>
|
|
150 |
<string>OPC
|
|
151 |
</string> |
|
145 | 152 |
</property> |
146 | 153 |
<property name="icon"> |
147 | 154 |
<iconset resource="../res/MainWindow.qrc"> |
148 |
<normaloff>:/newPrefix/table_32px.svg</normaloff>:/newPrefix/table_32px.svg</iconset>
|
|
155 |
<normaloff>:/newPrefix/OPC.svg</normaloff>:/newPrefix/OPC.svg</iconset>
|
|
149 | 156 |
</property> |
150 | 157 |
<property name="iconSize"> |
151 | 158 |
<size> |
... | ... | |
185 | 192 |
</property> |
186 | 193 |
</widget> |
187 | 194 |
</item> |
195 |
<item row="0" column="4"> |
|
196 |
<widget class="QToolButton" name="toolButtonSpecialItemTypes"> |
|
197 |
<property name="text"> |
|
198 |
<string>Special Item |
|
199 |
</string> |
|
200 |
</property> |
|
201 |
<property name="icon"> |
|
202 |
<iconset resource="../res/MainWindow.qrc"> |
|
203 |
<normaloff>:/newPrefix/Special.svg</normaloff>:/newPrefix/Special.svg</iconset> |
|
204 |
</property> |
|
205 |
<property name="iconSize"> |
|
206 |
<size> |
|
207 |
<width>32</width> |
|
208 |
<height>32</height> |
|
209 |
</size> |
|
210 |
</property> |
|
211 |
<property name="toolButtonStyle"> |
|
212 |
<enum>Qt::ToolButtonTextUnderIcon</enum> |
|
213 |
</property> |
|
214 |
<property name="autoRaise"> |
|
215 |
<bool>true</bool> |
|
216 |
</property> |
|
217 |
</widget> |
|
218 |
</item> |
|
188 | 219 |
<item row="0" column="0"> |
189 | 220 |
<widget class="QToolButton" name="toolButtonHMBData"> |
190 | 221 |
<property name="text"> |
... | ... | |
216 | 247 |
</property> |
217 | 248 |
</widget> |
218 | 249 |
</item> |
219 |
<item row="0" column="5">
|
|
220 |
<widget class="QToolButton" name="toolButtonOPCRelation">
|
|
250 |
<item row="0" column="13">
|
|
251 |
<widget class="QToolButton" name="toolButtonGlobalValidation">
|
|
221 | 252 |
<property name="text"> |
222 |
<string>OPC
|
|
223 |
</string> |
|
253 |
<string>Global
|
|
254 |
Validation</string>
|
|
224 | 255 |
</property> |
225 | 256 |
<property name="icon"> |
226 | 257 |
<iconset resource="../res/MainWindow.qrc"> |
227 |
<normaloff>:/newPrefix/OPC.svg</normaloff>:/newPrefix/OPC.svg</iconset>
|
|
258 |
<normaloff>:/newPrefix/Validation.svg</normaloff>:/newPrefix/Validation.svg</iconset>
|
|
228 | 259 |
</property> |
229 | 260 |
<property name="iconSize"> |
230 | 261 |
<size> |
... | ... | |
240 | 271 |
</property> |
241 | 272 |
</widget> |
242 | 273 |
</item> |
243 |
<item row="0" column="15">
|
|
244 |
<widget class="QToolButton" name="toolButtonSymbolTraining">
|
|
274 |
<item row="0" column="1"> |
|
275 |
<widget class="QToolButton" name="toolButtonEngInfoList">
|
|
245 | 276 |
<property name="text"> |
246 |
<string>Symbol
|
|
247 |
Training</string>
|
|
277 |
<string>Engineering Info.
|
|
278 |
List</string>
|
|
248 | 279 |
</property> |
249 | 280 |
<property name="icon"> |
250 | 281 |
<iconset resource="../res/MainWindow.qrc"> |
251 |
<normaloff>:/newPrefix/Valve.svg</normaloff>:/newPrefix/Valve.svg</iconset>
|
|
282 |
<normaloff>:/newPrefix/EngineeringInfoList.svg</normaloff>:/newPrefix/EngineeringInfoList.svg</iconset>
|
|
252 | 283 |
</property> |
253 | 284 |
<property name="iconSize"> |
254 | 285 |
<size> |
... | ... | |
264 | 295 |
</property> |
265 | 296 |
</widget> |
266 | 297 |
</item> |
267 |
<item row="0" column="7"> |
|
268 |
<widget class="QToolButton" name="toolButtonCodeTable"> |
|
298 |
<item row="0" column="6"> |
|
299 |
<widget class="Line" name="line_2"> |
|
300 |
<property name="orientation"> |
|
301 |
<enum>Qt::Vertical</enum> |
|
302 |
</property> |
|
303 |
</widget> |
|
304 |
</item> |
|
305 |
<item row="0" column="17"> |
|
306 |
<widget class="QToolButton" name="toolButtonMakeLabelData"> |
|
269 | 307 |
<property name="text"> |
270 |
<string>Code Table
|
|
271 |
</string> |
|
308 |
<string>Make
|
|
309 |
Label Data</string>
|
|
272 | 310 |
</property> |
273 | 311 |
<property name="icon"> |
274 | 312 |
<iconset resource="../res/MainWindow.qrc"> |
275 |
<normaloff>:/newPrefix/table_32px.svg</normaloff>:/newPrefix/table_32px.svg</iconset>
|
|
313 |
<normaloff>:/newPrefix/Training.svg</normaloff>:/newPrefix/Training.svg</iconset>
|
|
276 | 314 |
</property> |
277 | 315 |
<property name="iconSize"> |
278 | 316 |
<size> |
... | ... | |
288 | 326 |
</property> |
289 | 327 |
</widget> |
290 | 328 |
</item> |
291 |
<item row="0" column="13"> |
|
292 |
<widget class="Line" name="line_4"> |
|
293 |
<property name="orientation"> |
|
294 |
<enum>Qt::Vertical</enum> |
|
295 |
</property> |
|
296 |
</widget> |
|
297 |
</item> |
|
298 |
<item row="0" column="11"> |
|
299 |
<widget class="Line" name="line_3"> |
|
300 |
<property name="orientation"> |
|
301 |
<enum>Qt::Vertical</enum> |
|
302 |
</property> |
|
303 |
</widget> |
|
304 |
</item> |
|
305 |
<item row="0" column="14"> |
|
306 |
<widget class="QToolButton" name="toolButtonOCRTraining"> |
|
329 |
<item row="0" column="9"> |
|
330 |
<widget class="QToolButton" name="toolButtonReplaceCodeTable"> |
|
307 | 331 |
<property name="text"> |
308 |
<string>OCR
|
|
309 |
Training</string>
|
|
332 |
<string>Replace
|
|
333 |
Code Table</string>
|
|
310 | 334 |
</property> |
311 | 335 |
<property name="icon"> |
312 | 336 |
<iconset resource="../res/MainWindow.qrc"> |
313 |
<normaloff>:/newPrefix/OCR.svg</normaloff>:/newPrefix/OCR.svg</iconset>
|
|
337 |
<normaloff>:/newPrefix/table_32px.svg</normaloff>:/newPrefix/table_32px.svg</iconset>
|
|
314 | 338 |
</property> |
315 | 339 |
<property name="iconSize"> |
316 | 340 |
<size> |
... | ... | |
326 | 350 |
</property> |
327 | 351 |
</widget> |
328 | 352 |
</item> |
329 |
<item row="0" column="2">
|
|
330 |
<widget class="QToolButton" name="toolButtonLineList">
|
|
353 |
<item row="0" column="10" alignment="Qt::AlignTop">
|
|
354 |
<widget class="QToolButton" name="toolButtonPSN">
|
|
331 | 355 |
<property name="text"> |
332 |
<string>Line List |
|
333 |
</string> |
|
356 |
<string>PSN</string> |
|
334 | 357 |
</property> |
335 | 358 |
<property name="icon"> |
336 | 359 |
<iconset resource="../res/MainWindow.qrc"> |
337 |
<normaloff>:/newPrefix/EngineeringInfoList.svg</normaloff>:/newPrefix/EngineeringInfoList.svg</iconset>
|
|
360 |
<normaloff>:/newPrefix/table_32px.svg</normaloff>:/newPrefix/table_32px.svg</iconset>
|
|
338 | 361 |
</property> |
339 | 362 |
<property name="iconSize"> |
340 | 363 |
<size> |
내보내기 Unified diff