개정판 8ade462e
issue #000: fix shortcut and line gui
Change-Id: I7b68c54a189712ae4148b553612b7dcc2edc13db
DTI_PID/DTI_PID/MainWindow_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file './ui/MainWindow.ui'
|
|
3 |
# Form implementation generated from reading ui file './UI/MainWindow.ui'
|
|
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.12
|
|
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
|
6 | 6 |
# |
7 | 7 |
# WARNING! All changes made in this file will be lost! |
8 | 8 |
|
9 | 9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
10 | 10 |
|
11 |
|
|
12 | 11 |
class Ui_MainWindow(object): |
13 | 12 |
def setupUi(self, MainWindow): |
14 | 13 |
MainWindow.setObjectName("MainWindow") |
... | ... | |
525 | 524 |
self.actionOpen.setShortcut(_translate("MainWindow", "Ctrl+O")) |
526 | 525 |
self.actionClose.setText(_translate("MainWindow", "Exit")) |
527 | 526 |
self.actionRecognition.setText(_translate("MainWindow", "Recognize Eng. Info.")) |
528 |
self.actionRecognition.setToolTip(_translate("MainWindow", "Recognize Eng. Info.(Ctrl + R)")) |
|
529 |
self.actionRecognition.setShortcut(_translate("MainWindow", "Ctrl+R")) |
|
527 |
self.actionRecognition.setToolTip(_translate("MainWindow", "Recognize Eng. Info.")) |
|
530 | 528 |
self.actionLine.setText(_translate("MainWindow", "Create Line")) |
531 | 529 |
self.actionLine.setToolTip(_translate("MainWindow", "Create Line(L)")) |
532 | 530 |
self.actionLine.setShortcut(_translate("MainWindow", "L")) |
... | ... | |
578 | 576 |
self.actionVendor.setToolTip(_translate("MainWindow", "Set Vendor Package")) |
579 | 577 |
self.actionViewVendor_Area.setText(_translate("MainWindow", "Vendor Area(7)")) |
580 | 578 |
|
581 |
|
|
582 | 579 |
import MainWindow_rc |
580 |
|
|
581 |
if __name__ == "__main__": |
|
582 |
import sys |
|
583 |
app = QtWidgets.QApplication(sys.argv) |
|
584 |
MainWindow = QtWidgets.QMainWindow() |
|
585 |
ui = Ui_MainWindow() |
|
586 |
ui.setupUi(MainWindow) |
|
587 |
MainWindow.show() |
|
588 |
sys.exit(app.exec_()) |
|
589 |
|
DTI_PID/DTI_PID/QtImageViewer.py | ||
---|---|---|
63 | 63 |
self.command = None |
64 | 64 |
self.scene = QGraphicsScene(self) |
65 | 65 |
self.setScene(self.scene) |
66 |
self.scene.setBackgroundBrush(Qt.white)
|
|
66 |
self.scene.setBackgroundBrush(Qt.lightGray)
|
|
67 | 67 |
|
68 | 68 |
self.scaleFactor = 1.0 |
69 | 69 |
self.numScheduledScalings = 0 |
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
439 | 439 |
for pts in connectedLines: |
440 | 440 |
processLine = QEngineeringLineItem(vertices=[(area.x + param[0], area.y + param[1]) for param in pts[:-1]], thickness=pts[2]) |
441 | 441 |
processLine.area = 'Drawing' |
442 |
processLine.lineType = 'Primary' |
|
442 | 443 |
|
443 | 444 |
appDocData.lines.append(processLine) |
444 | 445 |
appDocData.allItems.append(processLine) |
DTI_PID/DTI_PID/UI/MainWindow.ui | ||
---|---|---|
487 | 487 |
<string>Recognize Eng. Info.</string> |
488 | 488 |
</property> |
489 | 489 |
<property name="toolTip"> |
490 |
<string>Recognize Eng. Info.(Ctrl + R)</string>
|
|
490 |
<string>Recognize Eng. Info.</string> |
|
491 | 491 |
</property> |
492 | 492 |
<property name="font"> |
493 | 493 |
<font> |
... | ... | |
496 | 496 |
<bold>true</bold> |
497 | 497 |
</font> |
498 | 498 |
</property> |
499 |
<property name="shortcut"> |
|
500 |
<string>Ctrl+R</string> |
|
501 |
</property> |
|
502 | 499 |
</action> |
503 | 500 |
<action name="actionLine"> |
504 | 501 |
<property name="checkable"> |
내보내기 Unified diff