개정판 e1bfcd0e
add cad import symbol scale
Change-Id: I9f175cd8e9ab32c09c06378da6392af7ae65d973
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
283 | 283 |
configs = app_doc_data.getConfigs('Cad Offset', 'Y Scale') |
284 | 284 |
self.ui.doubleSpinBox_2.setValue(float(configs[0].value)) if 1 == len(configs) else \ |
285 | 285 |
self.ui.doubleSpinBoxScale.setValue(0.5) |
286 |
configs = app_doc_data.getConfigs('Cad Offset', 'Symbol Scale') |
|
287 |
self.ui.doubleSpinBoxSymbolScale.setValue(float(configs[0].value)) if 1 == len(configs) else \ |
|
288 |
self.ui.doubleSpinBoxSymbolScale.setValue(1.0) |
|
286 | 289 |
configs = app_doc_data.getConfigs('Cad State', 'Diagonal') |
287 | 290 |
self.ui.checkBoxDiagonal.setChecked(bool(int(configs[0].value))) if 1 == len(configs) else \ |
288 | 291 |
self.ui.checkBoxDiagonal.setChecked(False) |
... | ... | |
897 | 900 |
configs.append(Config('Cad Offset', 'Scale', self.ui.doubleSpinBoxScale.value())) |
898 | 901 |
configs.append(Config('Cad Offset', 'X Scale', self.ui.doubleSpinBox.value())) |
899 | 902 |
configs.append(Config('Cad Offset', 'Y Scale', self.ui.doubleSpinBox_2.value())) |
903 |
configs.append(Config('Cad Offset', 'Symbol Scale', self.ui.doubleSpinBoxSymbolScale.value())) |
|
900 | 904 |
configs.append(Config('Cad State', 'Auto', int(self.ui.checkBoxAuto.isChecked()))) |
901 | 905 |
configs.append(Config('Cad State', 'Diagonal', int(self.ui.checkBoxDiagonal.isChecked()))) |
902 | 906 |
configs.append(Config('Cad State', 'Text Overwrite', int(self.ui.checkBoxTextOverwrite.isChecked()))) |
... | ... | |
1583 | 1587 |
loc = [min(min_extents[0], max_extents[0]), min(min_extents[1], max_extents[1])] |
1584 | 1588 |
item.buildItem(name, symbol.getType(), angle, loc, (_width, _height), origin, |
1585 | 1589 |
connPts=symbol.parse_connection_pts(origin), parentSymbol=None, childSymbol=None, |
1586 |
hasInstrumentLabel=False, dbUid=uid) |
|
1590 |
hasInstrumentLabel=False, dbUid=uid, scale=[self.ui.doubleSpinBoxSymbolScale.value(), self.ui.doubleSpinBoxSymbolScale.value()])
|
|
1587 | 1591 |
item.converted = True |
1588 | 1592 |
item.flip = flip |
1589 | 1593 |
|
DTI_PID/DTI_PID/ImportTextFromCAD_UI.py | ||
---|---|---|
26 | 26 |
self.verticalLayout.setObjectName("verticalLayout") |
27 | 27 |
self.gridLayout = QtWidgets.QGridLayout() |
28 | 28 |
self.gridLayout.setObjectName("gridLayout") |
29 |
self.label_6 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
30 |
self.label_6.setObjectName("label_6") |
|
31 |
self.gridLayout.addWidget(self.label_6, 9, 0, 1, 1) |
|
32 |
self.pushButtonClose = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
33 |
icon = QtGui.QIcon() |
|
34 |
icon.addPixmap(QtGui.QPixmap(":/newPrefix/Remove.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
35 |
self.pushButtonClose.setIcon(icon) |
|
36 |
self.pushButtonClose.setObjectName("pushButtonClose") |
|
37 |
self.gridLayout.addWidget(self.pushButtonClose, 13, 3, 1, 1) |
|
38 |
self.lineEdit_2 = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
|
39 |
self.lineEdit_2.setObjectName("lineEdit_2") |
|
40 |
self.gridLayout.addWidget(self.lineEdit_2, 8, 1, 1, 2) |
|
41 |
self.label_7 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
42 |
self.label_7.setObjectName("label_7") |
|
43 |
self.gridLayout.addWidget(self.label_7, 10, 0, 1, 1) |
|
44 |
self.listViewExcludeLayers = QtWidgets.QListView(ImportTextFromCADDialog) |
|
45 |
self.listViewExcludeLayers.setObjectName("listViewExcludeLayers") |
|
46 |
self.gridLayout.addWidget(self.listViewExcludeLayers, 10, 1, 1, 3) |
|
47 |
self.lineEditCAD = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
|
48 |
self.lineEditCAD.setObjectName("lineEditCAD") |
|
49 |
self.gridLayout.addWidget(self.lineEditCAD, 0, 1, 1, 3) |
|
50 |
self.toolButtonCAD = QtWidgets.QToolButton(ImportTextFromCADDialog) |
|
51 |
self.toolButtonCAD.setText("") |
|
52 |
icon1 = QtGui.QIcon() |
|
53 |
icon1.addPixmap(QtGui.QPixmap(":/newPrefix/File.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
54 |
self.toolButtonCAD.setIcon(icon1) |
|
55 |
self.toolButtonCAD.setObjectName("toolButtonCAD") |
|
56 |
self.gridLayout.addWidget(self.toolButtonCAD, 0, 4, 1, 1) |
|
57 |
self.pushButtonAutoMapping = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
58 |
self.pushButtonAutoMapping.setObjectName("pushButtonAutoMapping") |
|
59 |
self.gridLayout.addWidget(self.pushButtonAutoMapping, 8, 3, 1, 1) |
|
60 |
self.label_4 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
61 |
self.label_4.setObjectName("label_4") |
|
62 |
self.gridLayout.addWidget(self.label_4, 7, 0, 1, 1) |
|
29 |
self.label_3 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
30 |
self.label_3.setObjectName("label_3") |
|
31 |
self.gridLayout.addWidget(self.label_3, 5, 0, 1, 1) |
|
63 | 32 |
self.doubleSpinBox = QtWidgets.QDoubleSpinBox(ImportTextFromCADDialog) |
64 | 33 |
self.doubleSpinBox.setDecimals(6) |
65 | 34 |
self.doubleSpinBox.setMaximum(9999.9999) |
66 | 35 |
self.doubleSpinBox.setObjectName("doubleSpinBox") |
67 | 36 |
self.gridLayout.addWidget(self.doubleSpinBox, 9, 1, 1, 1) |
37 |
self.label = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
38 |
self.label.setObjectName("label") |
|
39 |
self.gridLayout.addWidget(self.label, 4, 0, 1, 1) |
|
68 | 40 |
self.spinBoxX = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
69 | 41 |
self.spinBoxX.setMinimumSize(QtCore.QSize(0, 0)) |
70 | 42 |
self.spinBoxX.setMinimum(-50000) |
... | ... | |
76 | 48 |
self.spinBoxY.setMaximum(50000) |
77 | 49 |
self.spinBoxY.setObjectName("spinBoxY") |
78 | 50 |
self.gridLayout.addWidget(self.spinBoxY, 4, 2, 1, 1) |
79 |
self.label_3 = QtWidgets.QLabel(ImportTextFromCADDialog)
|
|
80 |
self.label_3.setObjectName("label_3")
|
|
81 |
self.gridLayout.addWidget(self.label_3, 5, 0, 1, 1)
|
|
82 |
self.label = QtWidgets.QLabel(ImportTextFromCADDialog)
|
|
83 |
self.label.setObjectName("label")
|
|
84 |
self.gridLayout.addWidget(self.label, 4, 0, 1, 1)
|
|
51 |
self.label_4 = QtWidgets.QLabel(ImportTextFromCADDialog)
|
|
52 |
self.label_4.setObjectName("label_4")
|
|
53 |
self.gridLayout.addWidget(self.label_4, 7, 0, 1, 1)
|
|
54 |
self.pushButtonAutoMapping = QtWidgets.QPushButton(ImportTextFromCADDialog)
|
|
55 |
self.pushButtonAutoMapping.setObjectName("pushButtonAutoMapping")
|
|
56 |
self.gridLayout.addWidget(self.pushButtonAutoMapping, 8, 3, 1, 1)
|
|
85 | 57 |
self.pushButtonImport = QtWidgets.QPushButton(ImportTextFromCADDialog) |
86 |
icon2 = QtGui.QIcon()
|
|
87 |
icon2.addPixmap(QtGui.QPixmap(":/newPrefix/OK.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
88 |
self.pushButtonImport.setIcon(icon2)
|
|
58 |
icon = QtGui.QIcon() |
|
59 |
icon.addPixmap(QtGui.QPixmap(":/newPrefix/OK.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
60 |
self.pushButtonImport.setIcon(icon) |
|
89 | 61 |
self.pushButtonImport.setObjectName("pushButtonImport") |
90 |
self.gridLayout.addWidget(self.pushButtonImport, 13, 2, 1, 1) |
|
62 |
self.gridLayout.addWidget(self.pushButtonImport, 14, 2, 1, 1) |
|
63 |
self.toolButtonCAD = QtWidgets.QToolButton(ImportTextFromCADDialog) |
|
64 |
self.toolButtonCAD.setText("") |
|
65 |
icon1 = QtGui.QIcon() |
|
66 |
icon1.addPixmap(QtGui.QPixmap(":/newPrefix/File.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
67 |
self.toolButtonCAD.setIcon(icon1) |
|
68 |
self.toolButtonCAD.setObjectName("toolButtonCAD") |
|
69 |
self.gridLayout.addWidget(self.toolButtonCAD, 0, 4, 1, 1) |
|
70 |
self.label_7 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
71 |
self.label_7.setObjectName("label_7") |
|
72 |
self.gridLayout.addWidget(self.label_7, 11, 0, 1, 1) |
|
73 |
self.pushButtonClose = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
74 |
icon2 = QtGui.QIcon() |
|
75 |
icon2.addPixmap(QtGui.QPixmap(":/newPrefix/Remove.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
76 |
self.pushButtonClose.setIcon(icon2) |
|
77 |
self.pushButtonClose.setObjectName("pushButtonClose") |
|
78 |
self.gridLayout.addWidget(self.pushButtonClose, 14, 3, 1, 1) |
|
79 |
self.listViewExcludeLayers = QtWidgets.QListView(ImportTextFromCADDialog) |
|
80 |
self.listViewExcludeLayers.setObjectName("listViewExcludeLayers") |
|
81 |
self.gridLayout.addWidget(self.listViewExcludeLayers, 11, 1, 1, 3) |
|
82 |
self.label_6 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
83 |
self.label_6.setObjectName("label_6") |
|
84 |
self.gridLayout.addWidget(self.label_6, 9, 0, 1, 1) |
|
85 |
self.lineEdit_2 = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
|
86 |
self.lineEdit_2.setObjectName("lineEdit_2") |
|
87 |
self.gridLayout.addWidget(self.lineEdit_2, 8, 1, 1, 2) |
|
88 |
self.lineEditCAD = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
|
89 |
self.lineEditCAD.setObjectName("lineEditCAD") |
|
90 |
self.gridLayout.addWidget(self.lineEditCAD, 0, 1, 1, 3) |
|
91 | 91 |
self.tabWidgetEntities = QtWidgets.QTabWidget(ImportTextFromCADDialog) |
92 | 92 |
self.tabWidgetEntities.setObjectName("tabWidgetEntities") |
93 | 93 |
self.tabLineTypes = QtWidgets.QWidget() |
... | ... | |
107 | 107 |
self.gridLayout_3.addWidget(self.treeViewSymbolMapping, 0, 0, 1, 1) |
108 | 108 |
self.tabWidgetEntities.addTab(self.tabSymbols, "") |
109 | 109 |
self.gridLayout.addWidget(self.tabWidgetEntities, 2, 0, 1, 4) |
110 |
self.checkBoxAuto = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
111 |
self.checkBoxAuto.setObjectName("checkBoxAuto") |
|
112 |
self.gridLayout.addWidget(self.checkBoxAuto, 9, 3, 1, 1) |
|
113 | 110 |
self.spinBoxSymbolX = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
114 | 111 |
self.spinBoxSymbolX.setMinimum(-50000) |
115 | 112 |
self.spinBoxSymbolX.setMaximum(50000) |
... | ... | |
120 | 117 |
self.doubleSpinBox_2.setMaximum(9999.9999) |
121 | 118 |
self.doubleSpinBox_2.setObjectName("doubleSpinBox_2") |
122 | 119 |
self.gridLayout.addWidget(self.doubleSpinBox_2, 9, 2, 1, 1) |
123 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
124 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
125 |
self.checkBoxLine = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
126 |
self.checkBoxLine.setChecked(True) |
|
127 |
self.checkBoxLine.setObjectName("checkBoxLine") |
|
128 |
self.horizontalLayout_2.addWidget(self.checkBoxLine) |
|
129 |
self.checkBoxText = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
130 |
self.checkBoxText.setChecked(True) |
|
131 |
self.checkBoxText.setObjectName("checkBoxText") |
|
132 |
self.horizontalLayout_2.addWidget(self.checkBoxText) |
|
133 |
self.checkBoxSymbol = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
134 |
self.checkBoxSymbol.setChecked(True) |
|
135 |
self.checkBoxSymbol.setObjectName("checkBoxSymbol") |
|
136 |
self.horizontalLayout_2.addWidget(self.checkBoxSymbol) |
|
137 |
self.checkBoxLegend = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
138 |
self.checkBoxLegend.setObjectName("checkBoxLegend") |
|
139 |
self.horizontalLayout_2.addWidget(self.checkBoxLegend) |
|
140 |
self.gridLayout.addLayout(self.horizontalLayout_2, 13, 0, 1, 2) |
|
120 |
self.checkBoxAuto = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
121 |
self.checkBoxAuto.setObjectName("checkBoxAuto") |
|
122 |
self.gridLayout.addWidget(self.checkBoxAuto, 9, 3, 1, 1) |
|
123 |
self.lineEdit = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
|
124 |
self.lineEdit.setObjectName("lineEdit") |
|
125 |
self.gridLayout.addWidget(self.lineEdit, 7, 1, 1, 2) |
|
126 |
self.label_8 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
127 |
self.label_8.setObjectName("label_8") |
|
128 |
self.gridLayout.addWidget(self.label_8, 6, 0, 1, 1) |
|
129 |
self.pushButtonSave = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
130 |
icon3 = QtGui.QIcon() |
|
131 |
icon3.addPixmap(QtGui.QPixmap(":/newPrefix/Save.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
132 |
self.pushButtonSave.setIcon(icon3) |
|
133 |
self.pushButtonSave.setObjectName("pushButtonSave") |
|
134 |
self.gridLayout.addWidget(self.pushButtonSave, 13, 0, 1, 4) |
|
141 | 135 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
142 | 136 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
143 | 137 |
self.label_2 = QtWidgets.QLabel(ImportTextFromCADDialog) |
... | ... | |
148 | 142 |
self.checkBoxGenDrawing.setObjectName("checkBoxGenDrawing") |
149 | 143 |
self.horizontalLayout_3.addWidget(self.checkBoxGenDrawing) |
150 | 144 |
self.gridLayout.addLayout(self.horizontalLayout_3, 0, 0, 1, 1) |
151 |
self.pushButtonRefresh = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
152 |
self.pushButtonRefresh.setObjectName("pushButtonRefresh") |
|
153 |
self.gridLayout.addWidget(self.pushButtonRefresh, 6, 3, 1, 1) |
|
154 |
self.spinBoxSymbolY = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
|
155 |
self.spinBoxSymbolY.setMinimum(-50000) |
|
156 |
self.spinBoxSymbolY.setMaximum(50000) |
|
157 |
self.spinBoxSymbolY.setObjectName("spinBoxSymbolY") |
|
158 |
self.gridLayout.addWidget(self.spinBoxSymbolY, 6, 2, 1, 1) |
|
159 |
self.label_8 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
160 |
self.label_8.setObjectName("label_8") |
|
161 |
self.gridLayout.addWidget(self.label_8, 6, 0, 1, 1) |
|
162 |
self.label_5 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
163 |
self.label_5.setObjectName("label_5") |
|
164 |
self.gridLayout.addWidget(self.label_5, 8, 0, 1, 1) |
|
165 | 145 |
self.horizontalLayout = QtWidgets.QHBoxLayout() |
166 | 146 |
self.horizontalLayout.setObjectName("horizontalLayout") |
167 | 147 |
self.spinBoxTextX = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
... | ... | |
179 | 159 |
self.doubleSpinBoxScale.setObjectName("doubleSpinBoxScale") |
180 | 160 |
self.horizontalLayout.addWidget(self.doubleSpinBoxScale) |
181 | 161 |
self.gridLayout.addLayout(self.horizontalLayout, 5, 1, 1, 3) |
162 |
self.label_5 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
163 |
self.label_5.setObjectName("label_5") |
|
164 |
self.gridLayout.addWidget(self.label_5, 8, 0, 1, 1) |
|
165 |
self.spinBoxSymbolY = QtWidgets.QSpinBox(ImportTextFromCADDialog) |
|
166 |
self.spinBoxSymbolY.setMinimum(-50000) |
|
167 |
self.spinBoxSymbolY.setMaximum(50000) |
|
168 |
self.spinBoxSymbolY.setObjectName("spinBoxSymbolY") |
|
169 |
self.gridLayout.addWidget(self.spinBoxSymbolY, 6, 2, 1, 1) |
|
170 |
self.pushButtonRefresh = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
171 |
self.pushButtonRefresh.setObjectName("pushButtonRefresh") |
|
172 |
self.gridLayout.addWidget(self.pushButtonRefresh, 6, 3, 1, 1) |
|
182 | 173 |
self.pushButtonAuto = QtWidgets.QPushButton(ImportTextFromCADDialog) |
183 | 174 |
self.pushButtonAuto.setObjectName("pushButtonAuto") |
184 | 175 |
self.gridLayout.addWidget(self.pushButtonAuto, 7, 3, 1, 1) |
185 |
self.lineEdit = QtWidgets.QLineEdit(ImportTextFromCADDialog) |
|
186 |
self.lineEdit.setObjectName("lineEdit") |
|
187 |
self.gridLayout.addWidget(self.lineEdit, 7, 1, 1, 2) |
|
188 |
self.checkBoxTextOverwrite = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
189 |
self.checkBoxTextOverwrite.setObjectName("checkBoxTextOverwrite") |
|
190 |
self.gridLayout.addWidget(self.checkBoxTextOverwrite, 11, 0, 1, 1) |
|
191 | 176 |
self.checkBoxDiagonal = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
192 | 177 |
self.checkBoxDiagonal.setObjectName("checkBoxDiagonal") |
193 |
self.gridLayout.addWidget(self.checkBoxDiagonal, 11, 1, 1, 1) |
|
194 |
self.pushButtonSave = QtWidgets.QPushButton(ImportTextFromCADDialog) |
|
195 |
icon3 = QtGui.QIcon() |
|
196 |
icon3.addPixmap(QtGui.QPixmap(":/newPrefix/Save.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
197 |
self.pushButtonSave.setIcon(icon3) |
|
198 |
self.pushButtonSave.setObjectName("pushButtonSave") |
|
199 |
self.gridLayout.addWidget(self.pushButtonSave, 12, 0, 1, 4) |
|
178 |
self.gridLayout.addWidget(self.checkBoxDiagonal, 12, 1, 1, 1) |
|
179 |
self.checkBoxTextOverwrite = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
180 |
self.checkBoxTextOverwrite.setObjectName("checkBoxTextOverwrite") |
|
181 |
self.gridLayout.addWidget(self.checkBoxTextOverwrite, 12, 0, 1, 1) |
|
182 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
183 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
184 |
self.checkBoxLine = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
185 |
self.checkBoxLine.setChecked(True) |
|
186 |
self.checkBoxLine.setObjectName("checkBoxLine") |
|
187 |
self.horizontalLayout_2.addWidget(self.checkBoxLine) |
|
188 |
self.checkBoxText = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
189 |
self.checkBoxText.setChecked(True) |
|
190 |
self.checkBoxText.setObjectName("checkBoxText") |
|
191 |
self.horizontalLayout_2.addWidget(self.checkBoxText) |
|
192 |
self.checkBoxSymbol = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
193 |
self.checkBoxSymbol.setChecked(True) |
|
194 |
self.checkBoxSymbol.setObjectName("checkBoxSymbol") |
|
195 |
self.horizontalLayout_2.addWidget(self.checkBoxSymbol) |
|
196 |
self.checkBoxLegend = QtWidgets.QCheckBox(ImportTextFromCADDialog) |
|
197 |
self.checkBoxLegend.setObjectName("checkBoxLegend") |
|
198 |
self.horizontalLayout_2.addWidget(self.checkBoxLegend) |
|
199 |
self.gridLayout.addLayout(self.horizontalLayout_2, 14, 0, 1, 2) |
|
200 |
self.label_9 = QtWidgets.QLabel(ImportTextFromCADDialog) |
|
201 |
self.label_9.setObjectName("label_9") |
|
202 |
self.gridLayout.addWidget(self.label_9, 10, 0, 1, 1) |
|
203 |
self.doubleSpinBoxSymbolScale = QtWidgets.QDoubleSpinBox(ImportTextFromCADDialog) |
|
204 |
self.doubleSpinBoxSymbolScale.setDecimals(1) |
|
205 |
self.doubleSpinBoxSymbolScale.setMinimum(0.3) |
|
206 |
self.doubleSpinBoxSymbolScale.setMaximum(9.9) |
|
207 |
self.doubleSpinBoxSymbolScale.setSingleStep(0.1) |
|
208 |
self.doubleSpinBoxSymbolScale.setProperty("value", 1.0) |
|
209 |
self.doubleSpinBoxSymbolScale.setObjectName("doubleSpinBoxSymbolScale") |
|
210 |
self.gridLayout.addWidget(self.doubleSpinBoxSymbolScale, 10, 1, 1, 1) |
|
200 | 211 |
self.verticalLayout.addLayout(self.gridLayout) |
201 | 212 |
self.errorLabel = QtWidgets.QLabel(ImportTextFromCADDialog) |
202 | 213 |
self.errorLabel.setMaximumSize(QtCore.QSize(16777215, 0)) |
... | ... | |
209 | 220 |
self.retranslateUi(ImportTextFromCADDialog) |
210 | 221 |
self.tabWidgetEntities.setCurrentIndex(0) |
211 | 222 |
QtCore.QMetaObject.connectSlotsByName(ImportTextFromCADDialog) |
212 |
ImportTextFromCADDialog.setTabOrder(self.toolButtonCAD, self.spinBoxX) |
|
223 |
ImportTextFromCADDialog.setTabOrder(self.checkBoxGenDrawing, self.lineEditCAD) |
|
224 |
ImportTextFromCADDialog.setTabOrder(self.lineEditCAD, self.toolButtonCAD) |
|
225 |
ImportTextFromCADDialog.setTabOrder(self.toolButtonCAD, self.tabWidgetEntities) |
|
226 |
ImportTextFromCADDialog.setTabOrder(self.tabWidgetEntities, self.treeViewLineType) |
|
227 |
ImportTextFromCADDialog.setTabOrder(self.treeViewLineType, self.spinBoxX) |
|
213 | 228 |
ImportTextFromCADDialog.setTabOrder(self.spinBoxX, self.spinBoxY) |
214 | 229 |
ImportTextFromCADDialog.setTabOrder(self.spinBoxY, self.spinBoxTextX) |
215 | 230 |
ImportTextFromCADDialog.setTabOrder(self.spinBoxTextX, self.spinBoxTextY) |
216 | 231 |
ImportTextFromCADDialog.setTabOrder(self.spinBoxTextY, self.doubleSpinBoxScale) |
217 | 232 |
ImportTextFromCADDialog.setTabOrder(self.doubleSpinBoxScale, self.spinBoxSymbolX) |
218 | 233 |
ImportTextFromCADDialog.setTabOrder(self.spinBoxSymbolX, self.spinBoxSymbolY) |
219 |
ImportTextFromCADDialog.setTabOrder(self.spinBoxSymbolY, self.lineEdit) |
|
234 |
ImportTextFromCADDialog.setTabOrder(self.spinBoxSymbolY, self.pushButtonRefresh) |
|
235 |
ImportTextFromCADDialog.setTabOrder(self.pushButtonRefresh, self.lineEdit) |
|
220 | 236 |
ImportTextFromCADDialog.setTabOrder(self.lineEdit, self.pushButtonAuto) |
221 | 237 |
ImportTextFromCADDialog.setTabOrder(self.pushButtonAuto, self.lineEdit_2) |
222 | 238 |
ImportTextFromCADDialog.setTabOrder(self.lineEdit_2, self.pushButtonAutoMapping) |
223 | 239 |
ImportTextFromCADDialog.setTabOrder(self.pushButtonAutoMapping, self.doubleSpinBox) |
224 | 240 |
ImportTextFromCADDialog.setTabOrder(self.doubleSpinBox, self.doubleSpinBox_2) |
225 | 241 |
ImportTextFromCADDialog.setTabOrder(self.doubleSpinBox_2, self.checkBoxAuto) |
226 |
ImportTextFromCADDialog.setTabOrder(self.checkBoxAuto, self.listViewExcludeLayers) |
|
227 |
ImportTextFromCADDialog.setTabOrder(self.listViewExcludeLayers, self.checkBoxLine) |
|
242 |
ImportTextFromCADDialog.setTabOrder(self.checkBoxAuto, self.doubleSpinBoxSymbolScale) |
|
243 |
ImportTextFromCADDialog.setTabOrder(self.doubleSpinBoxSymbolScale, self.listViewExcludeLayers) |
|
244 |
ImportTextFromCADDialog.setTabOrder(self.listViewExcludeLayers, self.checkBoxTextOverwrite) |
|
245 |
ImportTextFromCADDialog.setTabOrder(self.checkBoxTextOverwrite, self.checkBoxDiagonal) |
|
246 |
ImportTextFromCADDialog.setTabOrder(self.checkBoxDiagonal, self.pushButtonSave) |
|
247 |
ImportTextFromCADDialog.setTabOrder(self.pushButtonSave, self.checkBoxLine) |
|
228 | 248 |
ImportTextFromCADDialog.setTabOrder(self.checkBoxLine, self.checkBoxText) |
229 | 249 |
ImportTextFromCADDialog.setTabOrder(self.checkBoxText, self.checkBoxSymbol) |
230 | 250 |
ImportTextFromCADDialog.setTabOrder(self.checkBoxSymbol, self.checkBoxLegend) |
231 | 251 |
ImportTextFromCADDialog.setTabOrder(self.checkBoxLegend, self.pushButtonImport) |
232 | 252 |
ImportTextFromCADDialog.setTabOrder(self.pushButtonImport, self.pushButtonClose) |
233 |
ImportTextFromCADDialog.setTabOrder(self.pushButtonClose, self.pushButtonSave) |
|
234 |
ImportTextFromCADDialog.setTabOrder(self.pushButtonSave, self.lineEditCAD) |
|
235 |
ImportTextFromCADDialog.setTabOrder(self.lineEditCAD, self.tabWidgetEntities) |
|
236 |
ImportTextFromCADDialog.setTabOrder(self.tabWidgetEntities, self.treeViewLineType) |
|
237 |
ImportTextFromCADDialog.setTabOrder(self.treeViewLineType, self.checkBoxGenDrawing) |
|
238 |
ImportTextFromCADDialog.setTabOrder(self.checkBoxGenDrawing, self.treeViewSymbolMapping) |
|
253 |
ImportTextFromCADDialog.setTabOrder(self.pushButtonClose, self.treeViewSymbolMapping) |
|
239 | 254 |
|
240 | 255 |
def retranslateUi(self, ImportTextFromCADDialog): |
241 | 256 |
_translate = QtCore.QCoreApplication.translate |
242 | 257 |
ImportTextFromCADDialog.setWindowTitle(_translate("ImportTextFromCADDialog", "Import AutoCAD")) |
243 |
self.label_6.setText(_translate("ImportTextFromCADDialog", "Scale :")) |
|
244 |
self.pushButtonClose.setText(_translate("ImportTextFromCADDialog", "Close")) |
|
245 |
self.label_7.setText(_translate("ImportTextFromCADDialog", "Exclude Layers")) |
|
246 |
self.lineEditCAD.setPlaceholderText(_translate("ImportTextFromCADDialog", "Select AutoCAD File(s)")) |
|
247 |
self.pushButtonAutoMapping.setText(_translate("ImportTextFromCADDialog", "Symbol Auto Mapping")) |
|
248 |
self.label_4.setText(_translate("ImportTextFromCADDialog", "Search Text 1(Line No.) :")) |
|
249 | 258 |
self.label_3.setText(_translate("ImportTextFromCADDialog", "Text Offset(x, y, scale) : ")) |
250 | 259 |
self.label.setText(_translate("ImportTextFromCADDialog", "Line Offset(x, y) : ")) |
260 |
self.label_4.setText(_translate("ImportTextFromCADDialog", "Search Text 1(Line No.) :")) |
|
261 |
self.pushButtonAutoMapping.setText(_translate("ImportTextFromCADDialog", "Symbol Auto Mapping")) |
|
251 | 262 |
self.pushButtonImport.setToolTip(_translate("ImportTextFromCADDialog", "Only horizontal and vertical lines")) |
252 | 263 |
self.pushButtonImport.setText(_translate("ImportTextFromCADDialog", "Import")) |
264 |
self.label_7.setText(_translate("ImportTextFromCADDialog", "Exclude Layers")) |
|
265 |
self.pushButtonClose.setText(_translate("ImportTextFromCADDialog", "Close")) |
|
266 |
self.label_6.setText(_translate("ImportTextFromCADDialog", "Border Scale :")) |
|
267 |
self.lineEditCAD.setPlaceholderText(_translate("ImportTextFromCADDialog", "Select AutoCAD File(s)")) |
|
253 | 268 |
self.tabWidgetEntities.setTabText(self.tabWidgetEntities.indexOf(self.tabLineTypes), _translate("ImportTextFromCADDialog", "Line Types")) |
254 | 269 |
self.tabWidgetEntities.setTabText(self.tabWidgetEntities.indexOf(self.tabSymbols), _translate("ImportTextFromCADDialog", "Symbols")) |
255 | 270 |
self.checkBoxAuto.setText(_translate("ImportTextFromCADDialog", "Auto Offset, Scale")) |
256 |
self.checkBoxLine.setText(_translate("ImportTextFromCADDialog", "Line")) |
|
257 |
self.checkBoxText.setText(_translate("ImportTextFromCADDialog", "Text")) |
|
258 |
self.checkBoxSymbol.setText(_translate("ImportTextFromCADDialog", "Symbol")) |
|
259 |
self.checkBoxLegend.setText(_translate("ImportTextFromCADDialog", "Legend")) |
|
271 |
self.label_8.setText(_translate("ImportTextFromCADDialog", "Symbol Offset(x, y) : ")) |
|
272 |
self.pushButtonSave.setText(_translate("ImportTextFromCADDialog", "Save Mapping")) |
|
260 | 273 |
self.label_2.setText(_translate("ImportTextFromCADDialog", "AutoCAD Files : ")) |
261 | 274 |
self.checkBoxGenDrawing.setText(_translate("ImportTextFromCADDialog", "Gen. Drawing")) |
262 |
self.pushButtonRefresh.setText(_translate("ImportTextFromCADDialog", "Symbol Refresh")) |
|
263 |
self.label_8.setText(_translate("ImportTextFromCADDialog", "Symbol Offset(x, y) : ")) |
|
264 | 275 |
self.label_5.setText(_translate("ImportTextFromCADDialog", "Search Text 2(Line No.) :")) |
276 |
self.pushButtonRefresh.setText(_translate("ImportTextFromCADDialog", "Symbol Refresh")) |
|
265 | 277 |
self.pushButtonAuto.setText(_translate("ImportTextFromCADDialog", "Auto Cal.")) |
266 |
self.checkBoxTextOverwrite.setText(_translate("ImportTextFromCADDialog", "Overwrite Text")) |
|
267 | 278 |
self.checkBoxDiagonal.setText(_translate("ImportTextFromCADDialog", "Exclude Diagonal Line")) |
268 |
self.pushButtonSave.setText(_translate("ImportTextFromCADDialog", "Save Mapping")) |
|
279 |
self.checkBoxTextOverwrite.setText(_translate("ImportTextFromCADDialog", "Overwrite Text")) |
|
280 |
self.checkBoxLine.setText(_translate("ImportTextFromCADDialog", "Line")) |
|
281 |
self.checkBoxText.setText(_translate("ImportTextFromCADDialog", "Text")) |
|
282 |
self.checkBoxSymbol.setText(_translate("ImportTextFromCADDialog", "Symbol")) |
|
283 |
self.checkBoxLegend.setText(_translate("ImportTextFromCADDialog", "Legend")) |
|
284 |
self.label_9.setText(_translate("ImportTextFromCADDialog", "Symbol Scale")) |
|
269 | 285 |
import MainWindow_rc |
270 | 286 |
|
271 | 287 |
|
DTI_PID/DTI_PID/UI/ImportTextFromCAD.ui | ||
---|---|---|
35 | 35 |
<layout class="QVBoxLayout" name="verticalLayout"> |
36 | 36 |
<item> |
37 | 37 |
<layout class="QGridLayout" name="gridLayout"> |
38 |
<item row="9" column="0"> |
|
39 |
<widget class="QLabel" name="label_6"> |
|
40 |
<property name="text"> |
|
41 |
<string>Scale :</string> |
|
42 |
</property> |
|
43 |
</widget> |
|
44 |
</item> |
|
45 |
<item row="13" column="3"> |
|
46 |
<widget class="QPushButton" name="pushButtonClose"> |
|
47 |
<property name="text"> |
|
48 |
<string>Close</string> |
|
49 |
</property> |
|
50 |
<property name="icon"> |
|
51 |
<iconset resource="../res/MainWindow.qrc"> |
|
52 |
<normaloff>:/newPrefix/Remove.svg</normaloff>:/newPrefix/Remove.svg</iconset> |
|
53 |
</property> |
|
54 |
</widget> |
|
55 |
</item> |
|
56 |
<item row="8" column="1" colspan="2"> |
|
57 |
<widget class="QLineEdit" name="lineEdit_2"/> |
|
58 |
</item> |
|
59 |
<item row="10" column="0"> |
|
60 |
<widget class="QLabel" name="label_7"> |
|
61 |
<property name="text"> |
|
62 |
<string>Exclude Layers</string> |
|
63 |
</property> |
|
64 |
</widget> |
|
65 |
</item> |
|
66 |
<item row="10" column="1" colspan="3"> |
|
67 |
<widget class="QListView" name="listViewExcludeLayers"/> |
|
68 |
</item> |
|
69 |
<item row="0" column="1" colspan="3"> |
|
70 |
<widget class="QLineEdit" name="lineEditCAD"> |
|
71 |
<property name="placeholderText"> |
|
72 |
<string>Select AutoCAD File(s)</string> |
|
73 |
</property> |
|
74 |
</widget> |
|
75 |
</item> |
|
76 |
<item row="0" column="4"> |
|
77 |
<widget class="QToolButton" name="toolButtonCAD"> |
|
78 |
<property name="text"> |
|
79 |
<string/> |
|
80 |
</property> |
|
81 |
<property name="icon"> |
|
82 |
<iconset resource="../res/MainWindow.qrc"> |
|
83 |
<normaloff>:/newPrefix/File.svg</normaloff>:/newPrefix/File.svg</iconset> |
|
84 |
</property> |
|
85 |
</widget> |
|
86 |
</item> |
|
87 |
<item row="8" column="3"> |
|
88 |
<widget class="QPushButton" name="pushButtonAutoMapping"> |
|
89 |
<property name="text"> |
|
90 |
<string>Symbol Auto Mapping</string> |
|
91 |
</property> |
|
92 |
</widget> |
|
93 |
</item> |
|
94 |
<item row="7" column="0"> |
|
95 |
<widget class="QLabel" name="label_4"> |
|
38 |
<item row="5" column="0"> |
|
39 |
<widget class="QLabel" name="label_3"> |
|
96 | 40 |
<property name="text"> |
97 |
<string>Search Text 1(Line No.) :</string>
|
|
41 |
<string>Text Offset(x, y, scale) : </string>
|
|
98 | 42 |
</property> |
99 | 43 |
</widget> |
100 | 44 |
</item> |
... | ... | |
108 | 52 |
</property> |
109 | 53 |
</widget> |
110 | 54 |
</item> |
55 |
<item row="4" column="0"> |
|
56 |
<widget class="QLabel" name="label"> |
|
57 |
<property name="text"> |
|
58 |
<string>Line Offset(x, y) : </string> |
|
59 |
</property> |
|
60 |
</widget> |
|
61 |
</item> |
|
111 | 62 |
<item row="4" column="1"> |
112 | 63 |
<widget class="QSpinBox" name="spinBoxX"> |
113 | 64 |
<property name="minimumSize"> |
... | ... | |
134 | 85 |
</property> |
135 | 86 |
</widget> |
136 | 87 |
</item> |
137 |
<item row="5" column="0">
|
|
138 |
<widget class="QLabel" name="label_3">
|
|
88 |
<item row="7" column="0">
|
|
89 |
<widget class="QLabel" name="label_4">
|
|
139 | 90 |
<property name="text"> |
140 |
<string>Text Offset(x, y, scale) : </string>
|
|
91 |
<string>Search Text 1(Line No.) :</string>
|
|
141 | 92 |
</property> |
142 | 93 |
</widget> |
143 | 94 |
</item> |
144 |
<item row="4" column="0">
|
|
145 |
<widget class="QLabel" name="label">
|
|
95 |
<item row="8" column="3">
|
|
96 |
<widget class="QPushButton" name="pushButtonAutoMapping">
|
|
146 | 97 |
<property name="text"> |
147 |
<string>Line Offset(x, y) : </string>
|
|
98 |
<string>Symbol Auto Mapping</string>
|
|
148 | 99 |
</property> |
149 | 100 |
</widget> |
150 | 101 |
</item> |
151 |
<item row="13" column="2">
|
|
102 |
<item row="14" column="2">
|
|
152 | 103 |
<widget class="QPushButton" name="pushButtonImport"> |
153 | 104 |
<property name="toolTip"> |
154 | 105 |
<string>Only horizontal and vertical lines</string> |
... | ... | |
162 | 113 |
</property> |
163 | 114 |
</widget> |
164 | 115 |
</item> |
116 |
<item row="0" column="4"> |
|
117 |
<widget class="QToolButton" name="toolButtonCAD"> |
|
118 |
<property name="text"> |
|
119 |
<string/> |
|
120 |
</property> |
|
121 |
<property name="icon"> |
|
122 |
<iconset resource="../res/MainWindow.qrc"> |
|
123 |
<normaloff>:/newPrefix/File.svg</normaloff>:/newPrefix/File.svg</iconset> |
|
124 |
</property> |
|
125 |
</widget> |
|
126 |
</item> |
|
127 |
<item row="11" column="0"> |
|
128 |
<widget class="QLabel" name="label_7"> |
|
129 |
<property name="text"> |
|
130 |
<string>Exclude Layers</string> |
|
131 |
</property> |
|
132 |
</widget> |
|
133 |
</item> |
|
134 |
<item row="14" column="3"> |
|
135 |
<widget class="QPushButton" name="pushButtonClose"> |
|
136 |
<property name="text"> |
|
137 |
<string>Close</string> |
|
138 |
</property> |
|
139 |
<property name="icon"> |
|
140 |
<iconset resource="../res/MainWindow.qrc"> |
|
141 |
<normaloff>:/newPrefix/Remove.svg</normaloff>:/newPrefix/Remove.svg</iconset> |
|
142 |
</property> |
|
143 |
</widget> |
|
144 |
</item> |
|
145 |
<item row="11" column="1" colspan="3"> |
|
146 |
<widget class="QListView" name="listViewExcludeLayers"/> |
|
147 |
</item> |
|
148 |
<item row="9" column="0"> |
|
149 |
<widget class="QLabel" name="label_6"> |
|
150 |
<property name="text"> |
|
151 |
<string>Border Scale :</string> |
|
152 |
</property> |
|
153 |
</widget> |
|
154 |
</item> |
|
155 |
<item row="8" column="1" colspan="2"> |
|
156 |
<widget class="QLineEdit" name="lineEdit_2"/> |
|
157 |
</item> |
|
158 |
<item row="0" column="1" colspan="3"> |
|
159 |
<widget class="QLineEdit" name="lineEditCAD"> |
|
160 |
<property name="placeholderText"> |
|
161 |
<string>Select AutoCAD File(s)</string> |
|
162 |
</property> |
|
163 |
</widget> |
|
164 |
</item> |
|
165 | 165 |
<item row="2" column="0" colspan="4"> |
166 | 166 |
<widget class="QTabWidget" name="tabWidgetEntities"> |
167 | 167 |
<property name="currentIndex"> |
... | ... | |
189 | 189 |
</widget> |
190 | 190 |
</widget> |
191 | 191 |
</item> |
192 |
<item row="9" column="3"> |
|
193 |
<widget class="QCheckBox" name="checkBoxAuto"> |
|
194 |
<property name="text"> |
|
195 |
<string>Auto Offset, Scale</string> |
|
196 |
</property> |
|
197 |
</widget> |
|
198 |
</item> |
|
199 | 192 |
<item row="6" column="1"> |
200 | 193 |
<widget class="QSpinBox" name="spinBoxSymbolX"> |
201 | 194 |
<property name="minimum"> |
... | ... | |
216 | 209 |
</property> |
217 | 210 |
</widget> |
218 | 211 |
</item> |
219 |
<item row="13" column="0" colspan="2"> |
|
220 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
212 |
<item row="9" column="3"> |
|
213 |
<widget class="QCheckBox" name="checkBoxAuto"> |
|
214 |
<property name="text"> |
|
215 |
<string>Auto Offset, Scale</string> |
|
216 |
</property> |
|
217 |
</widget> |
|
218 |
</item> |
|
219 |
<item row="7" column="1" colspan="2"> |
|
220 |
<widget class="QLineEdit" name="lineEdit"/> |
|
221 |
</item> |
|
222 |
<item row="6" column="0"> |
|
223 |
<widget class="QLabel" name="label_8"> |
|
224 |
<property name="text"> |
|
225 |
<string>Symbol Offset(x, y) : </string> |
|
226 |
</property> |
|
227 |
</widget> |
|
228 |
</item> |
|
229 |
<item row="13" column="0" colspan="4"> |
|
230 |
<widget class="QPushButton" name="pushButtonSave"> |
|
231 |
<property name="text"> |
|
232 |
<string>Save Mapping</string> |
|
233 |
</property> |
|
234 |
<property name="icon"> |
|
235 |
<iconset resource="../res/MainWindow.qrc"> |
|
236 |
<normaloff>:/newPrefix/Save.svg</normaloff>:/newPrefix/Save.svg</iconset> |
|
237 |
</property> |
|
238 |
</widget> |
|
239 |
</item> |
|
240 |
<item row="0" column="0"> |
|
241 |
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
|
221 | 242 |
<item> |
222 |
<widget class="QCheckBox" name="checkBoxLine">
|
|
243 |
<widget class="QLabel" name="label_2">
|
|
223 | 244 |
<property name="text"> |
224 |
<string>Line</string> |
|
225 |
</property> |
|
226 |
<property name="checked"> |
|
227 |
<bool>true</bool> |
|
245 |
<string>AutoCAD Files : </string> |
|
228 | 246 |
</property> |
229 | 247 |
</widget> |
230 | 248 |
</item> |
231 | 249 |
<item> |
232 |
<widget class="QCheckBox" name="checkBoxText">
|
|
250 |
<widget class="QCheckBox" name="checkBoxGenDrawing">
|
|
233 | 251 |
<property name="text"> |
234 |
<string>Text</string>
|
|
252 |
<string>Gen. Drawing</string>
|
|
235 | 253 |
</property> |
236 | 254 |
<property name="checked"> |
237 | 255 |
<bool>true</bool> |
238 | 256 |
</property> |
239 | 257 |
</widget> |
240 | 258 |
</item> |
259 |
</layout> |
|
260 |
</item> |
|
261 |
<item row="5" column="1" colspan="3"> |
|
262 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
241 | 263 |
<item> |
242 |
<widget class="QCheckBox" name="checkBoxSymbol">
|
|
243 |
<property name="text">
|
|
244 |
<string>Symbol</string>
|
|
264 |
<widget class="QSpinBox" name="spinBoxTextX">
|
|
265 |
<property name="minimum">
|
|
266 |
<number>-50000</number>
|
|
245 | 267 |
</property> |
246 |
<property name="checked">
|
|
247 |
<bool>true</bool>
|
|
268 |
<property name="maximum">
|
|
269 |
<number>50000</number>
|
|
248 | 270 |
</property> |
249 | 271 |
</widget> |
250 | 272 |
</item> |
251 | 273 |
<item> |
252 |
<widget class="QCheckBox" name="checkBoxLegend">
|
|
253 |
<property name="text">
|
|
254 |
<string>Legend</string>
|
|
274 |
<widget class="QSpinBox" name="spinBoxTextY">
|
|
275 |
<property name="minimum">
|
|
276 |
<number>-50000</number>
|
|
255 | 277 |
</property> |
256 |
</widget> |
|
257 |
</item> |
|
258 |
</layout> |
|
259 |
</item> |
|
260 |
<item row="0" column="0"> |
|
261 |
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
|
262 |
<item> |
|
263 |
<widget class="QLabel" name="label_2"> |
|
264 |
<property name="text"> |
|
265 |
<string>AutoCAD Files : </string> |
|
278 |
<property name="maximum"> |
|
279 |
<number>50000</number> |
|
266 | 280 |
</property> |
267 | 281 |
</widget> |
268 | 282 |
</item> |
269 | 283 |
<item> |
270 |
<widget class="QCheckBox" name="checkBoxGenDrawing"> |
|
271 |
<property name="text"> |
|
272 |
<string>Gen. Drawing</string> |
|
273 |
</property> |
|
274 |
<property name="checked"> |
|
275 |
<bool>true</bool> |
|
284 |
<widget class="QDoubleSpinBox" name="doubleSpinBoxScale"> |
|
285 |
<property name="singleStep"> |
|
286 |
<double>0.100000000000000</double> |
|
276 | 287 |
</property> |
277 | 288 |
</widget> |
278 | 289 |
</item> |
279 | 290 |
</layout> |
280 | 291 |
</item> |
281 |
<item row="6" column="3">
|
|
282 |
<widget class="QPushButton" name="pushButtonRefresh">
|
|
292 |
<item row="8" column="0">
|
|
293 |
<widget class="QLabel" name="label_5">
|
|
283 | 294 |
<property name="text"> |
284 |
<string>Symbol Refresh</string>
|
|
295 |
<string>Search Text 2(Line No.) :</string>
|
|
285 | 296 |
</property> |
286 | 297 |
</widget> |
287 | 298 |
</item> |
... | ... | |
295 | 306 |
</property> |
296 | 307 |
</widget> |
297 | 308 |
</item> |
298 |
<item row="6" column="0">
|
|
299 |
<widget class="QLabel" name="label_8">
|
|
309 |
<item row="6" column="3">
|
|
310 |
<widget class="QPushButton" name="pushButtonRefresh">
|
|
300 | 311 |
<property name="text"> |
301 |
<string>Symbol Offset(x, y) : </string>
|
|
312 |
<string>Symbol Refresh</string>
|
|
302 | 313 |
</property> |
303 | 314 |
</widget> |
304 | 315 |
</item> |
305 |
<item row="8" column="0">
|
|
306 |
<widget class="QLabel" name="label_5">
|
|
316 |
<item row="7" column="3">
|
|
317 |
<widget class="QPushButton" name="pushButtonAuto">
|
|
307 | 318 |
<property name="text"> |
308 |
<string>Search Text 2(Line No.) :</string>
|
|
319 |
<string>Auto Cal.</string>
|
|
309 | 320 |
</property> |
310 | 321 |
</widget> |
311 | 322 |
</item> |
312 |
<item row="5" column="1" colspan="3"> |
|
313 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
323 |
<item row="12" column="1"> |
|
324 |
<widget class="QCheckBox" name="checkBoxDiagonal"> |
|
325 |
<property name="text"> |
|
326 |
<string>Exclude Diagonal Line</string> |
|
327 |
</property> |
|
328 |
</widget> |
|
329 |
</item> |
|
330 |
<item row="12" column="0"> |
|
331 |
<widget class="QCheckBox" name="checkBoxTextOverwrite"> |
|
332 |
<property name="text"> |
|
333 |
<string>Overwrite Text</string> |
|
334 |
</property> |
|
335 |
</widget> |
|
336 |
</item> |
|
337 |
<item row="14" column="0" colspan="2"> |
|
338 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
314 | 339 |
<item> |
315 |
<widget class="QSpinBox" name="spinBoxTextX">
|
|
316 |
<property name="minimum">
|
|
317 |
<number>-50000</number>
|
|
340 |
<widget class="QCheckBox" name="checkBoxLine">
|
|
341 |
<property name="text">
|
|
342 |
<string>Line</string>
|
|
318 | 343 |
</property> |
319 |
<property name="maximum">
|
|
320 |
<number>50000</number>
|
|
344 |
<property name="checked">
|
|
345 |
<bool>true</bool>
|
|
321 | 346 |
</property> |
322 | 347 |
</widget> |
323 | 348 |
</item> |
324 | 349 |
<item> |
325 |
<widget class="QSpinBox" name="spinBoxTextY">
|
|
326 |
<property name="minimum">
|
|
327 |
<number>-50000</number>
|
|
350 |
<widget class="QCheckBox" name="checkBoxText">
|
|
351 |
<property name="text">
|
|
352 |
<string>Text</string>
|
|
328 | 353 |
</property> |
329 |
<property name="maximum">
|
|
330 |
<number>50000</number>
|
|
354 |
<property name="checked">
|
|
355 |
<bool>true</bool>
|
|
331 | 356 |
</property> |
332 | 357 |
</widget> |
333 | 358 |
</item> |
334 | 359 |
<item> |
335 |
<widget class="QDoubleSpinBox" name="doubleSpinBoxScale"> |
|
336 |
<property name="singleStep"> |
|
337 |
<double>0.100000000000000</double> |
|
360 |
<widget class="QCheckBox" name="checkBoxSymbol"> |
|
361 |
<property name="text"> |
|
362 |
<string>Symbol</string> |
|
363 |
</property> |
|
364 |
<property name="checked"> |
|
365 |
<bool>true</bool> |
|
366 |
</property> |
|
367 |
</widget> |
|
368 |
</item> |
|
369 |
<item> |
|
370 |
<widget class="QCheckBox" name="checkBoxLegend"> |
|
371 |
<property name="text"> |
|
372 |
<string>Legend</string> |
|
338 | 373 |
</property> |
339 | 374 |
</widget> |
340 | 375 |
</item> |
341 | 376 |
</layout> |
342 | 377 |
</item> |
343 |
<item row="7" column="3">
|
|
344 |
<widget class="QPushButton" name="pushButtonAuto">
|
|
378 |
<item row="10" column="0">
|
|
379 |
<widget class="QLabel" name="label_9">
|
|
345 | 380 |
<property name="text"> |
346 |
<string>Auto Cal.</string>
|
|
381 |
<string>Symbol Scale</string>
|
|
347 | 382 |
</property> |
348 | 383 |
</widget> |
349 | 384 |
</item> |
350 |
<item row="7" column="1" colspan="2"> |
|
351 |
<widget class="QLineEdit" name="lineEdit"/> |
|
352 |
</item> |
|
353 |
<item row="11" column="0"> |
|
354 |
<widget class="QCheckBox" name="checkBoxTextOverwrite"> |
|
355 |
<property name="text"> |
|
356 |
<string>Overwrite Text</string> |
|
385 |
<item row="10" column="1"> |
|
386 |
<widget class="QDoubleSpinBox" name="doubleSpinBoxSymbolScale"> |
|
387 |
<property name="decimals"> |
|
388 |
<number>1</number> |
|
357 | 389 |
</property> |
358 |
</widget> |
|
359 |
</item> |
|
360 |
<item row="11" column="1"> |
|
361 |
<widget class="QCheckBox" name="checkBoxDiagonal"> |
|
362 |
<property name="text"> |
|
363 |
<string>Exclude Diagonal Line</string> |
|
390 |
<property name="minimum"> |
|
391 |
<double>0.300000000000000</double> |
|
364 | 392 |
</property> |
365 |
</widget> |
|
366 |
</item> |
|
367 |
<item row="12" column="0" colspan="4"> |
|
368 |
<widget class="QPushButton" name="pushButtonSave"> |
|
369 |
<property name="text"> |
|
370 |
<string>Save Mapping</string> |
|
393 |
<property name="maximum"> |
|
394 |
<double>9.900000000000000</double> |
|
371 | 395 |
</property> |
372 |
<property name="icon"> |
|
373 |
<iconset resource="../res/MainWindow.qrc"> |
|
374 |
<normaloff>:/newPrefix/Save.svg</normaloff>:/newPrefix/Save.svg</iconset> |
|
396 |
<property name="singleStep"> |
|
397 |
<double>0.100000000000000</double> |
|
398 |
</property> |
|
399 |
<property name="value"> |
|
400 |
<double>1.000000000000000</double> |
|
375 | 401 |
</property> |
376 | 402 |
</widget> |
377 | 403 |
</item> |
... | ... | |
399 | 425 |
</layout> |
400 | 426 |
</widget> |
401 | 427 |
<tabstops> |
428 |
<tabstop>checkBoxGenDrawing</tabstop> |
|
429 |
<tabstop>lineEditCAD</tabstop> |
|
402 | 430 |
<tabstop>toolButtonCAD</tabstop> |
431 |
<tabstop>tabWidgetEntities</tabstop> |
|
432 |
<tabstop>treeViewLineType</tabstop> |
|
403 | 433 |
<tabstop>spinBoxX</tabstop> |
404 | 434 |
<tabstop>spinBoxY</tabstop> |
405 | 435 |
<tabstop>spinBoxTextX</tabstop> |
... | ... | |
407 | 437 |
<tabstop>doubleSpinBoxScale</tabstop> |
408 | 438 |
<tabstop>spinBoxSymbolX</tabstop> |
409 | 439 |
<tabstop>spinBoxSymbolY</tabstop> |
440 |
<tabstop>pushButtonRefresh</tabstop> |
|
410 | 441 |
<tabstop>lineEdit</tabstop> |
411 | 442 |
<tabstop>pushButtonAuto</tabstop> |
412 | 443 |
<tabstop>lineEdit_2</tabstop> |
... | ... | |
414 | 445 |
<tabstop>doubleSpinBox</tabstop> |
415 | 446 |
<tabstop>doubleSpinBox_2</tabstop> |
416 | 447 |
<tabstop>checkBoxAuto</tabstop> |
448 |
<tabstop>doubleSpinBoxSymbolScale</tabstop> |
|
417 | 449 |
<tabstop>listViewExcludeLayers</tabstop> |
450 |
<tabstop>checkBoxTextOverwrite</tabstop> |
|
451 |
<tabstop>checkBoxDiagonal</tabstop> |
|
452 |
<tabstop>pushButtonSave</tabstop> |
|
418 | 453 |
<tabstop>checkBoxLine</tabstop> |
419 | 454 |
<tabstop>checkBoxText</tabstop> |
420 | 455 |
<tabstop>checkBoxSymbol</tabstop> |
421 | 456 |
<tabstop>checkBoxLegend</tabstop> |
422 | 457 |
<tabstop>pushButtonImport</tabstop> |
423 | 458 |
<tabstop>pushButtonClose</tabstop> |
424 |
<tabstop>pushButtonSave</tabstop> |
|
425 |
<tabstop>lineEditCAD</tabstop> |
|
426 |
<tabstop>tabWidgetEntities</tabstop> |
|
427 |
<tabstop>treeViewLineType</tabstop> |
|
428 |
<tabstop>checkBoxGenDrawing</tabstop> |
|
429 | 459 |
<tabstop>treeViewSymbolMapping</tabstop> |
430 | 460 |
</tabstops> |
431 | 461 |
<resources> |
내보내기 Unified diff