forked from zhanglongqi/pymodslave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ui_mbdata.py
184 lines (177 loc) · 11.7 KB
/
Ui_mbdata.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mbdata.ui'
#
# Created: Wed Apr 03 14:32:30 2013
# by: PyQt4 UI code generator 4.9.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class Ui_MBData(object):
def setupUi(self, MBData):
MBData.setObjectName(_fromUtf8("MBData"))
MBData.resize(500, 420)
MBData.setMinimumSize(QtCore.QSize(500, 420))
MBData.setMaximumSize(QtCore.QSize(500, 420))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/Bus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MBData.setWindowIcon(icon)
self.centralwidget = QtGui.QWidget(MBData)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.tabIOs = QtGui.QTabWidget(self.centralwidget)
self.tabIOs.setGeometry(QtCore.QRect(10, 11, 481, 401))
self.tabIOs.setObjectName(_fromUtf8("tabIOs"))
self.tabCoils = QtGui.QWidget()
self.tabCoils.setObjectName(_fromUtf8("tabCoils"))
self.verticalLayoutWidget = QtGui.QWidget(self.tabCoils)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(6, 5, 452, 364))
self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.pbResetDO = QtGui.QPushButton(self.verticalLayoutWidget)
self.pbResetDO.setMinimumSize(QtCore.QSize(48, 0))
self.pbResetDO.setMaximumSize(QtCore.QSize(48, 16777215))
self.pbResetDO.setText(_fromUtf8(""))
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/refresh-16.png")), QtGui.QIcon.Normal, QtGui.QIcon.On)
self.pbResetDO.setIcon(icon1)
self.pbResetDO.setObjectName(_fromUtf8("pbResetDO"))
self.horizontalLayout.addWidget(self.pbResetDO)
self.chkSimCoils = QtGui.QCheckBox(self.verticalLayoutWidget)
self.chkSimCoils.setObjectName(_fromUtf8("chkSimCoils"))
self.horizontalLayout.addWidget(self.chkSimCoils)
self.verticalLayout.addLayout(self.horizontalLayout)
self.tvCoilsData = QtGui.QTableView(self.verticalLayoutWidget)
self.tvCoilsData.setMinimumSize(QtCore.QSize(450, 330))
self.tvCoilsData.setObjectName(_fromUtf8("tvCoilsData"))
self.verticalLayout.addWidget(self.tvCoilsData)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/DO.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.tabIOs.addTab(self.tabCoils, icon2, _fromUtf8(""))
self.tabDiscreteInputs = QtGui.QWidget()
self.tabDiscreteInputs.setObjectName(_fromUtf8("tabDiscreteInputs"))
self.verticalLayoutWidget_2 = QtGui.QWidget(self.tabDiscreteInputs)
self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(6, 5, 452, 364))
self.verticalLayoutWidget_2.setObjectName(_fromUtf8("verticalLayoutWidget_2"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
self.verticalLayout_2.setMargin(0)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.pbResetDI = QtGui.QPushButton(self.verticalLayoutWidget_2)
self.pbResetDI.setMinimumSize(QtCore.QSize(48, 0))
self.pbResetDI.setMaximumSize(QtCore.QSize(48, 16777215))
self.pbResetDI.setText(_fromUtf8(""))
self.pbResetDI.setIcon(icon1)
self.pbResetDI.setObjectName(_fromUtf8("pbResetDI"))
self.horizontalLayout_2.addWidget(self.pbResetDI)
self.chkSimDisInputs = QtGui.QCheckBox(self.verticalLayoutWidget_2)
self.chkSimDisInputs.setObjectName(_fromUtf8("chkSimDisInputs"))
self.horizontalLayout_2.addWidget(self.chkSimDisInputs)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.tvDiscreteInputsData = QtGui.QTableView(self.verticalLayoutWidget_2)
self.tvDiscreteInputsData.setEnabled(True)
self.tvDiscreteInputsData.setMinimumSize(QtCore.QSize(450, 330))
self.tvDiscreteInputsData.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.tvDiscreteInputsData.setObjectName(_fromUtf8("tvDiscreteInputsData"))
self.verticalLayout_2.addWidget(self.tvDiscreteInputsData)
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/DI.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.tabIOs.addTab(self.tabDiscreteInputs, icon3, _fromUtf8(""))
self.tabHoldingRegisters = QtGui.QWidget()
self.tabHoldingRegisters.setObjectName(_fromUtf8("tabHoldingRegisters"))
self.verticalLayoutWidget_3 = QtGui.QWidget(self.tabHoldingRegisters)
self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(6, 5, 452, 364))
self.verticalLayoutWidget_3.setObjectName(_fromUtf8("verticalLayoutWidget_3"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3)
self.verticalLayout_3.setMargin(0)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.horizontalLayout_3 = QtGui.QHBoxLayout()
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.pbResetAO = QtGui.QPushButton(self.verticalLayoutWidget_3)
self.pbResetAO.setMinimumSize(QtCore.QSize(48, 0))
self.pbResetAO.setMaximumSize(QtCore.QSize(48, 16777215))
self.pbResetAO.setText(_fromUtf8(""))
self.pbResetAO.setIcon(icon1)
self.pbResetAO.setObjectName(_fromUtf8("pbResetAO"))
self.horizontalLayout_3.addWidget(self.pbResetAO)
self.chkSimHoldRegs = QtGui.QCheckBox(self.verticalLayoutWidget_3)
self.chkSimHoldRegs.setObjectName(_fromUtf8("chkSimHoldRegs"))
self.horizontalLayout_3.addWidget(self.chkSimHoldRegs)
self.cmbHoldRegsType = QtGui.QComboBox(self.verticalLayoutWidget_3)
self.cmbHoldRegsType.setMaxVisibleItems(2)
self.cmbHoldRegsType.setObjectName(_fromUtf8("cmbHoldRegsType"))
self.cmbHoldRegsType.addItem(_fromUtf8(""))
self.cmbHoldRegsType.addItem(_fromUtf8(""))
self.horizontalLayout_3.addWidget(self.cmbHoldRegsType)
self.verticalLayout_3.addLayout(self.horizontalLayout_3)
self.tvHoldingRegistersData = QtGui.QTableView(self.verticalLayoutWidget_3)
self.tvHoldingRegistersData.setMinimumSize(QtCore.QSize(450, 330))
self.tvHoldingRegistersData.setObjectName(_fromUtf8("tvHoldingRegistersData"))
self.verticalLayout_3.addWidget(self.tvHoldingRegistersData)
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/AO.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.tabIOs.addTab(self.tabHoldingRegisters, icon4, _fromUtf8(""))
self.tabInputRegisters = QtGui.QWidget()
self.tabInputRegisters.setObjectName(_fromUtf8("tabInputRegisters"))
self.verticalLayoutWidget_4 = QtGui.QWidget(self.tabInputRegisters)
self.verticalLayoutWidget_4.setGeometry(QtCore.QRect(6, 5, 452, 364))
self.verticalLayoutWidget_4.setObjectName(_fromUtf8("verticalLayoutWidget_4"))
self.verticalLayout_4 = QtGui.QVBoxLayout(self.verticalLayoutWidget_4)
self.verticalLayout_4.setMargin(0)
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.horizontalLayout_4 = QtGui.QHBoxLayout()
self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
self.pbResetAI = QtGui.QPushButton(self.verticalLayoutWidget_4)
self.pbResetAI.setMinimumSize(QtCore.QSize(48, 0))
self.pbResetAI.setMaximumSize(QtCore.QSize(48, 16777215))
self.pbResetAI.setText(_fromUtf8(""))
self.pbResetAI.setIcon(icon1)
self.pbResetAI.setObjectName(_fromUtf8("pbResetAI"))
self.horizontalLayout_4.addWidget(self.pbResetAI)
self.chkSimInputRegs = QtGui.QCheckBox(self.verticalLayoutWidget_4)
self.chkSimInputRegs.setObjectName(_fromUtf8("chkSimInputRegs"))
self.horizontalLayout_4.addWidget(self.chkSimInputRegs)
self.cmbInputRegsType = QtGui.QComboBox(self.verticalLayoutWidget_4)
self.cmbInputRegsType.setMaxVisibleItems(2)
self.cmbInputRegsType.setObjectName(_fromUtf8("cmbInputRegsType"))
self.cmbInputRegsType.addItem(_fromUtf8(""))
self.cmbInputRegsType.addItem(_fromUtf8(""))
self.horizontalLayout_4.addWidget(self.cmbInputRegsType)
self.verticalLayout_4.addLayout(self.horizontalLayout_4)
self.tvInputRegistersData = QtGui.QTableView(self.verticalLayoutWidget_4)
self.tvInputRegistersData.setMinimumSize(QtCore.QSize(450, 330))
self.tvInputRegistersData.setObjectName(_fromUtf8("tvInputRegistersData"))
self.verticalLayout_4.addWidget(self.tvInputRegistersData)
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/AI.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.tabIOs.addTab(self.tabInputRegisters, icon5, _fromUtf8(""))
MBData.setCentralWidget(self.centralwidget)
self.retranslateUi(MBData)
self.tabIOs.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MBData)
def retranslateUi(self, MBData):
MBData.setWindowTitle(QtGui.QApplication.translate("MBData", "Data", None, QtGui.QApplication.UnicodeUTF8))
self.pbResetDO.setToolTip(QtGui.QApplication.translate("MBData", "Reset", None, QtGui.QApplication.UnicodeUTF8))
self.chkSimCoils.setText(QtGui.QApplication.translate("MBData", "Sim", None, QtGui.QApplication.UnicodeUTF8))
self.tabIOs.setTabText(self.tabIOs.indexOf(self.tabCoils), QtGui.QApplication.translate("MBData", "Coils", None, QtGui.QApplication.UnicodeUTF8))
self.pbResetDI.setToolTip(QtGui.QApplication.translate("MBData", "Reset", None, QtGui.QApplication.UnicodeUTF8))
self.chkSimDisInputs.setText(QtGui.QApplication.translate("MBData", "Sim", None, QtGui.QApplication.UnicodeUTF8))
self.tabIOs.setTabText(self.tabIOs.indexOf(self.tabDiscreteInputs), QtGui.QApplication.translate("MBData", "Discrete Inputs", None, QtGui.QApplication.UnicodeUTF8))
self.pbResetAO.setToolTip(QtGui.QApplication.translate("MBData", "Reset", None, QtGui.QApplication.UnicodeUTF8))
self.chkSimHoldRegs.setText(QtGui.QApplication.translate("MBData", "Sim", None, QtGui.QApplication.UnicodeUTF8))
self.cmbHoldRegsType.setItemText(0, QtGui.QApplication.translate("MBData", "Decimal", None, QtGui.QApplication.UnicodeUTF8))
self.cmbHoldRegsType.setItemText(1, QtGui.QApplication.translate("MBData", "Hex", None, QtGui.QApplication.UnicodeUTF8))
self.tabIOs.setTabText(self.tabIOs.indexOf(self.tabHoldingRegisters), QtGui.QApplication.translate("MBData", "Holding Registers", None, QtGui.QApplication.UnicodeUTF8))
self.pbResetAI.setToolTip(QtGui.QApplication.translate("MBData", "Reset", None, QtGui.QApplication.UnicodeUTF8))
self.chkSimInputRegs.setText(QtGui.QApplication.translate("MBData", "Sim", None, QtGui.QApplication.UnicodeUTF8))
self.cmbInputRegsType.setItemText(0, QtGui.QApplication.translate("MBData", "Decimal", None, QtGui.QApplication.UnicodeUTF8))
self.cmbInputRegsType.setItemText(1, QtGui.QApplication.translate("MBData", "Hex", None, QtGui.QApplication.UnicodeUTF8))
self.tabIOs.setTabText(self.tabIOs.indexOf(self.tabInputRegisters), QtGui.QApplication.translate("MBData", "Input Registers", None, QtGui.QApplication.UnicodeUTF8))
import pyModSlaveQt_rc