개정판 30f3baf4
issue #000 도면 오픈 시 Parent 체크
Change-Id: I8f4f7586b215d06b70168d51a46da69b8d6ffe1a
HYTOS/HYTOS/MainWindow.py | ||
---|---|---|
112 | 112 |
self.graphicsView.setMouseTracking(True) |
113 | 113 |
self.graphicsView.viewport().installEventFilter(self) |
114 | 114 |
|
115 |
self._display_widget = QWidget() |
|
116 |
layout = QVBoxLayout() |
|
117 |
self._by_line_no = QRadioButton() |
|
118 |
self._by_line_no.setChecked(True) |
|
119 |
self._by_line_no.setText('By Group') |
|
120 |
self._by_line_no.toggled.connect(self.display_colors) |
|
121 |
layout.addWidget(self._by_line_no) |
|
122 |
self._by_line_type = QRadioButton() |
|
123 |
self._by_line_type.setText('By Type') |
|
124 |
layout.addWidget(self._by_line_type) |
|
125 |
self._display_widget.setLayout(layout) |
|
126 |
self.EditToolbar.insertWidget(None, self._display_widget) |
|
127 |
self._by_line_no.setChecked(True) if DisplayColors.instance().option == DisplayOptions.DisplayByLineNo else self._by_line_type.setChecked(True) |
|
128 |
|
|
129 | 115 |
self.verticalLayout.addWidget(self.graphicsView) |
130 | 116 |
|
131 | 117 |
# Add Custom TreeWidget |
... | ... | |
440 | 426 |
@author humkyung |
441 | 427 |
@date 18.11.02 |
442 | 428 |
""" |
443 |
|
|
444 |
self.open_border_file() |
|
445 |
|
|
446 |
self.load_data(item.text(0)) |
|
447 |
|
|
448 |
|
|
449 |
#appDocData = AppDocData.instance() |
|
450 |
#src = appDocData.getBorderImagePath() |
|
451 |
|
|
452 |
#project = appDocData.getCurrentProject() |
|
453 |
#desc = os.path.join(project.getDrawingFilePath(), item.text(0) + '.png') |
|
454 |
#file = QFile(src) |
|
455 |
#file.copy(desc) |
|
456 |
#self.onOpenImageDrawing(desc) |
|
457 |
|
|
458 |
|
|
459 |
|
|
460 |
|
|
461 |
|
|
429 |
if item.parent() is not None: |
|
430 |
self.open_border_file() |
|
431 |
self.load_data(item.text(0)) |
|
462 | 432 |
|
463 |
|
|
464 | 433 |
''' |
465 | 434 |
@brief OCR Editor |
466 | 435 |
@author euisung |
내보내기 Unified diff