개정판 2193e6a4
fix line owner
Change-Id: I8036dcd95d566553ec4ee2b987d9287db48752c4
DTI_PID/DTI_PID/ImportTextFromCAD_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file '.\UI\ImportTextFromCAD.ui'
|
|
3 |
# Form implementation generated from reading ui file './UI/ImportTextFromCAD.ui'
|
|
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.15.1
|
|
5 |
# Created by: PyQt5 UI code generator 5.9.2
|
|
6 | 6 |
# |
7 |
# WARNING: Any manual changes made to this file will be lost when pyuic5 is |
|
8 |
# run again. Do not edit this file unless you know what you are doing. |
|
9 |
|
|
7 |
# WARNING! All changes made in this file will be lost! |
|
10 | 8 |
|
11 | 9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
12 | 10 |
|
13 |
|
|
14 | 11 |
class Ui_ImportTextFromCADDialog(object): |
15 | 12 |
def setupUi(self, ImportTextFromCADDialog): |
16 | 13 |
ImportTextFromCADDialog.setObjectName("ImportTextFromCADDialog") |
17 |
ImportTextFromCADDialog.resize(696, 644)
|
|
14 |
ImportTextFromCADDialog.resize(696, 728)
|
|
18 | 15 |
ImportTextFromCADDialog.setMinimumSize(QtCore.QSize(650, 79)) |
19 |
ImportTextFromCADDialog.setMaximumSize(QtCore.QSize(16777215, 650))
|
|
16 |
ImportTextFromCADDialog.setMaximumSize(QtCore.QSize(16777215, 999999))
|
|
20 | 17 |
font = QtGui.QFont() |
21 | 18 |
font.setFamily("맑은 고딕") |
22 | 19 |
font.setBold(True) |
... | ... | |
26 | 23 |
self.verticalLayout.setObjectName("verticalLayout") |
27 | 24 |
self.gridLayout = QtWidgets.QGridLayout() |
28 | 25 |
self.gridLayout.setObjectName("gridLayout") |
29 |
self.pushButtonAuto = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
30 |
self.pushButtonAuto.setObjectName("pushButtonAuto") |
|
31 |
self.gridLayout.addWidget(self.pushButtonAuto, 6, 3, 1, 1) |
|
26 |
self.label_7 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
27 |
self.label_7.setObjectName("label_7") |
|
28 |
self.gridLayout.addWidget(self.label_7, 10, 0, 1, 1) |
|
29 |
self.listViewExcludeLayers = QtWidgets.QListView(ImportTextFromCADDialog) |
|
30 |
self.listViewExcludeLayers.setObjectName("listViewExcludeLayers") |
|
31 |
self.gridLayout.addWidget(self.listViewExcludeLayers, 10, 1, 1, 3) |
|
32 |
self.label_6 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
33 |
self.label_6.setObjectName("label_6") |
|
34 |
self.gridLayout.addWidget(self.label_6, 9, 0, 1, 1) |
|
35 |
self.label_3 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
36 |
self.label_3.setObjectName("label_3") |
|
37 |
self.gridLayout.addWidget(self.label_3, 5, 0, 1, 1) |
|
38 |
self.label = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
39 |
self.label.setObjectName("label") |
|
40 |
self.gridLayout.addWidget(self.label, 4, 0, 1, 1) |
|
41 |
self.spinBoxX = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
|
42 |
self.spinBoxX.setMinimumSize(QtCore.QSize(0, 0)) |
|
43 |
self.spinBoxX.setMinimum(-50000) |
|
44 |
self.spinBoxX.setMaximum(50000) |
|
45 |
self.spinBoxX.setObjectName("spinBoxX") |
|
46 |
self.gridLayout.addWidget(self.spinBoxX, 4, 1, 1, 1) |
|
47 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
48 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
49 |
self.checkBoxLine = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
50 |
self.checkBoxLine.setChecked(False) |
|
51 |
self.checkBoxLine.setObjectName("checkBoxLine") |
|
52 |
self.horizontalLayout_2.addWidget(self.checkBoxLine) |
|
53 |
self.checkBoxText = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
54 |
self.checkBoxText.setChecked(True) |
|
55 |
self.checkBoxText.setObjectName("checkBoxText") |
|
56 |
self.horizontalLayout_2.addWidget(self.checkBoxText) |
|
57 |
self.checkBoxSymbol = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
58 |
self.checkBoxSymbol.setObjectName("checkBoxSymbol") |
|
59 |
self.horizontalLayout_2.addWidget(self.checkBoxSymbol) |
|
60 |
self.gridLayout.addLayout(self.horizontalLayout_2, 12, 0, 1, 2) |
|
61 |
self.label_2 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
62 |
self.label_2.setMinimumSize(QtCore.QSize(50, 0)) |
|
63 |
self.label_2.setObjectName("label_2") |
|
64 |
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) |
|
65 |
self.doubleSpinBox_2 = QtWidgets.QDoubleSpinBox(ImportTextFromCADDialog) |
|
66 |
self.doubleSpinBox_2.setDecimals(6) |
|
67 |
self.doubleSpinBox_2.setMaximum(9999.9999) |
|
68 |
self.doubleSpinBox_2.setObjectName("doubleSpinBox_2") |
|
69 |
self.gridLayout.addWidget(self.doubleSpinBox_2, 9, 2, 1, 1) |
|
70 |
self.label_5 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
71 |
self.label_5.setObjectName("label_5") |
|
72 |
self.gridLayout.addWidget(self.label_5, 8, 0, 1, 1) |
|
73 |
self.spinBoxY = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
|
74 |
self.spinBoxY.setMinimum(-50000) |
|
75 |
self.spinBoxY.setMaximum(50000) |
|
76 |
self.spinBoxY.setObjectName("spinBoxY") |
|
77 |
self.gridLayout.addWidget(self.spinBoxY, 4, 2, 1, 1) |
|
78 |
self.pushButtonClose = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
79 |
icon = QtGui.QIcon() |
|
80 |
icon.addPixmap(QtGui.QPixmap(":/newPrefix/Remove.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
81 |
self.pushButtonClose.setIcon(icon) |
|
82 |
self.pushButtonClose.setObjectName("pushButtonClose") |
|
83 |
self.gridLayout.addWidget(self.pushButtonClose, 12, 3, 1, 1) |
|
84 |
self.lineEdit_2 = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
|
85 |
self.lineEdit_2.setObjectName("lineEdit_2") |
|
86 |
self.gridLayout.addWidget(self.lineEdit_2, 8, 1, 1, 2) |
|
87 |
self.pushButtonImport = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
88 |
icon1 = QtGui.QIcon() |
|
89 |
icon1.addPixmap(QtGui.QPixmap(":/newPrefix/OK.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
90 |
self.pushButtonImport.setIcon(icon1) |
|
91 |
self.pushButtonImport.setObjectName("pushButtonImport") |
|
92 |
self.gridLayout.addWidget(self.pushButtonImport, 12, 2, 1, 1) |
|
93 |
self.doubleSpinBox = QtWidgets.QDoubleSpinBox(ImportTextFromCADDialog) |
|
94 |
self.doubleSpinBox.setDecimals(6) |
|
95 |
self.doubleSpinBox.setMaximum(9999.9999) |
|
96 |
self.doubleSpinBox.setObjectName("doubleSpinBox") |
|
97 |
self.gridLayout.addWidget(self.doubleSpinBox, 9, 1, 1, 1) |
|
98 |
self.toolButtonCAD = QtWidgets.QToolButton(ImportTextFromCADDialog) |
|
99 |
self.toolButtonCAD.setText("") |
|
100 |
icon2 = QtGui.QIcon() |
|
101 |
icon2.addPixmap(QtGui.QPixmap(":/newPrefix/File.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
102 |
self.toolButtonCAD.setIcon(icon2) |
|
103 |
self.toolButtonCAD.setObjectName("toolButtonCAD") |
|
104 |
self.gridLayout.addWidget(self.toolButtonCAD, 0, 4, 1, 1) |
|
105 |
self.pushButtonSave = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
106 |
icon3 = QtGui.QIcon() |
|
107 |
icon3.addPixmap(QtGui.QPixmap(":/newPrefix/Save.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
108 |
self.pushButtonSave.setIcon(icon3) |
|
109 |
self.pushButtonSave.setObjectName("pushButtonSave") |
|
110 |
self.gridLayout.addWidget(self.pushButtonSave, 11, 1, 1, 3) |
|
111 |
self.label_4 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
112 |
self.label_4.setObjectName("label_4") |
|
113 |
self.gridLayout.addWidget(self.label_4, 7, 0, 1, 1) |
|
114 |
self.lineEditCAD = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
|
115 |
self.lineEditCAD.setObjectName("lineEditCAD") |
|
116 |
self.gridLayout.addWidget(self.lineEditCAD, 0, 1, 1, 3) |
|
32 | 117 |
self.horizontalLayout = QtWidgets.QHBoxLayout() |
33 | 118 |
self.horizontalLayout.setObjectName("horizontalLayout") |
34 | 119 |
self.spinBoxTextX = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
... | ... | |
48 | 133 |
self.gridLayout.addLayout(self.horizontalLayout, 5, 1, 1, 3) |
49 | 134 |
self.lineEdit = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
50 | 135 |
self.lineEdit.setObjectName("lineEdit") |
51 |
self.gridLayout.addWidget(self.lineEdit, 6, 1, 1, 2) |
|
52 |
self.lineEditCAD = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
|
53 |
self.lineEditCAD.setObjectName("lineEditCAD") |
|
54 |
self.gridLayout.addWidget(self.lineEditCAD, 0, 1, 1, 3) |
|
55 |
self.pushButtonSave = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
56 |
icon = QtGui.QIcon() |
|
57 |
icon.addPixmap(QtGui.QPixmap(":/newPrefix/Save.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
58 |
self.pushButtonSave.setIcon(icon) |
|
59 |
self.pushButtonSave.setObjectName("pushButtonSave") |
|
60 |
self.gridLayout.addWidget(self.pushButtonSave, 10, 1, 1, 3) |
|
61 |
self.toolButtonCAD = QtWidgets.QToolButton(ImportTextFromCADDialog) |
|
62 |
self.toolButtonCAD.setText("") |
|
63 |
icon1 = QtGui.QIcon() |
|
64 |
icon1.addPixmap(QtGui.QPixmap(":/newPrefix/File.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
65 |
self.toolButtonCAD.setIcon(icon1) |
|
66 |
self.toolButtonCAD.setObjectName("toolButtonCAD") |
|
67 |
self.gridLayout.addWidget(self.toolButtonCAD, 0, 4, 1, 1) |
|
68 |
self.label_4 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
69 |
self.label_4.setObjectName("label_4") |
|
70 |
self.gridLayout.addWidget(self.label_4, 6, 0, 1, 1) |
|
136 |
self.gridLayout.addWidget(self.lineEdit, 7, 1, 1, 2) |
|
137 |
self.pushButtonAuto = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
138 |
self.pushButtonAuto.setObjectName("pushButtonAuto") |
|
139 |
self.gridLayout.addWidget(self.pushButtonAuto, 7, 3, 1, 1) |
|
140 |
self.label_8 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
141 |
self.label_8.setObjectName("label_8") |
|
142 |
self.gridLayout.addWidget(self.label_8, 6, 0, 1, 1) |
|
143 |
self.spinBoxSymbolX = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
|
144 |
self.spinBoxSymbolX.setMinimum(-50000) |
|
145 |
self.spinBoxSymbolX.setMaximum(50000) |
|
146 |
self.spinBoxSymbolX.setObjectName("spinBoxSymbolX") |
|
147 |
self.gridLayout.addWidget(self.spinBoxSymbolX, 6, 1, 1, 1) |
|
148 |
self.spinBoxSymbolY = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
|
149 |
self.spinBoxSymbolY.setMinimum(-50000) |
|
150 |
self.spinBoxSymbolY.setMaximum(50000) |
|
151 |
self.spinBoxSymbolY.setObjectName("spinBoxSymbolY") |
|
152 |
self.gridLayout.addWidget(self.spinBoxSymbolY, 6, 2, 1, 1) |
|
71 | 153 |
self.tabWidgetEntities = QtWidgets.QTabWidget(ImportTextFromCADDialog) |
72 | 154 |
self.tabWidgetEntities.setObjectName("tabWidgetEntities") |
73 | 155 |
self.tabLineTypes = QtWidgets.QWidget() |
... | ... | |
87 | 169 |
self.gridLayout_3.addWidget(self.treeViewSymbolMapping, 0, 0, 1, 1) |
88 | 170 |
self.tabWidgetEntities.addTab(self.tabSymbols, "") |
89 | 171 |
self.gridLayout.addWidget(self.tabWidgetEntities, 2, 0, 1, 4) |
90 |
self.label_5 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
91 |
self.label_5.setObjectName("label_5") |
|
92 |
self.gridLayout.addWidget(self.label_5, 7, 0, 1, 1) |
|
93 |
self.doubleSpinBox = QtWidgets.QDoubleSpinBox(ImportTextFromCADDialog) |
|
94 |
self.doubleSpinBox.setDecimals(6) |
|
95 |
self.doubleSpinBox.setObjectName("doubleSpinBox") |
|
96 |
self.gridLayout.addWidget(self.doubleSpinBox, 8, 1, 1, 1) |
|
97 |
self.doubleSpinBox_2 = QtWidgets.QDoubleSpinBox(ImportTextFromCADDialog) |
|
98 |
self.doubleSpinBox_2.setDecimals(6) |
|
99 |
self.doubleSpinBox_2.setObjectName("doubleSpinBox_2") |
|
100 |
self.gridLayout.addWidget(self.doubleSpinBox_2, 8, 2, 1, 1) |
|
101 |
self.label_6 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
102 |
self.label_6.setObjectName("label_6") |
|
103 |
self.gridLayout.addWidget(self.label_6, 8, 0, 1, 1) |
|
104 |
self.lineEdit_2 = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
|
105 |
self.lineEdit_2.setObjectName("lineEdit_2") |
|
106 |
self.gridLayout.addWidget(self.lineEdit_2, 7, 1, 1, 2) |
|
107 |
self.spinBoxY = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
|
108 |
self.spinBoxY.setMinimum(-50000) |
|
109 |
self.spinBoxY.setMaximum(50000) |
|
110 |
self.spinBoxY.setObjectName("spinBoxY") |
|
111 |
self.gridLayout.addWidget(self.spinBoxY, 4, 2, 1, 1) |
|
112 |
self.spinBoxX = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
|
113 |
self.spinBoxX.setMinimumSize(QtCore.QSize(0, 0)) |
|
114 |
self.spinBoxX.setMinimum(-50000) |
|
115 |
self.spinBoxX.setMaximum(50000) |
|
116 |
self.spinBoxX.setObjectName("spinBoxX") |
|
117 |
self.gridLayout.addWidget(self.spinBoxX, 4, 1, 1, 1) |
|
118 |
self.pushButtonImport = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
119 |
icon2 = QtGui.QIcon() |
|
120 |
icon2.addPixmap(QtGui.QPixmap(":/newPrefix/OK.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
121 |
self.pushButtonImport.setIcon(icon2) |
|
122 |
self.pushButtonImport.setObjectName("pushButtonImport") |
|
123 |
self.gridLayout.addWidget(self.pushButtonImport, 11, 2, 1, 1) |
|
124 |
self.label_3 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
125 |
self.label_3.setObjectName("label_3") |
|
126 |
self.gridLayout.addWidget(self.label_3, 5, 0, 1, 1) |
|
127 |
self.label = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
128 |
self.label.setObjectName("label") |
|
129 |
self.gridLayout.addWidget(self.label, 4, 0, 1, 1) |
|
130 |
self.pushButtonClose = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
131 |
icon3 = QtGui.QIcon() |
|
132 |
icon3.addPixmap(QtGui.QPixmap(":/newPrefix/Remove.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
133 |
self.pushButtonClose.setIcon(icon3) |
|
134 |
self.pushButtonClose.setObjectName("pushButtonClose") |
|
135 |
self.gridLayout.addWidget(self.pushButtonClose, 11, 3, 1, 1) |
|
136 |
self.label_2 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
137 |
self.label_2.setMinimumSize(QtCore.QSize(50, 0)) |
|
138 |
self.label_2.setObjectName("label_2") |
|
139 |
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) |
|
140 |
self.label_7 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
141 |
self.label_7.setObjectName("label_7") |
|
142 |
self.gridLayout.addWidget(self.label_7, 9, 0, 1, 1) |
|
143 |
self.listViewExcludeLayers = QtWidgets.QListView(ImportTextFromCADDialog) |
|
144 |
self.listViewExcludeLayers.setObjectName("listViewExcludeLayers") |
|
145 |
self.gridLayout.addWidget(self.listViewExcludeLayers, 9, 1, 1, 3) |
|
146 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
147 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
148 |
self.checkBoxLine = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
149 |
self.checkBoxLine.setChecked(True) |
|
150 |
self.checkBoxLine.setObjectName("checkBoxLine") |
|
151 |
self.horizontalLayout_2.addWidget(self.checkBoxLine) |
|
152 |
self.checkBoxText = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
153 |
self.checkBoxText.setChecked(True) |
|
154 |
self.checkBoxText.setObjectName("checkBoxText") |
|
155 |
self.horizontalLayout_2.addWidget(self.checkBoxText) |
|
156 |
self.checkBoxSymbol = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
157 |
self.checkBoxSymbol.setObjectName("checkBoxSymbol") |
|
158 |
self.horizontalLayout_2.addWidget(self.checkBoxSymbol) |
|
159 |
self.gridLayout.addLayout(self.horizontalLayout_2, 11, 0, 1, 2) |
|
160 | 172 |
self.verticalLayout.addLayout(self.gridLayout) |
161 | 173 |
self.errorLabel = QtWidgets.QLabel(ImportTextFromCADDialog) |
162 | 174 |
self.errorLabel.setMaximumSize(QtCore.QSize(16777215, 0)) |
... | ... | |
173 | 185 |
def retranslateUi(self, ImportTextFromCADDialog): |
174 | 186 |
_translate = QtCore.QCoreApplication.translate |
175 | 187 |
ImportTextFromCADDialog.setWindowTitle(_translate("ImportTextFromCADDialog", "Import AutoCAD")) |
176 |
self.pushButtonAuto.setText(_translate("ImportTextFromCADDialog", "Auto Cal.")) |
|
177 |
self.lineEditCAD.setPlaceholderText(_translate("ImportTextFromCADDialog", "Select AutoCAD File(s)")) |
|
178 |
self.pushButtonSave.setText(_translate("ImportTextFromCADDialog", "Save Mapping")) |
|
179 |
self.label_4.setText(_translate("ImportTextFromCADDialog", "Search Text 1(Line No.) :")) |
|
180 |
self.tabWidgetEntities.setTabText(self.tabWidgetEntities.indexOf(self.tabLineTypes), _translate("ImportTextFromCADDialog", "Line Types")) |
|
181 |
self.tabWidgetEntities.setTabText(self.tabWidgetEntities.indexOf(self.tabSymbols), _translate("ImportTextFromCADDialog", "Symbols")) |
|
182 |
self.label_5.setText(_translate("ImportTextFromCADDialog", "Search Text 2(Line No.) :")) |
|
188 |
self.label_7.setText(_translate("ImportTextFromCADDialog", "Exclude Layers")) |
|
183 | 189 |
self.label_6.setText(_translate("ImportTextFromCADDialog", "Scale :")) |
184 |
self.pushButtonImport.setToolTip(_translate("ImportTextFromCADDialog", "Only horizontal and vertical lines")) |
|
185 |
self.pushButtonImport.setText(_translate("ImportTextFromCADDialog", "Import")) |
|
186 | 190 |
self.label_3.setText(_translate("ImportTextFromCADDialog", "Text Offset(x, y, scale) : ")) |
187 | 191 |
self.label.setText(_translate("ImportTextFromCADDialog", "Line Offset(x, y) : ")) |
188 |
self.pushButtonClose.setText(_translate("ImportTextFromCADDialog", "Close")) |
|
189 |
self.label_2.setText(_translate("ImportTextFromCADDialog", "AutoCAD Files : ")) |
|
190 |
self.label_7.setText(_translate("ImportTextFromCADDialog", "Exclude Layers")) |
|
191 | 192 |
self.checkBoxLine.setText(_translate("ImportTextFromCADDialog", "Line")) |
192 | 193 |
self.checkBoxText.setText(_translate("ImportTextFromCADDialog", "Text")) |
193 | 194 |
self.checkBoxSymbol.setText(_translate("ImportTextFromCADDialog", "Symbol")) |
195 |
self.label_2.setText(_translate("ImportTextFromCADDialog", "AutoCAD Files : ")) |
|
196 |
self.label_5.setText(_translate("ImportTextFromCADDialog", "Search Text 2(Line No.) :")) |
|
197 |
self.pushButtonClose.setText(_translate("ImportTextFromCADDialog", "Close")) |
|
198 |
self.pushButtonImport.setToolTip(_translate("ImportTextFromCADDialog", "Only horizontal and vertical lines")) |
|
199 |
self.pushButtonImport.setText(_translate("ImportTextFromCADDialog", "Import")) |
|
200 |
self.pushButtonSave.setText(_translate("ImportTextFromCADDialog", "Save Mapping")) |
|
201 |
self.label_4.setText(_translate("ImportTextFromCADDialog", "Search Text 1(Line No.) :")) |
|
202 |
self.lineEditCAD.setPlaceholderText(_translate("ImportTextFromCADDialog", "Select AutoCAD File(s)")) |
|
203 |
self.pushButtonAuto.setText(_translate("ImportTextFromCADDialog", "Auto Cal.")) |
|
204 |
self.label_8.setText(_translate("ImportTextFromCADDialog", "Symbol Offset(x, y) : ")) |
|
205 |
self.tabWidgetEntities.setTabText(self.tabWidgetEntities.indexOf(self.tabLineTypes), _translate("ImportTextFromCADDialog", "Line Types")) |
|
206 |
self.tabWidgetEntities.setTabText(self.tabWidgetEntities.indexOf(self.tabSymbols), _translate("ImportTextFromCADDialog", "Symbols")) |
|
207 |
|
|
194 | 208 |
import MainWindow_rc |
209 |
|
|
210 |
if __name__ == "__main__": |
|
211 |
import sys |
|
212 |
app = QtWidgets.QApplication(sys.argv) |
|
213 |
ImportTextFromCADDialog = QtWidgets.QDialog() |
|
214 |
ui = Ui_ImportTextFromCADDialog() |
|
215 |
ui.setupUi(ImportTextFromCADDialog) |
|
216 |
ImportTextFromCADDialog.show() |
|
217 |
sys.exit(app.exec_()) |
|
218 |
|
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
87 | 87 |
else: |
88 | 88 |
return False |
89 | 89 |
|
90 |
if DisplayOptions.DisplayByStreamNo == DisplayColors.instance().option and \ |
|
91 |
(issubclass(type(self), SymbolSvgItem) or type(self) is QEngineeringLineItem): |
|
92 |
app_doc_data = AppDocData.instance() |
|
93 |
res = check_stream_no_attribute() |
|
94 |
if res and res in app_doc_data._hmbColors: |
|
95 |
return app_doc_data._hmbColors[res] |
|
96 |
else: |
|
97 |
return QEngineeringAbstractItem.DEFAULT_COLOR |
|
98 |
|
|
99 |
if type(self) is QEngineeringEquipmentItem: |
|
100 |
# if DisplayOptions.DisplayByLineType == DisplayColors.instance().option: |
|
101 |
if self.hover: |
|
102 |
return SymbolSvgItem.HOVER_COLOR |
|
103 |
elif not QEngineeringEquipmentItem.EQUIP_COLOR: |
|
90 |
try: |
|
91 |
if DisplayOptions.DisplayByStreamNo == DisplayColors.instance().option and \ |
|
92 |
(issubclass(type(self), SymbolSvgItem) or type(self) is QEngineeringLineItem): |
|
104 | 93 |
app_doc_data = AppDocData.instance() |
105 |
configs = app_doc_data.getConfigs('Equipment', 'Color')
|
|
106 |
QEngineeringEquipmentItem.EQUIP_COLOR = configs[
|
|
107 |
0].value if configs else QEngineeringAbstractItem.DEFAULT_COLOR
|
|
108 |
|
|
109 |
return QEngineeringEquipmentItem.EQUIP_COLOR
|
|
94 |
res = check_stream_no_attribute()
|
|
95 |
if res and res in app_doc_data._hmbColors:
|
|
96 |
return app_doc_data._hmbColors[res]
|
|
97 |
else: |
|
98 |
return QEngineeringAbstractItem.DEFAULT_COLOR
|
|
110 | 99 |
|
111 |
elif type(self) is QEngineeringInstrumentItem: |
|
112 |
if self.hover: |
|
100 |
if type(self) is QEngineeringEquipmentItem: |
|
101 |
# if DisplayOptions.DisplayByLineType == DisplayColors.instance().option: |
|
102 |
if self.hover: |
|
113 | 103 |
return SymbolSvgItem.HOVER_COLOR |
114 |
elif DisplayOptions.DisplayByLineType == DisplayColors.instance().option: |
|
115 |
if not QEngineeringInstrumentItem.INST_COLOR: |
|
104 |
elif not QEngineeringEquipmentItem.EQUIP_COLOR: |
|
116 | 105 |
app_doc_data = AppDocData.instance() |
117 |
configs = app_doc_data.getConfigs('Instrument', 'Color')
|
|
118 |
QEngineeringInstrumentItem.INST_COLOR = configs[
|
|
106 |
configs = app_doc_data.getConfigs('Equipment', 'Color')
|
|
107 |
QEngineeringEquipmentItem.EQUIP_COLOR = configs[
|
|
119 | 108 |
0].value if configs else QEngineeringAbstractItem.DEFAULT_COLOR |
120 |
return QEngineeringInstrumentItem.INST_COLOR |
|
121 |
else: |
|
122 |
return self.owner._color if self.owner and hasattr(self.owner, '_color') else self._color |
|
123 |
|
|
124 |
elif type(self) is SymbolSvgItem: |
|
125 |
return SymbolSvgItem.HOVER_COLOR if self.hover else ( \ |
|
126 |
self.owner._color if self.owner and hasattr(self.owner, '_color') else self._color) |
|
127 | 109 |
|
128 |
elif type(self) is QEngineeringLineItem: |
|
129 |
if self.hover: |
|
130 |
return QEngineeringAbstractItem.HOVER_COLOR |
|
131 |
elif self.isSelected(): |
|
132 |
return QEngineeringAbstractItem.SELECTED_COLOR |
|
133 |
elif DisplayOptions.DisplayByLineType == DisplayColors.instance().option: |
|
134 |
if self.lineType in QEngineeringLineItem.LINE_TYPE_COLORS: |
|
135 |
return QEngineeringLineItem.LINE_TYPE_COLORS[self.lineType] |
|
110 |
return QEngineeringEquipmentItem.EQUIP_COLOR |
|
111 |
|
|
112 |
elif type(self) is QEngineeringInstrumentItem: |
|
113 |
if self.hover: |
|
114 |
return SymbolSvgItem.HOVER_COLOR |
|
115 |
elif DisplayOptions.DisplayByLineType == DisplayColors.instance().option: |
|
116 |
if not QEngineeringInstrumentItem.INST_COLOR: |
|
117 |
app_doc_data = AppDocData.instance() |
|
118 |
configs = app_doc_data.getConfigs('Instrument', 'Color') |
|
119 |
QEngineeringInstrumentItem.INST_COLOR = configs[ |
|
120 |
0].value if configs else QEngineeringAbstractItem.DEFAULT_COLOR |
|
121 |
return QEngineeringInstrumentItem.INST_COLOR |
|
136 | 122 |
else: |
137 |
app_doc_data = AppDocData.instance() |
|
138 |
configs = app_doc_data.getConfigs('LineTypes', self.lineType) |
|
139 |
if configs: |
|
140 |
tokens = configs[0].value.split(',') |
|
141 |
QEngineeringLineItem.LINE_TYPE_COLORS[self.lineType] = tokens[0] if len(tokens) == 4 else \ |
|
142 |
QEngineeringAbstractItem.DEFAULT_COLOR |
|
123 |
return self.owner._color if self.owner and hasattr(self.owner, '_color') else self._color |
|
124 |
|
|
125 |
elif type(self) is SymbolSvgItem: |
|
126 |
return SymbolSvgItem.HOVER_COLOR if self.hover else ( \ |
|
127 |
self.owner._color if self.owner and hasattr(self.owner, '_color') else self._color) |
|
128 |
|
|
129 |
elif type(self) is QEngineeringLineItem: |
|
130 |
if self.hover: |
|
131 |
return QEngineeringAbstractItem.HOVER_COLOR |
|
132 |
elif self.isSelected(): |
|
133 |
return QEngineeringAbstractItem.SELECTED_COLOR |
|
134 |
elif DisplayOptions.DisplayByLineType == DisplayColors.instance().option: |
|
135 |
if self.lineType in QEngineeringLineItem.LINE_TYPE_COLORS: |
|
143 | 136 |
return QEngineeringLineItem.LINE_TYPE_COLORS[self.lineType] |
144 | 137 |
else: |
145 |
return QEngineeringAbstractItem.DEFAULT_COLOR |
|
146 |
else: |
|
147 |
return self.owner._color if self.owner and hasattr(self.owner, '_color') else self._color |
|
148 |
''' |
|
149 |
if self.owner is None: |
|
150 |
return self._color |
|
138 |
app_doc_data = AppDocData.instance() |
|
139 |
configs = app_doc_data.getConfigs('LineTypes', self.lineType) |
|
140 |
if configs: |
|
141 |
tokens = configs[0].value.split(',') |
|
142 |
QEngineeringLineItem.LINE_TYPE_COLORS[self.lineType] = tokens[0] if len(tokens) == 4 else \ |
|
143 |
QEngineeringAbstractItem.DEFAULT_COLOR |
|
144 |
return QEngineeringLineItem.LINE_TYPE_COLORS[self.lineType] |
|
145 |
else: |
|
146 |
return QEngineeringAbstractItem.DEFAULT_COLOR |
|
151 | 147 |
else: |
152 |
return self.owner.getColor() |
|
153 |
''' |
|
148 |
return self.owner._color if self.owner and hasattr(self.owner, '_color') else self._color |
|
149 |
''' |
|
150 |
if self.owner is None: |
|
151 |
return self._color |
|
152 |
else: |
|
153 |
return self.owner.getColor() |
|
154 |
''' |
|
155 |
except Exception as ex: |
|
156 |
from App import App |
|
157 |
from AppDocData import MessageType |
|
158 |
|
|
159 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
160 |
sys.exc_info()[-1].tb_lineno) |
|
161 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
162 |
|
|
163 |
return QEngineeringAbstractItem.DEFAULT_COLOR |
|
154 | 164 |
|
155 | 165 |
return QEngineeringAbstractItem.HOVER_COLOR if self.hover else ( |
156 | 166 |
self.owner.getColor() if (self.owner and hasattr(self.owner, '_color')) else self._color) |
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
137 | 137 |
def owner(self): |
138 | 138 |
import uuid |
139 | 139 |
|
140 |
if self._owner and type(self._owner) is uuid.UUID: |
|
141 |
#matches = [x for x in self.scene().items() if hasattr(x, 'uid') and str(x.uid) == str(self._owner)] |
|
142 |
matches = [] |
|
143 |
for x in self.scene().items(): |
|
144 |
if hasattr(x, 'uid') and str(x.uid) == str(self._owner): |
|
145 |
matches[x] |
|
146 |
break |
|
147 |
if matches: |
|
148 |
self._owner = matches[0] |
|
140 |
try: |
|
141 |
if self._owner and type(self._owner) is uuid.UUID: |
|
142 |
#matches = [x for x in self.scene().items() if hasattr(x, 'uid') and str(x.uid) == str(self._owner)] |
|
143 |
matches = [] |
|
144 |
for x in self.scene().items(): |
|
145 |
if hasattr(x, 'uid') and str(x.uid) == str(self._owner): |
|
146 |
matches = [x] |
|
147 |
break |
|
148 |
if matches: |
|
149 |
self._owner = matches[0] |
|
150 |
|
|
151 |
if type(self._owner) is not uuid.UUID and type(self._owner) is not str: |
|
152 |
return self._owner |
|
153 |
else: |
|
154 |
self._owner = None |
|
155 |
return None |
|
156 |
except Exception as ex: |
|
157 |
from App import App |
|
158 |
from AppDocData import MessageType |
|
159 |
|
|
160 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
161 |
sys.exc_info()[-1].tb_lineno) + ' Item UID : ' + str(self.uid) |
|
162 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
149 | 163 |
|
150 |
if type(self._owner) is not uuid.UUID and type(self._owner) is not str: |
|
151 |
return self._owner |
|
152 |
else: |
|
153 |
self._owner = None |
|
154 | 164 |
return None |
155 | 165 |
|
156 | 166 |
''' |
DTI_PID/DTI_PID/UI/ImportTextFromCAD.ui | ||
---|---|---|
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 | 9 |
<width>696</width> |
10 |
<height>644</height>
|
|
10 |
<height>728</height>
|
|
11 | 11 |
</rect> |
12 | 12 |
</property> |
13 | 13 |
<property name="minimumSize"> |
... | ... | |
19 | 19 |
<property name="maximumSize"> |
20 | 20 |
<size> |
21 | 21 |
<width>16777215</width> |
22 |
<height>650</height>
|
|
22 |
<height>999999</height>
|
|
23 | 23 |
</size> |
24 | 24 |
</property> |
25 | 25 |
<property name="font"> |
... | ... | |
35 | 35 |
<layout class="QVBoxLayout" name="verticalLayout"> |
36 | 36 |
<item> |
37 | 37 |
<layout class="QGridLayout" name="gridLayout"> |
38 |
<item row="6" column="3">
|
|
39 |
<widget class="QPushButton" name="pushButtonAuto">
|
|
38 |
<item row="10" column="0">
|
|
39 |
<widget class="QLabel" name="label_7">
|
|
40 | 40 |
<property name="text"> |
41 |
<string>Auto Cal.</string>
|
|
41 |
<string>Exclude Layers</string>
|
|
42 | 42 |
</property> |
43 | 43 |
</widget> |
44 | 44 |
</item> |
45 |
<item row="5" column="1" colspan="3"> |
|
46 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
45 |
<item row="10" column="1" colspan="3"> |
|
46 |
<widget class="QListView" name="listViewExcludeLayers"/> |
|
47 |
</item> |
|
48 |
<item row="9" column="0"> |
|
49 |
<widget class="QLabel" name="label_6"> |
|
50 |
<property name="text"> |
|
51 |
<string>Scale :</string> |
|
52 |
</property> |
|
53 |
</widget> |
|
54 |
</item> |
|
55 |
<item row="5" column="0"> |
|
56 |
<widget class="QLabel" name="label_3"> |
|
57 |
<property name="text"> |
|
58 |
<string>Text Offset(x, y, scale) : </string> |
|
59 |
</property> |
|
60 |
</widget> |
|
61 |
</item> |
|
62 |
<item row="4" column="0"> |
|
63 |
<widget class="QLabel" name="label"> |
|
64 |
<property name="text"> |
|
65 |
<string>Line Offset(x, y) : </string> |
|
66 |
</property> |
|
67 |
</widget> |
|
68 |
</item> |
|
69 |
<item row="4" column="1"> |
|
70 |
<widget class="QSpinBox" name="spinBoxX"> |
|
71 |
<property name="minimumSize"> |
|
72 |
<size> |
|
73 |
<width>0</width> |
|
74 |
<height>0</height> |
|
75 |
</size> |
|
76 |
</property> |
|
77 |
<property name="minimum"> |
|
78 |
<number>-50000</number> |
|
79 |
</property> |
|
80 |
<property name="maximum"> |
|
81 |
<number>50000</number> |
|
82 |
</property> |
|
83 |
</widget> |
|
84 |
</item> |
|
85 |
<item row="12" column="0" colspan="2"> |
|
86 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
47 | 87 |
<item> |
48 |
<widget class="QSpinBox" name="spinBoxTextX">
|
|
49 |
<property name="minimum">
|
|
50 |
<number>-50000</number>
|
|
88 |
<widget class="QCheckBox" name="checkBoxLine">
|
|
89 |
<property name="text">
|
|
90 |
<string>Line</string>
|
|
51 | 91 |
</property> |
52 |
<property name="maximum">
|
|
53 |
<number>50000</number>
|
|
92 |
<property name="checked">
|
|
93 |
<bool>false</bool>
|
|
54 | 94 |
</property> |
55 | 95 |
</widget> |
56 | 96 |
</item> |
57 | 97 |
<item> |
58 |
<widget class="QSpinBox" name="spinBoxTextY">
|
|
59 |
<property name="minimum">
|
|
60 |
<number>-50000</number>
|
|
98 |
<widget class="QCheckBox" name="checkBoxText">
|
|
99 |
<property name="text">
|
|
100 |
<string>Text</string>
|
|
61 | 101 |
</property> |
62 |
<property name="maximum">
|
|
63 |
<number>50000</number>
|
|
102 |
<property name="checked">
|
|
103 |
<bool>true</bool>
|
|
64 | 104 |
</property> |
65 | 105 |
</widget> |
66 | 106 |
</item> |
67 | 107 |
<item> |
68 |
<widget class="QDoubleSpinBox" name="doubleSpinBoxScale">
|
|
69 |
<property name="singleStep">
|
|
70 |
<double>0.100000000000000</double>
|
|
108 |
<widget class="QCheckBox" name="checkBoxSymbol">
|
|
109 |
<property name="text">
|
|
110 |
<string>Symbol</string>
|
|
71 | 111 |
</property> |
72 | 112 |
</widget> |
73 | 113 |
</item> |
74 | 114 |
</layout> |
75 | 115 |
</item> |
76 |
<item row="6" column="1" colspan="2"> |
|
77 |
<widget class="QLineEdit" name="lineEdit"/> |
|
78 |
</item> |
|
79 |
<item row="0" column="1" colspan="3"> |
|
80 |
<widget class="QLineEdit" name="lineEditCAD"> |
|
81 |
<property name="placeholderText"> |
|
82 |
<string>Select AutoCAD File(s)</string> |
|
83 |
</property> |
|
84 |
</widget> |
|
85 |
</item> |
|
86 |
<item row="10" column="1" colspan="3"> |
|
87 |
<widget class="QPushButton" name="pushButtonSave"> |
|
88 |
<property name="text"> |
|
89 |
<string>Save Mapping</string> |
|
90 |
</property> |
|
91 |
<property name="icon"> |
|
92 |
<iconset resource="../res/MainWindow.qrc"> |
|
93 |
<normaloff>:/newPrefix/Save.svg</normaloff>:/newPrefix/Save.svg</iconset> |
|
94 |
</property> |
|
95 |
</widget> |
|
96 |
</item> |
|
97 |
<item row="0" column="4"> |
|
98 |
<widget class="QToolButton" name="toolButtonCAD"> |
|
99 |
<property name="text"> |
|
100 |
<string/> |
|
101 |
</property> |
|
102 |
<property name="icon"> |
|
103 |
<iconset resource="../res/MainWindow.qrc"> |
|
104 |
<normaloff>:/newPrefix/File.svg</normaloff>:/newPrefix/File.svg</iconset> |
|
105 |
</property> |
|
106 |
</widget> |
|
107 |
</item> |
|
108 |
<item row="6" column="0"> |
|
109 |
<widget class="QLabel" name="label_4"> |
|
110 |
<property name="text"> |
|
111 |
<string>Search Text 1(Line No.) :</string> |
|
112 |
</property> |
|
113 |
</widget> |
|
114 |
</item> |
|
115 |
<item row="2" column="0" colspan="4"> |
|
116 |
<widget class="QTabWidget" name="tabWidgetEntities"> |
|
117 |
<property name="currentIndex"> |
|
118 |
<number>0</number> |
|
116 |
<item row="0" column="0"> |
|
117 |
<widget class="QLabel" name="label_2"> |
|
118 |
<property name="minimumSize"> |
|
119 |
<size> |
|
120 |
<width>50</width> |
|
121 |
<height>0</height> |
|
122 |
</size> |
|
119 | 123 |
</property> |
120 |
<widget class="QWidget" name="tabLineTypes"> |
|
121 |
<attribute name="title"> |
|
122 |
<string>Line Types</string> |
|
123 |
</attribute> |
|
124 |
<layout class="QGridLayout" name="gridLayout_2"> |
|
125 |
<item row="0" column="0"> |
|
126 |
<widget class="QTreeView" name="treeViewLineType"/> |
|
127 |
</item> |
|
128 |
</layout> |
|
129 |
</widget> |
|
130 |
<widget class="QWidget" name="tabSymbols"> |
|
131 |
<attribute name="title"> |
|
132 |
<string>Symbols</string> |
|
133 |
</attribute> |
|
134 |
<layout class="QGridLayout" name="gridLayout_3"> |
|
135 |
<item row="0" column="0"> |
|
136 |
<widget class="QTreeView" name="treeViewSymbolMapping"/> |
|
137 |
</item> |
|
138 |
</layout> |
|
139 |
</widget> |
|
140 |
</widget> |
|
141 |
</item> |
|
142 |
<item row="7" column="0"> |
|
143 |
<widget class="QLabel" name="label_5"> |
|
144 | 124 |
<property name="text"> |
145 |
<string>Search Text 2(Line No.) :</string> |
|
146 |
</property> |
|
147 |
</widget> |
|
148 |
</item> |
|
149 |
<item row="8" column="1"> |
|
150 |
<widget class="QDoubleSpinBox" name="doubleSpinBox"> |
|
151 |
<property name="decimals"> |
|
152 |
<number>6</number> |
|
125 |
<string>AutoCAD Files : </string> |
|
153 | 126 |
</property> |
154 | 127 |
</widget> |
155 | 128 |
</item> |
156 |
<item row="8" column="2">
|
|
129 |
<item row="9" column="2">
|
|
157 | 130 |
<widget class="QDoubleSpinBox" name="doubleSpinBox_2"> |
158 | 131 |
<property name="decimals"> |
159 | 132 |
<number>6</number> |
160 | 133 |
</property> |
134 |
<property name="maximum"> |
|
135 |
<double>9999.999900000000707</double> |
|
136 |
</property> |
|
161 | 137 |
</widget> |
162 | 138 |
</item> |
163 | 139 |
<item row="8" column="0"> |
164 |
<widget class="QLabel" name="label_6">
|
|
140 |
<widget class="QLabel" name="label_5">
|
|
165 | 141 |
<property name="text"> |
166 |
<string>Scale :</string>
|
|
142 |
<string>Search Text 2(Line No.) :</string>
|
|
167 | 143 |
</property> |
168 | 144 |
</widget> |
169 | 145 |
</item> |
170 |
<item row="7" column="1" colspan="2"> |
|
171 |
<widget class="QLineEdit" name="lineEdit_2"/> |
|
172 |
</item> |
|
173 | 146 |
<item row="4" column="2"> |
174 | 147 |
<widget class="QSpinBox" name="spinBoxY"> |
175 | 148 |
<property name="minimum"> |
... | ... | |
180 | 153 |
</property> |
181 | 154 |
</widget> |
182 | 155 |
</item> |
183 |
<item row="4" column="1"> |
|
184 |
<widget class="QSpinBox" name="spinBoxX"> |
|
185 |
<property name="minimumSize"> |
|
186 |
<size> |
|
187 |
<width>0</width> |
|
188 |
<height>0</height> |
|
189 |
</size> |
|
190 |
</property> |
|
191 |
<property name="minimum"> |
|
192 |
<number>-50000</number> |
|
156 |
<item row="12" column="3"> |
|
157 |
<widget class="QPushButton" name="pushButtonClose"> |
|
158 |
<property name="text"> |
|
159 |
<string>Close</string> |
|
193 | 160 |
</property> |
194 |
<property name="maximum"> |
|
195 |
<number>50000</number> |
|
161 |
<property name="icon"> |
|
162 |
<iconset resource="../res/MainWindow.qrc"> |
|
163 |
<normaloff>:/newPrefix/Remove.svg</normaloff>:/newPrefix/Remove.svg</iconset> |
|
196 | 164 |
</property> |
197 | 165 |
</widget> |
198 | 166 |
</item> |
199 |
<item row="11" column="2"> |
|
167 |
<item row="8" column="1" colspan="2"> |
|
168 |
<widget class="QLineEdit" name="lineEdit_2"/> |
|
169 |
</item> |
|
170 |
<item row="12" column="2"> |
|
200 | 171 |
<widget class="QPushButton" name="pushButtonImport"> |
201 | 172 |
<property name="toolTip"> |
202 | 173 |
<string>Only horizontal and vertical lines</string> |
... | ... | |
210 | 181 |
</property> |
211 | 182 |
</widget> |
212 | 183 |
</item> |
213 |
<item row="5" column="0"> |
|
214 |
<widget class="QLabel" name="label_3"> |
|
215 |
<property name="text"> |
|
216 |
<string>Text Offset(x, y, scale) : </string> |
|
184 |
<item row="9" column="1"> |
|
185 |
<widget class="QDoubleSpinBox" name="doubleSpinBox"> |
|
186 |
<property name="decimals"> |
|
187 |
<number>6</number> |
|
188 |
</property> |
|
189 |
<property name="maximum"> |
|
190 |
<double>9999.999900000000707</double> |
|
217 | 191 |
</property> |
218 | 192 |
</widget> |
219 | 193 |
</item> |
220 |
<item row="4" column="0">
|
|
221 |
<widget class="QLabel" name="label">
|
|
194 |
<item row="0" column="4">
|
|
195 |
<widget class="QToolButton" name="toolButtonCAD">
|
|
222 | 196 |
<property name="text"> |
223 |
<string>Line Offset(x, y) : </string> |
|
197 |
<string/> |
|
198 |
</property> |
|
199 |
<property name="icon"> |
|
200 |
<iconset resource="../res/MainWindow.qrc"> |
|
201 |
<normaloff>:/newPrefix/File.svg</normaloff>:/newPrefix/File.svg</iconset> |
|
224 | 202 |
</property> |
225 | 203 |
</widget> |
226 | 204 |
</item> |
227 |
<item row="11" column="3"> |
|
228 |
<widget class="QPushButton" name="pushButtonClose">
|
|
205 |
<item row="11" column="1" colspan="3">
|
|
206 |
<widget class="QPushButton" name="pushButtonSave">
|
|
229 | 207 |
<property name="text"> |
230 |
<string>Close</string>
|
|
208 |
<string>Save Mapping</string>
|
|
231 | 209 |
</property> |
232 | 210 |
<property name="icon"> |
233 | 211 |
<iconset resource="../res/MainWindow.qrc"> |
234 |
<normaloff>:/newPrefix/Remove.svg</normaloff>:/newPrefix/Remove.svg</iconset>
|
|
212 |
<normaloff>:/newPrefix/Save.svg</normaloff>:/newPrefix/Save.svg</iconset>
|
|
235 | 213 |
</property> |
236 | 214 |
</widget> |
237 | 215 |
</item> |
238 |
<item row="0" column="0"> |
|
239 |
<widget class="QLabel" name="label_2"> |
|
240 |
<property name="minimumSize"> |
|
241 |
<size> |
|
242 |
<width>50</width> |
|
243 |
<height>0</height> |
|
244 |
</size> |
|
245 |
</property> |
|
216 |
<item row="7" column="0"> |
|
217 |
<widget class="QLabel" name="label_4"> |
|
246 | 218 |
<property name="text"> |
247 |
<string>AutoCAD Files : </string>
|
|
219 |
<string>Search Text 1(Line No.) :</string>
|
|
248 | 220 |
</property> |
249 | 221 |
</widget> |
250 | 222 |
</item> |
251 |
<item row="9" column="0">
|
|
252 |
<widget class="QLabel" name="label_7">
|
|
253 |
<property name="text">
|
|
254 |
<string>Exclude Layers</string>
|
|
223 |
<item row="0" column="1" colspan="3">
|
|
224 |
<widget class="QLineEdit" name="lineEditCAD">
|
|
225 |
<property name="placeholderText">
|
|
226 |
<string>Select AutoCAD File(s)</string>
|
|
255 | 227 |
</property> |
256 | 228 |
</widget> |
257 | 229 |
</item> |
258 |
<item row="9" column="1" colspan="3"> |
|
259 |
<widget class="QListView" name="listViewExcludeLayers"/> |
|
260 |
</item> |
|
261 |
<item row="11" column="0" colspan="2"> |
|
262 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
230 |
<item row="5" column="1" colspan="3"> |
|
231 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
263 | 232 |
<item> |
264 |
<widget class="QCheckBox" name="checkBoxLine">
|
|
265 |
<property name="text">
|
|
266 |
<string>Line</string>
|
|
233 |
<widget class="QSpinBox" name="spinBoxTextX">
|
|
234 |
<property name="minimum">
|
|
235 |
<number>-50000</number>
|
|
267 | 236 |
</property> |
268 |
<property name="checked">
|
|
269 |
<bool>true</bool>
|
|
237 |
<property name="maximum">
|
|
238 |
<number>50000</number>
|
|
270 | 239 |
</property> |
271 | 240 |
</widget> |
272 | 241 |
</item> |
273 | 242 |
<item> |
274 |
<widget class="QCheckBox" name="checkBoxText">
|
|
275 |
<property name="text">
|
|
276 |
<string>Text</string>
|
|
243 |
<widget class="QSpinBox" name="spinBoxTextY">
|
|
244 |
<property name="minimum">
|
|
245 |
<number>-50000</number>
|
|
277 | 246 |
</property> |
278 |
<property name="checked">
|
|
279 |
<bool>true</bool>
|
|
247 |
<property name="maximum">
|
|
248 |
<number>50000</number>
|
|
280 | 249 |
</property> |
281 | 250 |
</widget> |
282 | 251 |
</item> |
283 | 252 |
<item> |
284 |
<widget class="QCheckBox" name="checkBoxSymbol">
|
|
285 |
<property name="text">
|
|
286 |
<string>Symbol</string>
|
|
253 |
<widget class="QDoubleSpinBox" name="doubleSpinBoxScale">
|
|
254 |
<property name="singleStep">
|
|
255 |
<double>0.100000000000000</double>
|
|
287 | 256 |
</property> |
288 | 257 |
</widget> |
289 | 258 |
</item> |
290 | 259 |
</layout> |
291 | 260 |
</item> |
261 |
<item row="7" column="1" colspan="2"> |
|
262 |
<widget class="QLineEdit" name="lineEdit"/> |
|
263 |
</item> |
|
264 |
<item row="7" column="3"> |
|
265 |
<widget class="QPushButton" name="pushButtonAuto"> |
|
266 |
<property name="text"> |
|
267 |
<string>Auto Cal.</string> |
|
268 |
</property> |
|
269 |
</widget> |
|
270 |
</item> |
|
271 |
<item row="6" column="0"> |
|
272 |
<widget class="QLabel" name="label_8"> |
|
273 |
<property name="text"> |
|
274 |
<string>Symbol Offset(x, y) : </string> |
|
275 |
</property> |
|
276 |
</widget> |
|
277 |
</item> |
|
278 |
<item row="6" column="1"> |
|
279 |
<widget class="QSpinBox" name="spinBoxSymbolX"> |
|
280 |
<property name="minimum"> |
|
281 |
<number>-50000</number> |
|
282 |
</property> |
|
283 |
<property name="maximum"> |
|
284 |
<number>50000</number> |
|
285 |
</property> |
|
286 |
</widget> |
|
287 |
</item> |
|
288 |
<item row="6" column="2"> |
|
289 |
<widget class="QSpinBox" name="spinBoxSymbolY"> |
|
290 |
<property name="minimum"> |
|
291 |
<number>-50000</number> |
|
292 |
</property> |
|
293 |
<property name="maximum"> |
|
294 |
<number>50000</number> |
|
295 |
</property> |
|
296 |
</widget> |
|
297 |
</item> |
|
298 |
<item row="2" column="0" colspan="4"> |
|
299 |
<widget class="QTabWidget" name="tabWidgetEntities"> |
|
300 |
<property name="currentIndex"> |
|
301 |
<number>0</number> |
|
302 |
</property> |
|
303 |
<widget class="QWidget" name="tabLineTypes"> |
|
304 |
<attribute name="title"> |
|
305 |
<string>Line Types</string> |
|
306 |
</attribute> |
|
307 |
<layout class="QGridLayout" name="gridLayout_2"> |
|
308 |
<item row="0" column="0"> |
|
309 |
<widget class="QTreeView" name="treeViewLineType"/> |
|
310 |
</item> |
|
311 |
</layout> |
|
312 |
</widget> |
|
313 |
<widget class="QWidget" name="tabSymbols"> |
|
314 |
<attribute name="title"> |
|
315 |
<string>Symbols</string> |
|
316 |
</attribute> |
|
317 |
<layout class="QGridLayout" name="gridLayout_3"> |
|
318 |
<item row="0" column="0"> |
|
319 |
<widget class="QTreeView" name="treeViewSymbolMapping"/> |
|
320 |
</item> |
|
321 |
</layout> |
|
322 |
</widget> |
|
323 |
</widget> |
|
324 |
</item> |
|
292 | 325 |
</layout> |
293 | 326 |
</item> |
294 | 327 |
<item> |
내보내기 Unified diff