개정판 05092b2a
add delete shortcut(E), display type change shortcut(W)
Change-Id: I1c92a0c0d32c526a38915c6903229d63738705db
DTI_PID/DTI_PID/AppRibbon.py | ||
---|---|---|
96 | 96 |
|
97 | 97 |
shortcut = QShortcut(QKeySequence(Qt.Key_Z), parent) |
98 | 98 |
shortcut.activated.connect(main_wnd.onAreaZoom) |
99 |
shortcut = QShortcut(QKeySequence(Qt.Key_W), parent) |
|
100 |
shortcut.activated.connect(main_wnd.change_display_colors) |
|
99 | 101 |
|
100 | 102 |
shortcut = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_F), parent) |
101 | 103 |
shortcut.activated.connect(main_wnd.findReplaceTextClicked) |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1588 | 1588 |
|
1589 | 1589 |
self.symbolTreeWidget.expandAll() |
1590 | 1590 |
|
1591 |
def change_display_colors(self): |
|
1592 |
""" change display color mode """ |
|
1593 |
visualization_pane = self.ribbon.get_pane('Home Visualization') |
|
1594 |
if visualization_pane.ui.radioButtonByGroup.isChecked(): |
|
1595 |
visualization_pane.ui.radioButtonByType.setChecked(True) |
|
1596 |
else: |
|
1597 |
visualization_pane.ui.radioButtonByGroup.setChecked(True) |
|
1598 |
|
|
1591 | 1599 |
def display_colors(self, value): |
1592 | 1600 |
""" display colors """ |
1593 | 1601 |
from DisplayColors import DisplayColors |
DTI_PID/DTI_PID/QtImageViewerScene.py | ||
---|---|---|
73 | 73 |
from FlipCommand import FlipCommand |
74 | 74 |
|
75 | 75 |
try: |
76 |
if event.key() == Qt.Key_Delete: |
|
76 |
if event.key() == Qt.Key_Delete or event.key() == Qt.Key_E:
|
|
77 | 77 |
cmd = DeleteCommand(self, [item for item in self.selectedItems() if hasattr(item, 'transfer')]) |
78 | 78 |
self._undo_stack.push(cmd) |
79 | 79 |
elif event.key() in [Qt.Key_Up, Qt.Key_Down, Qt.Key_Left, Qt.Key_Right]: |
내보내기 Unified diff