개정판 7f2302be
issue #1167: ui change
Change-Id: I1b6459ebd4ec73227b82ebffe1f9b150eec16ade
DTI_PID/DTI_PID/UI/OPCRelation.ui | ||
---|---|---|
6 | 6 |
<rect> |
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 |
<width>1076</width>
|
|
9 |
<width>1075</width>
|
|
10 | 10 |
<height>680</height> |
11 | 11 |
</rect> |
12 | 12 |
</property> |
... | ... | |
14 | 14 |
<string>OPC Relation</string> |
15 | 15 |
</property> |
16 | 16 |
<layout class="QGridLayout" name="gridLayout"> |
17 |
<item row="1" column="0"> |
|
18 |
<widget class="QSplitter" name="splitter"> |
|
19 |
<property name="orientation"> |
|
20 |
<enum>Qt::Horizontal</enum> |
|
21 |
</property> |
|
22 |
<widget class="QTableWidget" name="tableWidgetSource"> |
|
23 |
<property name="selectionMode"> |
|
24 |
<enum>QAbstractItemView::SingleSelection</enum> |
|
25 |
</property> |
|
26 |
<property name="selectionBehavior"> |
|
27 |
<enum>QAbstractItemView::SelectRows</enum> |
|
28 |
</property> |
|
29 |
<property name="sortingEnabled"> |
|
30 |
<bool>true</bool> |
|
31 |
</property> |
|
32 |
<attribute name="horizontalHeaderShowSortIndicator" stdset="0"> |
|
33 |
<bool>true</bool> |
|
34 |
</attribute> |
|
35 |
<attribute name="horizontalHeaderStretchLastSection"> |
|
36 |
<bool>true</bool> |
|
37 |
</attribute> |
|
38 |
</widget> |
|
39 |
<widget class="QTableWidget" name="tableWidgetTarget"> |
|
40 |
<property name="maximumSize"> |
|
41 |
<size> |
|
42 |
<width>400</width> |
|
43 |
<height>16777215</height> |
|
44 |
</size> |
|
45 |
</property> |
|
46 |
<property name="baseSize"> |
|
47 |
<size> |
|
48 |
<width>400</width> |
|
49 |
<height>0</height> |
|
50 |
</size> |
|
51 |
</property> |
|
52 |
<property name="sortingEnabled"> |
|
53 |
<bool>true</bool> |
|
54 |
</property> |
|
55 |
</widget> |
|
56 |
</widget> |
|
57 |
</item> |
|
58 | 17 |
<item row="0" column="0"> |
59 | 18 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
60 | 19 |
<property name="sizeConstraint"> |
... | ... | |
98 | 57 |
</property> |
99 | 58 |
</widget> |
100 | 59 |
</item> |
60 |
<item row="2" column="0"> |
|
61 |
<widget class="QSplitter" name="splitter"> |
|
62 |
<property name="sizePolicy"> |
|
63 |
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> |
|
64 |
<horstretch>0</horstretch> |
|
65 |
<verstretch>0</verstretch> |
|
66 |
</sizepolicy> |
|
67 |
</property> |
|
68 |
<property name="orientation"> |
|
69 |
<enum>Qt::Horizontal</enum> |
|
70 |
</property> |
|
71 |
<widget class="QTableWidget" name="tableWidgetSource"> |
|
72 |
<property name="sizePolicy"> |
|
73 |
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> |
|
74 |
<horstretch>0</horstretch> |
|
75 |
<verstretch>0</verstretch> |
|
76 |
</sizepolicy> |
|
77 |
</property> |
|
78 |
<property name="selectionMode"> |
|
79 |
<enum>QAbstractItemView::SingleSelection</enum> |
|
80 |
</property> |
|
81 |
<property name="selectionBehavior"> |
|
82 |
<enum>QAbstractItemView::SelectRows</enum> |
|
83 |
</property> |
|
84 |
<property name="sortingEnabled"> |
|
85 |
<bool>true</bool> |
|
86 |
</property> |
|
87 |
<attribute name="horizontalHeaderShowSortIndicator" stdset="0"> |
|
88 |
<bool>true</bool> |
|
89 |
</attribute> |
|
90 |
<attribute name="horizontalHeaderStretchLastSection"> |
|
91 |
<bool>true</bool> |
|
92 |
</attribute> |
|
93 |
</widget> |
|
94 |
<widget class="QTableWidget" name="tableWidgetTarget"> |
|
95 |
<property name="sizePolicy"> |
|
96 |
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> |
|
97 |
<horstretch>0</horstretch> |
|
98 |
<verstretch>0</verstretch> |
|
99 |
</sizepolicy> |
|
100 |
</property> |
|
101 |
<property name="minimumSize"> |
|
102 |
<size> |
|
103 |
<width>0</width> |
|
104 |
<height>0</height> |
|
105 |
</size> |
|
106 |
</property> |
|
107 |
<property name="maximumSize"> |
|
108 |
<size> |
|
109 |
<width>16777215</width> |
|
110 |
<height>16777215</height> |
|
111 |
</size> |
|
112 |
</property> |
|
113 |
<property name="baseSize"> |
|
114 |
<size> |
|
115 |
<width>0</width> |
|
116 |
<height>0</height> |
|
117 |
</size> |
|
118 |
</property> |
|
119 |
<property name="sortingEnabled"> |
|
120 |
<bool>true</bool> |
|
121 |
</property> |
|
122 |
<attribute name="horizontalHeaderStretchLastSection"> |
|
123 |
<bool>true</bool> |
|
124 |
</attribute> |
|
125 |
</widget> |
|
126 |
</widget> |
|
127 |
</item> |
|
101 | 128 |
</layout> |
102 | 129 |
</widget> |
103 | 130 |
<resources/> |
DTI_PID/DTI_PID/UI/OPCRelation_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file '.\UI\OPCRelation.ui'
|
|
3 |
# Form implementation generated from reading ui file './UI/OPCRelation.ui'
|
|
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.13.0
|
|
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
|
6 | 6 |
# |
7 | 7 |
# WARNING! All changes made in this file will be lost! |
8 | 8 |
|
9 |
|
|
10 | 9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
11 | 10 |
|
12 |
|
|
13 | 11 |
class Ui_OPCRelationDialog(object): |
14 | 12 |
def setupUi(self, OPCRelationDialog): |
15 | 13 |
OPCRelationDialog.setObjectName("OPCRelationDialog") |
16 |
OPCRelationDialog.resize(1076, 680)
|
|
14 |
OPCRelationDialog.resize(1075, 680)
|
|
17 | 15 |
self.gridLayout = QtWidgets.QGridLayout(OPCRelationDialog) |
18 | 16 |
self.gridLayout.setObjectName("gridLayout") |
19 |
self.splitter = QtWidgets.QSplitter(OPCRelationDialog) |
|
20 |
self.splitter.setOrientation(QtCore.Qt.Horizontal) |
|
21 |
self.splitter.setObjectName("splitter") |
|
22 |
self.tableWidgetSource = QtWidgets.QTableWidget(self.splitter) |
|
23 |
self.tableWidgetSource.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) |
|
24 |
self.tableWidgetSource.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) |
|
25 |
self.tableWidgetSource.setObjectName("tableWidgetSource") |
|
26 |
self.tableWidgetSource.setColumnCount(0) |
|
27 |
self.tableWidgetSource.setRowCount(0) |
|
28 |
self.tableWidgetSource.horizontalHeader().setSortIndicatorShown(True) |
|
29 |
self.tableWidgetSource.horizontalHeader().setStretchLastSection(True) |
|
30 |
self.tableWidgetTarget = QtWidgets.QTableWidget(self.splitter) |
|
31 |
self.tableWidgetTarget.setMaximumSize(QtCore.QSize(400, 16777215)) |
|
32 |
self.tableWidgetTarget.setBaseSize(QtCore.QSize(400, 0)) |
|
33 |
self.tableWidgetTarget.setObjectName("tableWidgetTarget") |
|
34 |
self.tableWidgetTarget.setColumnCount(0) |
|
35 |
self.tableWidgetTarget.setRowCount(0) |
|
36 |
self.gridLayout.addWidget(self.splitter, 1, 0, 1, 1) |
|
37 | 17 |
self.horizontalLayout = QtWidgets.QHBoxLayout() |
38 | 18 |
self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize) |
39 | 19 |
self.horizontalLayout.setObjectName("horizontalLayout") |
... | ... | |
49 | 29 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
50 | 30 |
self.buttonBox.setObjectName("buttonBox") |
51 | 31 |
self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 1) |
32 |
self.splitter = QtWidgets.QSplitter(OPCRelationDialog) |
|
33 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) |
|
34 |
sizePolicy.setHorizontalStretch(0) |
|
35 |
sizePolicy.setVerticalStretch(0) |
|
36 |
sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth()) |
|
37 |
self.splitter.setSizePolicy(sizePolicy) |
|
38 |
self.splitter.setOrientation(QtCore.Qt.Horizontal) |
|
39 |
self.splitter.setObjectName("splitter") |
|
40 |
self.tableWidgetSource = QtWidgets.QTableWidget(self.splitter) |
|
41 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
|
42 |
sizePolicy.setHorizontalStretch(0) |
|
43 |
sizePolicy.setVerticalStretch(0) |
|
44 |
sizePolicy.setHeightForWidth(self.tableWidgetSource.sizePolicy().hasHeightForWidth()) |
|
45 |
self.tableWidgetSource.setSizePolicy(sizePolicy) |
|
46 |
self.tableWidgetSource.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) |
|
47 |
self.tableWidgetSource.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) |
|
48 |
self.tableWidgetSource.setObjectName("tableWidgetSource") |
|
49 |
self.tableWidgetSource.setColumnCount(0) |
|
50 |
self.tableWidgetSource.setRowCount(0) |
|
51 |
self.tableWidgetSource.horizontalHeader().setSortIndicatorShown(True) |
|
52 |
self.tableWidgetSource.horizontalHeader().setStretchLastSection(True) |
|
53 |
self.tableWidgetTarget = QtWidgets.QTableWidget(self.splitter) |
|
54 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
|
55 |
sizePolicy.setHorizontalStretch(0) |
|
56 |
sizePolicy.setVerticalStretch(0) |
|
57 |
sizePolicy.setHeightForWidth(self.tableWidgetTarget.sizePolicy().hasHeightForWidth()) |
|
58 |
self.tableWidgetTarget.setSizePolicy(sizePolicy) |
|
59 |
self.tableWidgetTarget.setMinimumSize(QtCore.QSize(0, 0)) |
|
60 |
self.tableWidgetTarget.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
61 |
self.tableWidgetTarget.setBaseSize(QtCore.QSize(0, 0)) |
|
62 |
self.tableWidgetTarget.setObjectName("tableWidgetTarget") |
|
63 |
self.tableWidgetTarget.setColumnCount(0) |
|
64 |
self.tableWidgetTarget.setRowCount(0) |
|
65 |
self.tableWidgetTarget.horizontalHeader().setStretchLastSection(True) |
|
66 |
self.gridLayout.addWidget(self.splitter, 2, 0, 1, 1) |
|
52 | 67 |
|
53 | 68 |
self.retranslateUi(OPCRelationDialog) |
54 | 69 |
self.buttonBox.accepted.connect(OPCRelationDialog.accept) |
... | ... | |
58 | 73 |
def retranslateUi(self, OPCRelationDialog): |
59 | 74 |
_translate = QtCore.QCoreApplication.translate |
60 | 75 |
OPCRelationDialog.setWindowTitle(_translate("OPCRelationDialog", "OPC Relation")) |
76 |
self.pushButtonAutoFill.setText(_translate("OPCRelationDialog", "Auto Fill")) |
|
61 | 77 |
self.tableWidgetSource.setSortingEnabled(True) |
62 | 78 |
self.tableWidgetTarget.setSortingEnabled(True) |
63 |
self.pushButtonAutoFill.setText(_translate("OPCRelationDialog", "Auto Fill")) |
|
79 |
|
|
80 |
|
|
81 |
if __name__ == "__main__": |
|
82 |
import sys |
|
83 |
app = QtWidgets.QApplication(sys.argv) |
|
84 |
OPCRelationDialog = QtWidgets.QDialog() |
|
85 |
ui = Ui_OPCRelationDialog() |
|
86 |
ui.setupUi(OPCRelationDialog) |
|
87 |
OPCRelationDialog.show() |
|
88 |
sys.exit(app.exec_()) |
|
89 |
|
내보내기 Unified diff