개정판 30a35908
symbol edit optimize
Change-Id: Iea55f0f6713bb4834ef9809f19b6e77d02a11558
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
2505 | 2505 |
if target_symbol: |
2506 | 2506 |
return |
2507 | 2507 |
elif event.key() == Qt.Key_X: |
2508 |
pass |
|
2509 |
''' |
|
2508 | 2510 |
app_doc_data = AppDocData.instance() |
2509 | 2511 |
configs = app_doc_data.getAppConfigs('app', 'mode') |
2510 | 2512 |
if configs and 1 == len(configs) and 'advanced' == configs[0].value: |
... | ... | |
2514 | 2516 |
item = self.symbolTreeWidget.currentItem() |
2515 | 2517 |
if item: |
2516 | 2518 |
self.symbolTreeWidget.showSymbolEditorDialog(item, 0) |
2519 |
''' |
|
2517 | 2520 |
elif event.key() == Qt.Key_F6: |
2518 | 2521 |
from DEXPI import scene_to_dexpi |
2519 | 2522 |
|
DTI_PID/DTI_PID/SymbolTreeWidget.py | ||
---|---|---|
322 | 322 |
AppDocData.instance().getCurrentProject(), |
323 | 323 |
sym, True) |
324 | 324 |
(isAccepted, isImmediateInsert, offsetX, offsetY, newSym) = symbolEditorDialog.showDialog() |
325 |
self.initSymbolTreeView() |
|
325 |
if isAccepted: |
|
326 |
self.initSymbolTreeView() |
|
326 | 327 |
elif sym: |
327 | 328 |
# for symbol data and detection image |
328 | 329 |
path = sym.getPath() |
... | ... | |
331 | 332 |
AppDocData.instance().getCurrentProject(), |
332 | 333 |
sym, False) |
333 | 334 |
(isAccepted, isImmediateInsert, offsetX, offsetY, newSym) = symbolEditorDialog.showDialog() |
334 |
self.initSymbolTreeView() |
|
335 |
if isAccepted: |
|
336 |
self.initSymbolTreeView() |
|
335 | 337 |
else: |
336 | 338 |
QMessageBox.about(self, self.tr('Error'), self.tr('Error occurs during loading symbol data.')) |
337 | 339 |
except Exception as ex: |
내보내기 Unified diff