개정판 4c612af8
Implementing issue #503: 도면 영역 설정
DTI_PID/DTI_PID/App.py | ||
---|---|---|
74 | 74 |
self.actionEqpNozzle.triggered.connect(self.connectEqpNozzle) |
75 | 75 |
self.actionLine.triggered.connect(self.createLine) |
76 | 76 |
self.actionRecognition.triggered.connect(self.recognize) |
77 |
self.actionArea.triggered.connect(self.areaConfiguration) |
|
77 | 78 |
self.actionConfiguration.triggered.connect(self.configuration) |
78 | 79 |
|
79 | 80 |
''' |
81 |
@brief area configuration |
|
82 |
''' |
|
83 |
def areaConfiguration(self): |
|
84 |
from QAreaConfigurationDialog import QAreaConfigurationDialog |
|
85 |
|
|
86 |
self.dlgAreaConfiguration = QAreaConfigurationDialog(self) |
|
87 |
self.dlgAreaConfiguration.show() |
|
88 |
self.dlgAreaConfiguration.exec_() |
|
89 |
|
|
90 |
''' |
|
80 | 91 |
@brief configuration |
81 | 92 |
''' |
82 | 93 |
def configuration(self): |
DTI_PID/DTI_PID/Commands/AbstractCommand.py | ||
---|---|---|
1 |
class AbstractCommand: |
|
1 |
from PyQt5.QtCore import pyqtSignal, QObject |
|
2 |
|
|
3 |
class AbstractCommand(QObject): |
|
2 | 4 |
def __init__(self, imageViewer): |
5 |
super(AbstractCommand, self).__init__() |
|
6 |
|
|
3 | 7 |
self.name = '' |
4 | 8 |
self.imageViewer = imageViewer |
5 | 9 |
self.isTreated = True |
DTI_PID/DTI_PID/Commands/CreateCommand.py | ||
---|---|---|
1 | 1 |
import copy |
2 | 2 |
import AbstractCommand |
3 |
from PyQt5.QtCore import pyqtSignal, QObject |
|
4 |
from PyQt5.QtWidgets import QGraphicsView, QGraphicsScene, QFileDialog, QGraphicsItem, QAbstractGraphicsShapeItem |
|
3 | 5 |
|
4 | 6 |
class CreateCommand(AbstractCommand.AbstractCommand): |
7 |
templateCreated = pyqtSignal(QAbstractGraphicsShapeItem) |
|
8 |
|
|
5 | 9 |
def __init__(self, imageViewer, shape): |
6 |
super(CreateCommand, self).__init__(imageViewer)
|
|
10 |
AbstractCommand.AbstractCommand.__init__(self, imageViewer)
|
|
7 | 11 |
self.name = 'Create' |
8 | 12 |
self.template = shape |
9 | 13 |
|
... | ... | |
23 | 27 |
self.imageViewer.scene.removeItem(self.template) |
24 | 28 |
self.template.init() |
25 | 29 |
self.imageViewer.scene.update() |
30 |
|
|
31 |
self.templateCreated.emit(instance) |
|
32 |
|
|
26 | 33 |
return instance |
27 | 34 |
else: |
28 | 35 |
self.imageViewer.scene.update() |
DTI_PID/DTI_PID/Configuration_Area_UI.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
|
|
3 |
# Form implementation generated from reading ui file 'ui/Configuration_Area.ui' |
|
4 |
# |
|
5 |
# Created by: PyQt5 UI code generator 5.10.1 |
|
6 |
# |
|
7 |
# WARNING! All changes made in this file will be lost! |
|
8 |
|
|
9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
|
10 |
|
|
11 |
class Ui_AreaDialog(object): |
|
12 |
def setupUi(self, AreaDialog): |
|
13 |
AreaDialog.setObjectName("AreaDialog") |
|
14 |
AreaDialog.resize(400, 300) |
|
15 |
font = QtGui.QFont() |
|
16 |
font.setFamily("맑은 고딕") |
|
17 |
AreaDialog.setFont(font) |
|
18 |
self.gridLayout = QtWidgets.QGridLayout(AreaDialog) |
|
19 |
self.gridLayout.setObjectName("gridLayout") |
|
20 |
self.buttonBox = QtWidgets.QDialogButtonBox(AreaDialog) |
|
21 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
|
22 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
|
23 |
self.buttonBox.setObjectName("buttonBox") |
|
24 |
self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 1) |
|
25 |
self.groupBox = QtWidgets.QGroupBox(AreaDialog) |
|
26 |
self.groupBox.setObjectName("groupBox") |
|
27 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) |
|
28 |
self.gridLayout_2.setObjectName("gridLayout_2") |
|
29 |
self.pushButtonNoteArea = QtWidgets.QPushButton(self.groupBox) |
|
30 |
self.pushButtonNoteArea.setMinimumSize(QtCore.QSize(20, 0)) |
|
31 |
self.pushButtonNoteArea.setMaximumSize(QtCore.QSize(24, 16777215)) |
|
32 |
self.pushButtonNoteArea.setObjectName("pushButtonNoteArea") |
|
33 |
self.gridLayout_2.addWidget(self.pushButtonNoteArea, 1, 4, 1, 1) |
|
34 |
self.pushButtonHistoryDataArea = QtWidgets.QPushButton(self.groupBox) |
|
35 |
self.pushButtonHistoryDataArea.setMaximumSize(QtCore.QSize(24, 16777215)) |
|
36 |
self.pushButtonHistoryDataArea.setObjectName("pushButtonHistoryDataArea") |
|
37 |
self.gridLayout_2.addWidget(self.pushButtonHistoryDataArea, 2, 4, 1, 1) |
|
38 |
self.lineEditDrawingNo = QtWidgets.QLineEdit(self.groupBox) |
|
39 |
self.lineEditDrawingNo.setObjectName("lineEditDrawingNo") |
|
40 |
self.gridLayout_2.addWidget(self.lineEditDrawingNo, 5, 1, 1, 1) |
|
41 |
self.pushButtonDrawingNoArea = QtWidgets.QPushButton(self.groupBox) |
|
42 |
self.pushButtonDrawingNoArea.setMaximumSize(QtCore.QSize(24, 16777215)) |
|
43 |
self.pushButtonDrawingNoArea.setObjectName("pushButtonDrawingNoArea") |
|
44 |
self.gridLayout_2.addWidget(self.pushButtonDrawingNoArea, 5, 4, 1, 1) |
|
45 |
self.label_3 = QtWidgets.QLabel(self.groupBox) |
|
46 |
self.label_3.setObjectName("label_3") |
|
47 |
self.gridLayout_2.addWidget(self.label_3, 4, 0, 1, 1) |
|
48 |
self.lineEditRevNo = QtWidgets.QLineEdit(self.groupBox) |
|
49 |
self.lineEditRevNo.setObjectName("lineEditRevNo") |
|
50 |
self.gridLayout_2.addWidget(self.lineEditRevNo, 4, 1, 1, 1) |
|
51 |
self.lineEditNote = QtWidgets.QLineEdit(self.groupBox) |
|
52 |
self.lineEditNote.setObjectName("lineEditNote") |
|
53 |
self.gridLayout_2.addWidget(self.lineEditNote, 1, 1, 1, 1) |
|
54 |
self.pushButtonRevNoArea = QtWidgets.QPushButton(self.groupBox) |
|
55 |
self.pushButtonRevNoArea.setMaximumSize(QtCore.QSize(24, 16777215)) |
|
56 |
self.pushButtonRevNoArea.setObjectName("pushButtonRevNoArea") |
|
57 |
self.gridLayout_2.addWidget(self.pushButtonRevNoArea, 4, 4, 1, 1) |
|
58 |
self.label_4 = QtWidgets.QLabel(self.groupBox) |
|
59 |
self.label_4.setObjectName("label_4") |
|
60 |
self.gridLayout_2.addWidget(self.label_4, 5, 0, 1, 1) |
|
61 |
self.label = QtWidgets.QLabel(self.groupBox) |
|
62 |
self.label.setObjectName("label") |
|
63 |
self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1) |
|
64 |
self.label_2 = QtWidgets.QLabel(self.groupBox) |
|
65 |
self.label_2.setObjectName("label_2") |
|
66 |
self.gridLayout_2.addWidget(self.label_2, 2, 0, 1, 1) |
|
67 |
self.lineEditHistoryData = QtWidgets.QLineEdit(self.groupBox) |
|
68 |
self.lineEditHistoryData.setObjectName("lineEditHistoryData") |
|
69 |
self.gridLayout_2.addWidget(self.lineEditHistoryData, 2, 1, 1, 1) |
|
70 |
self.label_5 = QtWidgets.QLabel(self.groupBox) |
|
71 |
self.label_5.setObjectName("label_5") |
|
72 |
self.gridLayout_2.addWidget(self.label_5, 3, 0, 1, 1) |
|
73 |
self.lineEditArea = QtWidgets.QLineEdit(self.groupBox) |
|
74 |
self.lineEditArea.setObjectName("lineEditArea") |
|
75 |
self.gridLayout_2.addWidget(self.lineEditArea, 3, 1, 1, 1) |
|
76 |
self.pushButtonAreaArea = QtWidgets.QPushButton(self.groupBox) |
|
77 |
self.pushButtonAreaArea.setMaximumSize(QtCore.QSize(24, 16777215)) |
|
78 |
self.pushButtonAreaArea.setObjectName("pushButtonAreaArea") |
|
79 |
self.gridLayout_2.addWidget(self.pushButtonAreaArea, 3, 4, 1, 1) |
|
80 |
self.label_6 = QtWidgets.QLabel(self.groupBox) |
|
81 |
font = QtGui.QFont() |
|
82 |
font.setBold(True) |
|
83 |
font.setWeight(75) |
|
84 |
self.label_6.setFont(font) |
|
85 |
self.label_6.setObjectName("label_6") |
|
86 |
self.gridLayout_2.addWidget(self.label_6, 0, 0, 1, 1) |
|
87 |
self.lineEditDrawing = QtWidgets.QLineEdit(self.groupBox) |
|
88 |
self.lineEditDrawing.setObjectName("lineEditDrawing") |
|
89 |
self.gridLayout_2.addWidget(self.lineEditDrawing, 0, 1, 1, 1) |
|
90 |
self.pushButtonDrawingArea = QtWidgets.QPushButton(self.groupBox) |
|
91 |
self.pushButtonDrawingArea.setMaximumSize(QtCore.QSize(24, 16777215)) |
|
92 |
self.pushButtonDrawingArea.setObjectName("pushButtonDrawingArea") |
|
93 |
self.gridLayout_2.addWidget(self.pushButtonDrawingArea, 0, 4, 1, 1) |
|
94 |
self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 1) |
|
95 |
|
|
96 |
self.retranslateUi(AreaDialog) |
|
97 |
self.buttonBox.accepted.connect(AreaDialog.accept) |
|
98 |
self.buttonBox.rejected.connect(AreaDialog.reject) |
|
99 |
QtCore.QMetaObject.connectSlotsByName(AreaDialog) |
|
100 |
|
|
101 |
def retranslateUi(self, AreaDialog): |
|
102 |
_translate = QtCore.QCoreApplication.translate |
|
103 |
AreaDialog.setWindowTitle(_translate("AreaDialog", "Area")) |
|
104 |
self.groupBox.setTitle(_translate("AreaDialog", "영역")) |
|
105 |
self.pushButtonNoteArea.setText(_translate("AreaDialog", "...")) |
|
106 |
self.pushButtonHistoryDataArea.setText(_translate("AreaDialog", "...")) |
|
107 |
self.pushButtonDrawingNoArea.setText(_translate("AreaDialog", "...")) |
|
108 |
self.label_3.setText(_translate("AreaDialog", "Rev. No : ")) |
|
109 |
self.pushButtonRevNoArea.setText(_translate("AreaDialog", "...")) |
|
110 |
self.label_4.setText(_translate("AreaDialog", "Drawing No : ")) |
|
111 |
self.label.setText(_translate("AreaDialog", "Note : ")) |
|
112 |
self.label_2.setText(_translate("AreaDialog", "History Data : ")) |
|
113 |
self.label_5.setText(_translate("AreaDialog", "Area : ")) |
|
114 |
self.pushButtonAreaArea.setText(_translate("AreaDialog", "...")) |
|
115 |
self.label_6.setText(_translate("AreaDialog", "Drawing")) |
|
116 |
self.pushButtonDrawingArea.setText(_translate("AreaDialog", "...")) |
|
117 |
|
|
118 |
|
|
119 |
if __name__ == "__main__": |
|
120 |
import sys |
|
121 |
app = QtWidgets.QApplication(sys.argv) |
|
122 |
AreaDialog = QtWidgets.QDialog() |
|
123 |
ui = Ui_AreaDialog() |
|
124 |
ui.setupUi(AreaDialog) |
|
125 |
AreaDialog.show() |
|
126 |
sys.exit(app.exec_()) |
|
127 |
|
DTI_PID/DTI_PID/DTI_PID_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file 'UI/DTI__PID.ui'
|
|
3 |
# Form implementation generated from reading ui file 'ui/DTI__PID.ui'
|
|
4 | 4 |
# |
5 | 5 |
# Created by: PyQt5 UI code generator 5.10.1 |
6 | 6 |
# |
... | ... | |
69 | 69 |
self.verticalLayout_2.addWidget(self.listView) |
70 | 70 |
self.gridLayout_3.addLayout(self.verticalLayout_2, 0, 0, 1, 1) |
71 | 71 |
self.tabWidget.addTab(self.Symbol, "") |
72 |
self.Property = QtWidgets.QWidget() |
|
73 |
self.Property.setObjectName("Property") |
|
74 |
self.tabWidget.addTab(self.Property, "") |
|
75 | 72 |
self.gridLayout_2.addWidget(self.tabWidget, 0, 0, 1, 1) |
76 | 73 |
self.dockWidget.setWidget(self.dockWidgetContents) |
77 | 74 |
MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockWidget) |
75 |
self.dockWidgetObjectExplorer = QtWidgets.QDockWidget(MainWindow) |
|
76 |
self.dockWidgetObjectExplorer.setObjectName("dockWidgetObjectExplorer") |
|
77 |
self.dockWidgetContents_2 = QtWidgets.QWidget() |
|
78 |
self.dockWidgetContents_2.setObjectName("dockWidgetContents_2") |
|
79 |
self.gridLayout_4 = QtWidgets.QGridLayout(self.dockWidgetContents_2) |
|
80 |
self.gridLayout_4.setObjectName("gridLayout_4") |
|
81 |
self.verticalLayout_3 = QtWidgets.QVBoxLayout() |
|
82 |
self.verticalLayout_3.setObjectName("verticalLayout_3") |
|
83 |
self.treeWidget = QtWidgets.QTreeWidget(self.dockWidgetContents_2) |
|
84 |
self.treeWidget.setObjectName("treeWidget") |
|
85 |
self.treeWidget.headerItem().setText(0, "1") |
|
86 |
self.verticalLayout_3.addWidget(self.treeWidget) |
|
87 |
self.listView_3 = QtWidgets.QListView(self.dockWidgetContents_2) |
|
88 |
self.listView_3.setObjectName("listView_3") |
|
89 |
self.verticalLayout_3.addWidget(self.listView_3) |
|
90 |
self.gridLayout_4.addLayout(self.verticalLayout_3, 0, 0, 1, 1) |
|
91 |
self.dockWidgetObjectExplorer.setWidget(self.dockWidgetContents_2) |
|
92 |
MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidgetObjectExplorer) |
|
78 | 93 |
self.actionOpen = QtWidgets.QAction(MainWindow) |
79 | 94 |
icon = QtGui.QIcon() |
80 | 95 |
icon.addPixmap(QtGui.QPixmap(":/appPrefix/open-file-icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
... | ... | |
107 | 122 |
self.actionValidate.setObjectName("actionValidate") |
108 | 123 |
self.actionConfiguration = QtWidgets.QAction(MainWindow) |
109 | 124 |
self.actionConfiguration.setObjectName("actionConfiguration") |
125 |
self.actionArea = QtWidgets.QAction(MainWindow) |
|
126 |
self.actionArea.setObjectName("actionArea") |
|
110 | 127 |
self.menu.addAction(self.actionOpen) |
128 |
self.menu.addAction(self.actionArea) |
|
111 | 129 |
self.menu.addAction(self.actionConfiguration) |
112 | 130 |
self.menu.addSeparator() |
113 | 131 |
self.menu.addAction(self.actionClose) |
... | ... | |
128 | 146 |
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) |
129 | 147 |
self.menu.setTitle(_translate("MainWindow", "파일")) |
130 | 148 |
self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar")) |
149 |
self.dockWidget.setWindowTitle(_translate("MainWindow", "심볼 탐색기")) |
|
131 | 150 |
self.pushButtonCreateSymbol.setText(_translate("MainWindow", "생성")) |
132 | 151 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Symbol), _translate("MainWindow", "심볼")) |
133 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Property), _translate("MainWindow", "속성"))
|
|
152 |
self.dockWidgetObjectExplorer.setWindowTitle(_translate("MainWindow", "객체 탐색기"))
|
|
134 | 153 |
self.actionOpen.setText(_translate("MainWindow", "열기")) |
135 | 154 |
self.actionClose.setText(_translate("MainWindow", "종료")) |
136 | 155 |
self.actionRecognition.setText(_translate("MainWindow", "인식")) |
... | ... | |
142 | 161 |
self.actionValidate.setText(_translate("MainWindow", "검사")) |
143 | 162 |
self.actionValidate.setToolTip(_translate("MainWindow", "검사")) |
144 | 163 |
self.actionConfiguration.setText(_translate("MainWindow", "환경 설정")) |
164 |
self.actionArea.setText(_translate("MainWindow", "영역 설정")) |
|
145 | 165 |
|
146 | 166 |
import DTI_PID_rc |
147 | 167 |
|
DTI_PID/DTI_PID/Shapes/QGraphicsBoundingBoxItem.py | ||
---|---|---|
19 | 19 |
self.center = self.rect().center() |
20 | 20 |
self.angle = 0 |
21 | 21 |
self.isSymbol = False |
22 |
self.isCreated = False |
|
23 |
self._vertices = [] |
|
24 |
|
|
25 |
''' |
|
26 |
@brief construct a bounding box item |
|
27 |
''' |
|
28 |
def process(self, param): |
|
29 |
if ('mouseMoveEvent' == param[0]): |
|
30 |
if len(self._vertices) == 1: |
|
31 |
self._vertices.append(param[2]) |
|
32 |
elif len(self._vertices) > 1: |
|
33 |
self._vertices[1] = param[2] |
|
34 |
|
|
35 |
if len(self._vertices) == 2: |
|
36 |
x = min(self._vertices[0].x(), self._vertices[1].x()) |
|
37 |
y = min(self._vertices[0].y(), self._vertices[1].y()) |
|
38 |
dx = abs(self._vertices[0].x() - self._vertices[1].x()) |
|
39 |
dy = abs(self._vertices[0].y() - self._vertices[1].y()) |
|
40 |
self.setRect(x, y, dx, dy) |
|
41 |
elif ('mouseReleaseEvent' == param[0]) and (param[1].button() == Qt.LeftButton): |
|
42 |
if len(self._vertices) == 0: |
|
43 |
self._vertices.append(param[2]) |
|
44 |
elif len(self._vertices) == 1: |
|
45 |
self._vertices.append(param[2]) |
|
46 |
elif len(self._vertices) == 2: |
|
47 |
x = min(self._vertices[0].x(), self._vertices[1].x()) |
|
48 |
y = min(self._vertices[0].y(), self._vertices[1].y()) |
|
49 |
dx = abs(self._vertices[0].x() - self._vertices[1].x()) |
|
50 |
dy = abs(self._vertices[0].y() - self._vertices[1].y()) |
|
51 |
self.setRect(x, y, dx, dy) |
|
52 |
self.isCreated = True |
|
22 | 53 |
|
23 | 54 |
''' |
24 | 55 |
@brief clone an object |
... | ... | |
29 | 60 |
clone.center = self.center |
30 | 61 |
return clone |
31 | 62 |
|
63 |
''' |
|
64 |
@brief initialize |
|
65 |
''' |
|
66 |
def init(self): |
|
67 |
self._vertices = [] |
|
68 |
self.isCreated = False |
|
69 |
|
|
32 | 70 |
def hoverEnterEvent(self, event): |
33 | 71 |
self.isEntered = True |
34 | 72 |
self.scene().update() |
DTI_PID/DTI_PID/UI/Configuration_Area.ui | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<ui version="4.0"> |
|
3 |
<class>AreaDialog</class> |
|
4 |
<widget class="QDialog" name="AreaDialog"> |
|
5 |
<property name="geometry"> |
|
6 |
<rect> |
|
7 |
<x>0</x> |
|
8 |
<y>0</y> |
|
9 |
<width>400</width> |
|
10 |
<height>300</height> |
|
11 |
</rect> |
|
12 |
</property> |
|
13 |
<property name="font"> |
|
14 |
<font> |
|
15 |
<family>맑은 고딕</family> |
|
16 |
</font> |
|
17 |
</property> |
|
18 |
<property name="windowTitle"> |
|
19 |
<string>Area</string> |
|
20 |
</property> |
|
21 |
<layout class="QGridLayout" name="gridLayout"> |
|
22 |
<item row="2" column="0"> |
|
23 |
<widget class="QDialogButtonBox" name="buttonBox"> |
|
24 |
<property name="orientation"> |
|
25 |
<enum>Qt::Horizontal</enum> |
|
26 |
</property> |
|
27 |
<property name="standardButtons"> |
|
28 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
|
29 |
</property> |
|
30 |
</widget> |
|
31 |
</item> |
|
32 |
<item row="1" column="0"> |
|
33 |
<widget class="QGroupBox" name="groupBox"> |
|
34 |
<property name="title"> |
|
35 |
<string>영역</string> |
|
36 |
</property> |
|
37 |
<layout class="QGridLayout" name="gridLayout_2"> |
|
38 |
<item row="1" column="4"> |
|
39 |
<widget class="QPushButton" name="pushButtonNoteArea"> |
|
40 |
<property name="minimumSize"> |
|
41 |
<size> |
|
42 |
<width>20</width> |
|
43 |
<height>0</height> |
|
44 |
</size> |
|
45 |
</property> |
|
46 |
<property name="maximumSize"> |
|
47 |
<size> |
|
48 |
<width>24</width> |
|
49 |
<height>16777215</height> |
|
50 |
</size> |
|
51 |
</property> |
|
52 |
<property name="text"> |
|
53 |
<string>...</string> |
|
54 |
</property> |
|
55 |
</widget> |
|
56 |
</item> |
|
57 |
<item row="2" column="4"> |
|
58 |
<widget class="QPushButton" name="pushButtonHistoryDataArea"> |
|
59 |
<property name="maximumSize"> |
|
60 |
<size> |
|
61 |
<width>24</width> |
|
62 |
<height>16777215</height> |
|
63 |
</size> |
|
64 |
</property> |
|
65 |
<property name="text"> |
|
66 |
<string>...</string> |
|
67 |
</property> |
|
68 |
</widget> |
|
69 |
</item> |
|
70 |
<item row="5" column="1"> |
|
71 |
<widget class="QLineEdit" name="lineEditDrawingNo"/> |
|
72 |
</item> |
|
73 |
<item row="5" column="4"> |
|
74 |
<widget class="QPushButton" name="pushButtonDrawingNoArea"> |
|
75 |
<property name="maximumSize"> |
|
76 |
<size> |
|
77 |
<width>24</width> |
|
78 |
<height>16777215</height> |
|
79 |
</size> |
|
80 |
</property> |
|
81 |
<property name="text"> |
|
82 |
<string>...</string> |
|
83 |
</property> |
|
84 |
</widget> |
|
85 |
</item> |
|
86 |
<item row="4" column="0"> |
|
87 |
<widget class="QLabel" name="label_3"> |
|
88 |
<property name="text"> |
|
89 |
<string>Rev. No : </string> |
|
90 |
</property> |
|
91 |
</widget> |
|
92 |
</item> |
|
93 |
<item row="4" column="1"> |
|
94 |
<widget class="QLineEdit" name="lineEditRevNo"/> |
|
95 |
</item> |
|
96 |
<item row="1" column="1"> |
|
97 |
<widget class="QLineEdit" name="lineEditNote"/> |
|
98 |
</item> |
|
99 |
<item row="4" column="4"> |
|
100 |
<widget class="QPushButton" name="pushButtonRevNoArea"> |
|
101 |
<property name="maximumSize"> |
|
102 |
<size> |
|
103 |
<width>24</width> |
|
104 |
<height>16777215</height> |
|
105 |
</size> |
|
106 |
</property> |
|
107 |
<property name="text"> |
|
108 |
<string>...</string> |
|
109 |
</property> |
|
110 |
</widget> |
|
111 |
</item> |
|
112 |
<item row="5" column="0"> |
|
113 |
<widget class="QLabel" name="label_4"> |
|
114 |
<property name="text"> |
|
115 |
<string>Drawing No : </string> |
|
116 |
</property> |
|
117 |
</widget> |
|
118 |
</item> |
|
119 |
<item row="1" column="0"> |
|
120 |
<widget class="QLabel" name="label"> |
|
121 |
<property name="text"> |
|
122 |
<string>Note : </string> |
|
123 |
</property> |
|
124 |
</widget> |
|
125 |
</item> |
|
126 |
<item row="2" column="0"> |
|
127 |
<widget class="QLabel" name="label_2"> |
|
128 |
<property name="text"> |
|
129 |
<string>History Data : </string> |
|
130 |
</property> |
|
131 |
</widget> |
|
132 |
</item> |
|
133 |
<item row="2" column="1"> |
|
134 |
<widget class="QLineEdit" name="lineEditHistoryData"/> |
|
135 |
</item> |
|
136 |
<item row="3" column="0"> |
|
137 |
<widget class="QLabel" name="label_5"> |
|
138 |
<property name="text"> |
|
139 |
<string>Area : </string> |
|
140 |
</property> |
|
141 |
</widget> |
|
142 |
</item> |
|
143 |
<item row="3" column="1"> |
|
144 |
<widget class="QLineEdit" name="lineEditArea"/> |
|
145 |
</item> |
|
146 |
<item row="3" column="4"> |
|
147 |
<widget class="QPushButton" name="pushButtonAreaArea"> |
|
148 |
<property name="maximumSize"> |
|
149 |
<size> |
|
150 |
<width>24</width> |
|
151 |
<height>16777215</height> |
|
152 |
</size> |
|
153 |
</property> |
|
154 |
<property name="text"> |
|
155 |
<string>...</string> |
|
156 |
</property> |
|
157 |
</widget> |
|
158 |
</item> |
|
159 |
<item row="0" column="0"> |
|
160 |
<widget class="QLabel" name="label_6"> |
|
161 |
<property name="font"> |
|
162 |
<font> |
|
163 |
<weight>75</weight> |
|
164 |
<bold>true</bold> |
|
165 |
</font> |
|
166 |
</property> |
|
167 |
<property name="text"> |
|
168 |
<string>Drawing</string> |
|
169 |
</property> |
|
170 |
</widget> |
|
171 |
</item> |
|
172 |
<item row="0" column="1"> |
|
173 |
<widget class="QLineEdit" name="lineEditDrawing"/> |
|
174 |
</item> |
|
175 |
<item row="0" column="4"> |
|
176 |
<widget class="QPushButton" name="pushButtonDrawingArea"> |
|
177 |
<property name="maximumSize"> |
|
178 |
<size> |
|
179 |
<width>24</width> |
|
180 |
<height>16777215</height> |
|
181 |
</size> |
|
182 |
</property> |
|
183 |
<property name="text"> |
|
184 |
<string>...</string> |
|
185 |
</property> |
|
186 |
</widget> |
|
187 |
</item> |
|
188 |
</layout> |
|
189 |
</widget> |
|
190 |
</item> |
|
191 |
</layout> |
|
192 |
</widget> |
|
193 |
<resources/> |
|
194 |
<connections> |
|
195 |
<connection> |
|
196 |
<sender>buttonBox</sender> |
|
197 |
<signal>accepted()</signal> |
|
198 |
<receiver>AreaDialog</receiver> |
|
199 |
<slot>accept()</slot> |
|
200 |
<hints> |
|
201 |
<hint type="sourcelabel"> |
|
202 |
<x>248</x> |
|
203 |
<y>254</y> |
|
204 |
</hint> |
|
205 |
<hint type="destinationlabel"> |
|
206 |
<x>157</x> |
|
207 |
<y>274</y> |
|
208 |
</hint> |
|
209 |
</hints> |
|
210 |
</connection> |
|
211 |
<connection> |
|
212 |
<sender>buttonBox</sender> |
|
213 |
<signal>rejected()</signal> |
|
214 |
<receiver>AreaDialog</receiver> |
|
215 |
<slot>reject()</slot> |
|
216 |
<hints> |
|
217 |
<hint type="sourcelabel"> |
|
218 |
<x>316</x> |
|
219 |
<y>260</y> |
|
220 |
</hint> |
|
221 |
<hint type="destinationlabel"> |
|
222 |
<x>286</x> |
|
223 |
<y>274</y> |
|
224 |
</hint> |
|
225 |
</hints> |
|
226 |
</connection> |
|
227 |
</connections> |
|
228 |
</ui> |
DTI_PID/DTI_PID/UI/DTI__PID.ui | ||
---|---|---|
45 | 45 |
<string>파일</string> |
46 | 46 |
</property> |
47 | 47 |
<addaction name="actionOpen"/> |
48 |
<addaction name="actionArea"/> |
|
48 | 49 |
<addaction name="actionConfiguration"/> |
49 | 50 |
<addaction name="separator"/> |
50 | 51 |
<addaction name="actionClose"/> |
... | ... | |
83 | 84 |
<addaction name="actionValidate"/> |
84 | 85 |
</widget> |
85 | 86 |
<widget class="QDockWidget" name="dockWidget"> |
87 |
<property name="windowTitle"> |
|
88 |
<string>심볼 탐색기</string> |
|
89 |
</property> |
|
86 | 90 |
<attribute name="dockWidgetArea"> |
87 | 91 |
<number>2</number> |
88 | 92 |
</attribute> |
... | ... | |
117 | 121 |
</item> |
118 | 122 |
</layout> |
119 | 123 |
</widget> |
120 |
<widget class="QWidget" name="Property"> |
|
121 |
<attribute name="title"> |
|
122 |
<string>속성</string> |
|
123 |
</attribute> |
|
124 |
</widget> |
|
125 | 124 |
</widget> |
126 | 125 |
</item> |
127 | 126 |
</layout> |
128 | 127 |
</widget> |
129 | 128 |
</widget> |
129 |
<widget class="QDockWidget" name="dockWidgetObjectExplorer"> |
|
130 |
<property name="windowTitle"> |
|
131 |
<string>객체 탐색기</string> |
|
132 |
</property> |
|
133 |
<attribute name="dockWidgetArea"> |
|
134 |
<number>1</number> |
|
135 |
</attribute> |
|
136 |
<widget class="QWidget" name="dockWidgetContents_2"> |
|
137 |
<layout class="QGridLayout" name="gridLayout_4"> |
|
138 |
<item row="0" column="0"> |
|
139 |
<layout class="QVBoxLayout" name="verticalLayout_3"> |
|
140 |
<item> |
|
141 |
<widget class="QTreeWidget" name="treeWidget"> |
|
142 |
<column> |
|
143 |
<property name="text"> |
|
144 |
<string notr="true">1</string> |
|
145 |
</property> |
|
146 |
</column> |
|
147 |
</widget> |
|
148 |
</item> |
|
149 |
<item> |
|
150 |
<widget class="QListView" name="listView_3"/> |
|
151 |
</item> |
|
152 |
</layout> |
|
153 |
</item> |
|
154 |
</layout> |
|
155 |
</widget> |
|
156 |
</widget> |
|
130 | 157 |
<action name="actionOpen"> |
131 | 158 |
<property name="icon"> |
132 | 159 |
<iconset resource="../res/DTI_PID.qrc"> |
... | ... | |
200 | 227 |
<string>환경 설정</string> |
201 | 228 |
</property> |
202 | 229 |
</action> |
230 |
<action name="actionArea"> |
|
231 |
<property name="text"> |
|
232 |
<string>영역 설정</string> |
|
233 |
</property> |
|
234 |
</action> |
|
203 | 235 |
</widget> |
204 | 236 |
<resources> |
205 | 237 |
<include location="../res/DTI_PID.qrc"/> |
내보내기 Unified diff