개정판 99439baa
issue #503:
- change area configuration ui for title block
DTI_PID/DTI_PID/Configuration_Area_UI.py | ||
---|---|---|
11 | 11 |
class Ui_AreaDialog(object): |
12 | 12 |
def setupUi(self, AreaDialog): |
13 | 13 |
AreaDialog.setObjectName("AreaDialog") |
14 |
AreaDialog.resize(400, 446)
|
|
14 |
AreaDialog.resize(497, 544)
|
|
15 | 15 |
font = QtGui.QFont() |
16 | 16 |
font.setFamily("맑은 고딕") |
17 | 17 |
AreaDialog.setFont(font) |
... | ... | |
20 | 20 |
AreaDialog.setWindowIcon(icon) |
21 | 21 |
self.gridLayout = QtWidgets.QGridLayout(AreaDialog) |
22 | 22 |
self.gridLayout.setObjectName("gridLayout") |
23 |
self.buttonBox = QtWidgets.QDialogButtonBox(AreaDialog) |
|
24 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
|
25 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
|
26 |
self.buttonBox.setObjectName("buttonBox") |
|
27 |
self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 1) |
|
28 | 23 |
self.groupBox = QtWidgets.QGroupBox(AreaDialog) |
29 | 24 |
self.groupBox.setObjectName("groupBox") |
30 | 25 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) |
... | ... | |
126 | 121 |
self.horizontalLayout_2.addWidget(self.tableWidgetEquipmentDescArea) |
127 | 122 |
self.verticalLayout.addLayout(self.horizontalLayout_2) |
128 | 123 |
self.gridLayout_3.addLayout(self.verticalLayout, 0, 0, 1, 1) |
129 |
self.gridLayout.addWidget(self.groupBoxEquipmentDesc, 2, 0, 1, 1) |
|
124 |
self.gridLayout.addWidget(self.groupBoxEquipmentDesc, 3, 0, 1, 1) |
|
125 |
self.buttonBox = QtWidgets.QDialogButtonBox(AreaDialog) |
|
126 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
|
127 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
|
128 |
self.buttonBox.setObjectName("buttonBox") |
|
129 |
self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 1) |
|
130 |
self.groupBoxTitleBlock = QtWidgets.QGroupBox(AreaDialog) |
|
131 |
self.groupBoxTitleBlock.setObjectName("groupBoxTitleBlock") |
|
132 |
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBoxTitleBlock) |
|
133 |
self.gridLayout_4.setObjectName("gridLayout_4") |
|
134 |
self.verticalLayout_3 = QtWidgets.QVBoxLayout() |
|
135 |
self.verticalLayout_3.setObjectName("verticalLayout_3") |
|
136 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
|
137 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
|
138 |
self.tableWidget = QtWidgets.QTableWidget(self.groupBoxTitleBlock) |
|
139 |
self.tableWidget.setObjectName("tableWidget") |
|
140 |
self.tableWidget.setColumnCount(0) |
|
141 |
self.tableWidget.setRowCount(0) |
|
142 |
self.horizontalLayout_4.addWidget(self.tableWidget) |
|
143 |
self.verticalLayout_3.addLayout(self.horizontalLayout_4) |
|
144 |
self.gridLayout_4.addLayout(self.verticalLayout_3, 1, 0, 1, 1) |
|
145 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
|
146 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
|
147 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
148 |
self.horizontalLayout_3.addItem(spacerItem) |
|
149 |
self.pushButtonAddTitleBlockProp = QtWidgets.QPushButton(self.groupBoxTitleBlock) |
|
150 |
self.pushButtonAddTitleBlockProp.setMinimumSize(QtCore.QSize(22, 0)) |
|
151 |
self.pushButtonAddTitleBlockProp.setMaximumSize(QtCore.QSize(22, 16777215)) |
|
152 |
self.pushButtonAddTitleBlockProp.setObjectName("pushButtonAddTitleBlockProp") |
|
153 |
self.horizontalLayout_3.addWidget(self.pushButtonAddTitleBlockProp) |
|
154 |
self.pushButtonDelTitleBlockProp = QtWidgets.QPushButton(self.groupBoxTitleBlock) |
|
155 |
self.pushButtonDelTitleBlockProp.setMinimumSize(QtCore.QSize(22, 0)) |
|
156 |
self.pushButtonDelTitleBlockProp.setMaximumSize(QtCore.QSize(22, 16777215)) |
|
157 |
self.pushButtonDelTitleBlockProp.setObjectName("pushButtonDelTitleBlockProp") |
|
158 |
self.horizontalLayout_3.addWidget(self.pushButtonDelTitleBlockProp) |
|
159 |
self.gridLayout_4.addLayout(self.horizontalLayout_3, 0, 0, 1, 1) |
|
160 |
self.gridLayout.addWidget(self.groupBoxTitleBlock, 2, 0, 1, 1) |
|
130 | 161 | |
131 | 162 |
self.retranslateUi(AreaDialog) |
132 | 163 |
self.buttonBox.accepted.connect(AreaDialog.accept) |
... | ... | |
152 | 183 |
self.groupBoxEquipmentDesc.setTitle(_translate("AreaDialog", "Equipment Desc. 영역")) |
153 | 184 |
self.pushButtonAdd.setText(_translate("AreaDialog", "+")) |
154 | 185 |
self.pushButtonDel.setText(_translate("AreaDialog", "-")) |
186 |
self.groupBoxTitleBlock.setTitle(_translate("AreaDialog", "Title Block")) |
|
187 |
self.pushButtonAddTitleBlockProp.setText(_translate("AreaDialog", "+")) |
|
188 |
self.pushButtonDelTitleBlockProp.setText(_translate("AreaDialog", "-")) |
|
155 | 189 | |
156 | 190 |
import MainWindow_rc |
DTI_PID/DTI_PID/Scripts/TitleBlockProperties.sql | ||
---|---|---|
1 |
CREATE TABLE IF NOT EXISTS [TitleBlockProperties]( |
|
2 |
[UID] TEXT CONSTRAINT [TitleBlockProperties_PK] PRIMARY KEY NOT NULL, |
|
3 |
[NAME] TEXT NOT NULL UNIQUE, |
|
4 |
[AREA] TEXT |
|
5 |
); |
|
6 |
CREATE UNIQUE INDEX IF NOT EXISTS [TitleBlockProperties_NAME_IDX] ON [TitleBlockProperties]([NAME]); |
DTI_PID/DTI_PID/UI/Configuration_Area.ui | ||
---|---|---|
6 | 6 |
<rect> |
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 |
<width>400</width>
|
|
10 |
<height>446</height>
|
|
9 |
<width>497</width>
|
|
10 |
<height>544</height>
|
|
11 | 11 |
</rect> |
12 | 12 |
</property> |
13 | 13 |
<property name="font"> |
... | ... | |
23 | 23 |
<normaloff>:/newPrefix/setting.png</normaloff>:/newPrefix/setting.png</iconset> |
24 | 24 |
</property> |
25 | 25 |
<layout class="QGridLayout" name="gridLayout"> |
26 |
<item row="3" column="0"> |
|
27 |
<widget class="QDialogButtonBox" name="buttonBox"> |
|
28 |
<property name="orientation"> |
|
29 |
<enum>Qt::Horizontal</enum> |
|
30 |
</property> |
|
31 |
<property name="standardButtons"> |
|
32 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
|
33 |
</property> |
|
34 |
</widget> |
|
35 |
</item> |
|
36 | 26 |
<item row="1" column="0"> |
37 | 27 |
<widget class="QGroupBox" name="groupBox"> |
38 | 28 |
<property name="title"> |
... | ... | |
192 | 182 |
</layout> |
193 | 183 |
</widget> |
194 | 184 |
</item> |
195 |
<item row="2" column="0">
|
|
185 |
<item row="3" column="0">
|
|
196 | 186 |
<widget class="QGroupBox" name="groupBoxEquipmentDesc"> |
197 | 187 |
<property name="title"> |
198 | 188 |
<string>Equipment Desc. 영역</string> |
... | ... | |
257 | 247 |
</layout> |
258 | 248 |
</widget> |
259 | 249 |
</item> |
250 |
<item row="4" column="0"> |
|
251 |
<widget class="QDialogButtonBox" name="buttonBox"> |
|
252 |
<property name="orientation"> |
|
253 |
<enum>Qt::Horizontal</enum> |
|
254 |
</property> |
|
255 |
<property name="standardButtons"> |
|
256 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
|
257 |
</property> |
|
258 |
</widget> |
|
259 |
</item> |
|
260 |
<item row="2" column="0"> |
|
261 |
<widget class="QGroupBox" name="groupBoxTitleBlock"> |
|
262 |
<property name="title"> |
|
263 |
<string>Title Block</string> |
|
264 |
</property> |
|
265 |
<layout class="QGridLayout" name="gridLayout_4"> |
|
266 |
<item row="1" column="0"> |
|
267 |
<layout class="QVBoxLayout" name="verticalLayout_3"> |
|
268 |
<item> |
|
269 |
<layout class="QHBoxLayout" name="horizontalLayout_4"> |
|
270 |
<item> |
|
271 |
<widget class="QTableWidget" name="tableWidget"/> |
|
272 |
</item> |
|
273 |
</layout> |
|
274 |
</item> |
|
275 |
</layout> |
|
276 |
</item> |
|
277 |
<item row="0" column="0"> |
|
278 |
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
|
279 |
<item> |
|
280 |
<spacer name="horizontalSpacer"> |
|
281 |
<property name="orientation"> |
|
282 |
<enum>Qt::Horizontal</enum> |
|
283 |
</property> |
|
284 |
<property name="sizeHint" stdset="0"> |
|
285 |
<size> |
|
286 |
<width>40</width> |
|
287 |
<height>20</height> |
|
288 |
</size> |
|
289 |
</property> |
|
290 |
</spacer> |
|
291 |
</item> |
|
292 |
<item> |
|
293 |
<widget class="QPushButton" name="pushButtonAddTitleBlockProp"> |
|
294 |
<property name="minimumSize"> |
|
295 |
<size> |
|
296 |
<width>22</width> |
|
297 |
<height>0</height> |
|
298 |
</size> |
|
299 |
</property> |
|
300 |
<property name="maximumSize"> |
|
301 |
<size> |
|
302 |
<width>22</width> |
|
303 |
<height>16777215</height> |
|
304 |
</size> |
|
305 |
</property> |
|
306 |
<property name="text"> |
|
307 |
<string>+</string> |
|
308 |
</property> |
|
309 |
</widget> |
|
310 |
</item> |
|
311 |
<item> |
|
312 |
<widget class="QPushButton" name="pushButtonDelTitleBlockProp"> |
|
313 |
<property name="minimumSize"> |
|
314 |
<size> |
|
315 |
<width>22</width> |
|
316 |
<height>0</height> |
|
317 |
</size> |
|
318 |
</property> |
|
319 |
<property name="maximumSize"> |
|
320 |
<size> |
|
321 |
<width>22</width> |
|
322 |
<height>16777215</height> |
|
323 |
</size> |
|
324 |
</property> |
|
325 |
<property name="text"> |
|
326 |
<string>-</string> |
|
327 |
</property> |
|
328 |
</widget> |
|
329 |
</item> |
|
330 |
</layout> |
|
331 |
</item> |
|
332 |
</layout> |
|
333 |
</widget> |
|
334 |
</item> |
|
260 | 335 |
</layout> |
261 | 336 |
</widget> |
262 | 337 |
<resources> |
내보내기 Unified diff