개정판 9fcce12a
add short key for open, save
DTI_PID/DTI_PID/Commands/DefaultCommand.py | ||
---|---|---|
99 | 99 |
xmlStr = QApplication.clipboard().text() |
100 | 100 |
if xmlStr.find('<SYMBOL>') > -1 and xmlStr.find('</SYMBOL>') > -1: |
101 | 101 |
self.copySymbol(QApplication.clipboard().text()) |
102 |
elif 'keyPressEvent' == param[0] and (event.modifiers() == Qt.ControlModifier and event.key() == Qt.Key_S): |
|
103 |
self.imageViewer.mainWindow.saveToXml(True) |
|
104 | 102 |
|
105 | 103 |
self.isTreated = False |
106 | 104 |
else: |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
169 | 169 |
''' |
170 | 170 |
def actionSaveCliked(self): |
171 | 171 |
self.saveToXml(True) |
172 |
|
|
172 | 173 |
''' |
173 | 174 |
@brief save items to xml |
174 | 175 |
@author kyouho |
DTI_PID/DTI_PID/MainWindow_UI.py | ||
---|---|---|
381 | 381 |
self.pushButtonClearLog.setToolTip(_translate("MainWindow", "삭제")) |
382 | 382 |
self.pushButtonClearLog.setText(_translate("MainWindow", "X")) |
383 | 383 |
self.actionOpen.setText(_translate("MainWindow", "열기")) |
384 |
self.actionOpen.setToolTip(_translate("MainWindow", "열기(Ctrl + O)")) |
|
385 |
self.actionOpen.setShortcut(_translate("MainWindow", "Ctrl+O")) |
|
384 | 386 |
self.actionClose.setText(_translate("MainWindow", "종료")) |
385 | 387 |
self.actionRecognition.setText(_translate("MainWindow", "설계 정보 인식")) |
386 | 388 |
self.actionRecognition.setToolTip(_translate("MainWindow", "설계 정보 인식")) |
... | ... | |
412 | 414 |
self.actionpdf_to_image.setText(_translate("MainWindow", "PDF 변환")) |
413 | 415 |
self.actionHMB_DATA.setText(_translate("MainWindow", "HMB 데이타")) |
414 | 416 |
self.actionSave.setText(_translate("MainWindow", "저장")) |
417 |
self.actionSave.setToolTip(_translate("MainWindow", "저장(Ctrl + S)")) |
|
418 |
self.actionSave.setShortcut(_translate("MainWindow", "Ctrl+S")) |
|
415 | 419 |
self.actionRotate.setText(_translate("MainWindow", "회전")) |
416 |
self.actionRotate.setToolTip(_translate("MainWindow", "회전")) |
|
420 |
self.actionRotate.setToolTip(_translate("MainWindow", "회전(Ctrl + R)"))
|
|
417 | 421 |
self.actionRotate.setShortcut(_translate("MainWindow", "Ctrl+R")) |
418 | 422 |
|
419 | 423 |
import MainWindow_rc |
DTI_PID/DTI_PID/UI/MainWindow.ui | ||
---|---|---|
273 | 273 |
<property name="text"> |
274 | 274 |
<string>열기</string> |
275 | 275 |
</property> |
276 |
<property name="toolTip"> |
|
277 |
<string>열기(Ctrl + O)</string> |
|
278 |
</property> |
|
276 | 279 |
<property name="font"> |
277 | 280 |
<font> |
278 | 281 |
<family>맑은 고딕</family> |
279 | 282 |
</font> |
280 | 283 |
</property> |
284 |
<property name="shortcut"> |
|
285 |
<string>Ctrl+O</string> |
|
286 |
</property> |
|
281 | 287 |
</action> |
282 | 288 |
<action name="actionClose"> |
283 | 289 |
<property name="text"> |
... | ... | |
645 | 651 |
<property name="text"> |
646 | 652 |
<string>저장</string> |
647 | 653 |
</property> |
654 |
<property name="toolTip"> |
|
655 |
<string>저장(Ctrl + S)</string> |
|
656 |
</property> |
|
657 |
<property name="shortcut"> |
|
658 |
<string>Ctrl+S</string> |
|
659 |
</property> |
|
648 | 660 |
</action> |
649 | 661 |
<action name="actionRotate"> |
650 | 662 |
<property name="icon"> |
... | ... | |
655 | 667 |
<string>회전</string> |
656 | 668 |
</property> |
657 | 669 |
<property name="toolTip"> |
658 |
<string>회전</string> |
|
670 |
<string>회전(Ctrl + R)</string>
|
|
659 | 671 |
</property> |
660 | 672 |
<property name="shortcut"> |
661 | 673 |
<string>Ctrl+R</string> |
내보내기 Unified diff