示例#1
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1024, 736)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.splitter_2 = QtGui.QSplitter(self.centralwidget)
        self.splitter_2.setOrientation(QtCore.Qt.Vertical)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.splitter = QtGui.QSplitter(self.splitter_2)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.logWidget = LogWidget(self.splitter)
        self.logWidget.setObjectName(_fromUtf8("logWidget"))
        self.tabWidget = QtGui.QTabWidget(self.splitter)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.tab_2)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.paramView = PropertyExplorer(self.tab_2)
        self.paramView.setObjectName(_fromUtf8("paramView"))
        self.verticalLayout_3.addWidget(self.paramView)
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_3)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.tabWidget2 = QtGui.QTabWidget(self.tab_3)
        self.tabWidget2.setObjectName(_fromUtf8("tabWidget2"))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.tab_5)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.dataView1 = PropertyExplorer(self.tab_5)
        self.dataView1.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.dataView1.setObjectName(_fromUtf8("dataView1"))
        self.verticalLayout_5.addWidget(self.dataView1)
        self.tabWidget2.addTab(self.tab_5, _fromUtf8(""))
        self.tab_6 = QtGui.QWidget()
        self.tab_6.setObjectName(_fromUtf8("tab_6"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.tab_6)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.dataView2 = PropertyExplorer(self.tab_6)
        self.dataView2.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.dataView2.setObjectName(_fromUtf8("dataView2"))
        self.verticalLayout_6.addWidget(self.dataView2)
        self.tabWidget2.addTab(self.tab_6, _fromUtf8(""))
        self.tab_7 = QtGui.QWidget()
        self.tab_7.setObjectName(_fromUtf8("tab_7"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.tab_7)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_4 = QtGui.QLabel(self.tab_7)
        self.label_4.setMinimumSize(QtCore.QSize(120, 0))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        self.spbAddr = QtGui.QSpinBox(self.tab_7)
        self.spbAddr.setMinimum(1)
        self.spbAddr.setMaximum(65000)
        self.spbAddr.setProperty("value", 11)
        self.spbAddr.setObjectName(_fromUtf8("spbAddr"))
        self.horizontalLayout.addWidget(self.spbAddr)
        self.horizontalLayout.setStretch(1, 1)
        self.verticalLayout_7.addLayout(self.horizontalLayout)
        self.groupBox = QtGui.QGroupBox(self.tab_7)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setMinimumSize(QtCore.QSize(110, 0))
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.leGroupNum = QtGui.QLineEdit(self.groupBox)
        self.leGroupNum.setEnabled(False)
        self.leGroupNum.setObjectName(_fromUtf8("leGroupNum"))
        self.gridLayout.addWidget(self.leGroupNum, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setMinimumSize(QtCore.QSize(110, 0))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.leTrNum = QtGui.QLineEdit(self.groupBox)
        self.leTrNum.setEnabled(False)
        self.leTrNum.setObjectName(_fromUtf8("leTrNum"))
        self.gridLayout.addWidget(self.leTrNum, 1, 1, 1, 1)
        self.verticalLayout_7.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.tab_7)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_8 = QtGui.QLabel(self.groupBox_2)
        self.label_8.setMinimumSize(QtCore.QSize(110, 0))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_2.addWidget(self.label_8, 0, 0, 1, 1)
        self.leGroupNum_2 = QtGui.QLineEdit(self.groupBox_2)
        self.leGroupNum_2.setEnabled(False)
        self.leGroupNum_2.setObjectName(_fromUtf8("leGroupNum_2"))
        self.gridLayout_2.addWidget(self.leGroupNum_2, 0, 1, 1, 1)
        self.label_7 = QtGui.QLabel(self.groupBox_2)
        self.label_7.setMinimumSize(QtCore.QSize(110, 0))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout_2.addWidget(self.label_7, 1, 0, 1, 1)
        self.leTrNum_2 = QtGui.QLineEdit(self.groupBox_2)
        self.leTrNum_2.setEnabled(False)
        self.leTrNum_2.setObjectName(_fromUtf8("leTrNum_2"))
        self.gridLayout_2.addWidget(self.leTrNum_2, 1, 1, 1, 1)
        self.verticalLayout_7.addWidget(self.groupBox_2)
        self.label_3 = QtGui.QLabel(self.tab_7)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout_7.addWidget(self.label_3)
        self.twRec = QtGui.QTableWidget(self.tab_7)
        self.twRec.setEnabled(True)
        self.twRec.setObjectName(_fromUtf8("twRec"))
        self.twRec.setColumnCount(4)
        self.twRec.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.twRec.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.twRec.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.twRec.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.twRec.setHorizontalHeaderItem(3, item)
        self.twRec.horizontalHeader().setStretchLastSection(True)
        self.twRec.verticalHeader().setDefaultSectionSize(20)
        self.verticalLayout_7.addWidget(self.twRec)
        self.tabWidget2.addTab(self.tab_7, _fromUtf8(""))
        self.verticalLayout_4.addWidget(self.tabWidget2)
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.verticalLayout_13 = QtGui.QVBoxLayout(self.tab)
        self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13"))
        self.tabWidget_3 = QtGui.QTabWidget(self.tab)
        self.tabWidget_3.setObjectName(_fromUtf8("tabWidget_3"))
        self.tab_10 = QtGui.QWidget()
        self.tab_10.setObjectName(_fromUtf8("tab_10"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab_10)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.unitView = PropertyExplorer(self.tab_10)
        self.unitView.setObjectName(_fromUtf8("unitView"))
        self.verticalLayout_2.addWidget(self.unitView)
        self.tabWidget_3.addTab(self.tab_10, _fromUtf8(""))
        self.tab_11 = QtGui.QWidget()
        self.tab_11.setObjectName(_fromUtf8("tab_11"))
        self.verticalLayout_11 = QtGui.QVBoxLayout(self.tab_11)
        self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
        self.cableView = PropertyExplorer(self.tab_11)
        self.cableView.setObjectName(_fromUtf8("cableView"))
        self.verticalLayout_11.addWidget(self.cableView)
        self.tabWidget_3.addTab(self.tab_11, _fromUtf8(""))
        self.tab_12 = QtGui.QWidget()
        self.tab_12.setObjectName(_fromUtf8("tab_12"))
        self.verticalLayout_15 = QtGui.QVBoxLayout(self.tab_12)
        self.verticalLayout_15.setObjectName(_fromUtf8("verticalLayout_15"))
        self.splitter_3 = QtGui.QSplitter(self.tab_12)
        self.splitter_3.setOrientation(QtCore.Qt.Vertical)
        self.splitter_3.setObjectName(_fromUtf8("splitter_3"))
        self.widget = QtGui.QWidget(self.splitter_3)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.verticalLayout_12 = QtGui.QVBoxLayout(self.widget)
        self.verticalLayout_12.setMargin(0)
        self.verticalLayout_12.setObjectName(_fromUtf8("verticalLayout_12"))
        self.label_5 = QtGui.QLabel(self.widget)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.verticalLayout_12.addWidget(self.label_5)
        self.twFailures = TableWidget(self.widget)
        self.twFailures.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.twFailures.setObjectName(_fromUtf8("twFailures"))
        self.twFailures.setColumnCount(5)
        self.twFailures.setRowCount(9)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setVerticalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setVerticalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setVerticalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setVerticalHeaderItem(7, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setVerticalHeaderItem(8, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures.setHorizontalHeaderItem(4, item)
        self.twFailures.horizontalHeader().setStretchLastSection(True)
        self.twFailures.verticalHeader().setDefaultSectionSize(20)
        self.verticalLayout_12.addWidget(self.twFailures)
        self.widget_2 = QtGui.QWidget(self.splitter_3)
        self.widget_2.setObjectName(_fromUtf8("widget_2"))
        self.verticalLayout_14 = QtGui.QVBoxLayout(self.widget_2)
        self.verticalLayout_14.setMargin(0)
        self.verticalLayout_14.setObjectName(_fromUtf8("verticalLayout_14"))
        self.label_6 = QtGui.QLabel(self.widget_2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.verticalLayout_14.addWidget(self.label_6)
        self.twFailures_2 = QtGui.QTableWidget(self.widget_2)
        self.twFailures_2.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.twFailures_2.setObjectName(_fromUtf8("twFailures_2"))
        self.twFailures_2.setColumnCount(7)
        self.twFailures_2.setRowCount(5)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setVerticalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.twFailures_2.setHorizontalHeaderItem(6, item)
        self.twFailures_2.horizontalHeader().setStretchLastSection(True)
        self.twFailures_2.verticalHeader().setDefaultSectionSize(20)
        self.verticalLayout_14.addWidget(self.twFailures_2)
        self.verticalLayout_15.addWidget(self.splitter_3)
        self.tabWidget_3.addTab(self.tab_12, _fromUtf8(""))
        self.verticalLayout_13.addWidget(self.tabWidget_3)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.groupBox_3 = QtGui.QGroupBox(self.splitter_2)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tabWidget_2 = QtGui.QTabWidget(self.groupBox_3)
        self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2"))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.verticalLayout_9 = QtGui.QVBoxLayout(self.tab_4)
        self.verticalLayout_9.setObjectName(_fromUtf8("verticalLayout_9"))
        self.twAbon = QtGui.QTableWidget(self.tab_4)
        self.twAbon.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.twAbon.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.twAbon.setObjectName(_fromUtf8("twAbon"))
        self.twAbon.setColumnCount(9)
        self.twAbon.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.twAbon.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.twAbon.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.twAbon.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.twAbon.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.twAbon.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.twAbon.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.twAbon.setHorizontalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.twAbon.setHorizontalHeaderItem(7, item)
        item = QtGui.QTableWidgetItem()
        self.twAbon.setHorizontalHeaderItem(8, item)
        self.twAbon.horizontalHeader().setDefaultSectionSize(75)
        self.twAbon.horizontalHeader().setStretchLastSection(True)
        self.twAbon.verticalHeader().setDefaultSectionSize(20)
        self.verticalLayout_9.addWidget(self.twAbon)
        self.tabWidget_2.addTab(self.tab_4, _fromUtf8(""))
        self.tab_8 = QtGui.QWidget()
        self.tab_8.setObjectName(_fromUtf8("tab_8"))
        self.verticalLayout_10 = QtGui.QVBoxLayout(self.tab_8)
        self.verticalLayout_10.setObjectName(_fromUtf8("verticalLayout_10"))
        self.twRegl = QtGui.QTableWidget(self.tab_8)
        self.twRegl.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.twRegl.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.twRegl.setObjectName(_fromUtf8("twRegl"))
        self.twRegl.setColumnCount(18)
        self.twRegl.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(7, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(8, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(9, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(10, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(11, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(12, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(13, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(14, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(15, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(16, item)
        item = QtGui.QTableWidgetItem()
        self.twRegl.setHorizontalHeaderItem(17, item)
        self.twRegl.horizontalHeader().setDefaultSectionSize(50)
        self.twRegl.horizontalHeader().setMinimumSectionSize(30)
        self.twRegl.horizontalHeader().setStretchLastSection(True)
        self.twRegl.verticalHeader().setDefaultSectionSize(20)
        self.verticalLayout_10.addWidget(self.twRegl)
        self.tabWidget_2.addTab(self.tab_8, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidget_2)
        self.verticalLayout_8.addWidget(self.splitter_2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1024, 26))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menu = QtGui.QMenu(self.menubar)
        self.menu.setObjectName(_fromUtf8("menu"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionRequestConnect = QtGui.QAction(MainWindow)
        self.actionRequestConnect.setObjectName(_fromUtf8("actionRequestConnect"))
        self.actionConnectGeneral = QtGui.QAction(MainWindow)
        self.actionConnectGeneral.setObjectName(_fromUtf8("actionConnectGeneral"))
        self.actionConnectReserve = QtGui.QAction(MainWindow)
        self.actionConnectReserve.setObjectName(_fromUtf8("actionConnectReserve"))
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
        self.actionDisconnect = QtGui.QAction(MainWindow)
        self.actionDisconnect.setObjectName(_fromUtf8("actionDisconnect"))
        self.menu.addAction(self.actionRequestConnect)
        self.menu.addSeparator()
        self.menu.addAction(self.actionConnectGeneral)
        self.menu.addAction(self.actionConnectReserve)
        self.menu.addAction(self.actionDisconnect)
        self.menu.addSeparator()
        self.menu.addAction(self.actionQuit)
        self.menubar.addAction(self.menu.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget2.setCurrentIndex(0)
        self.tabWidget_3.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "Имитатор 1863", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Параметры", None))
        self.tabWidget2.setTabText(self.tabWidget2.indexOf(self.tab_5), _translate("MainWindow", "Комплект 1", None))
        self.tabWidget2.setTabText(self.tabWidget2.indexOf(self.tab_6), _translate("MainWindow", "Комплект 2", None))
        self.label_4.setText(_translate("MainWindow", "Собственный адрес", None))
        self.groupBox.setTitle(_translate("MainWindow", "Направление 1", None))
        self.label.setText(_translate("MainWindow", "N группы", None))
        self.leGroupNum.setText(_translate("MainWindow", "1", None))
        self.label_2.setText(_translate("MainWindow", "N частоты ПРД", None))
        self.leTrNum.setText(_translate("MainWindow", "2", None))
        self.groupBox_2.setTitle(_translate("MainWindow", "Направление 2", None))
        self.label_8.setText(_translate("MainWindow", "N группы", None))
        self.leGroupNum_2.setText(_translate("MainWindow", "3", None))
        self.label_7.setText(_translate("MainWindow", "N частоты ПРД", None))
        self.leTrNum_2.setText(_translate("MainWindow", "4", None))
        self.label_3.setText(_translate("MainWindow", "Частоты ПРМ", None))
        item = self.twRec.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Абонент", None))
        item = self.twRec.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "N частоты", None))
        item = self.twRec.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Направление", None))
        self.tabWidget2.setTabText(self.tabWidget2.indexOf(self.tab_7), _translate("MainWindow", "Текущие частоты", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Радиоданные", None))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_10), _translate("MainWindow", "Радиосредства", None))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_11), _translate("MainWindow", "Кабельные соединения", None))
        self.label_5.setText(_translate("MainWindow", "Отказы трактов при контроле уровня проходящей мощности", None))
        item = self.twFailures.verticalHeaderItem(0)
        item.setText(_translate("MainWindow", "1", None))
        item = self.twFailures.verticalHeaderItem(1)
        item.setText(_translate("MainWindow", "2", None))
        item = self.twFailures.verticalHeaderItem(2)
        item.setText(_translate("MainWindow", "3", None))
        item = self.twFailures.verticalHeaderItem(3)
        item.setText(_translate("MainWindow", "4", None))
        item = self.twFailures.verticalHeaderItem(4)
        item.setText(_translate("MainWindow", "5", None))
        item = self.twFailures.verticalHeaderItem(5)
        item.setText(_translate("MainWindow", "6", None))
        item = self.twFailures.verticalHeaderItem(6)
        item.setText(_translate("MainWindow", "7", None))
        item = self.twFailures.verticalHeaderItem(7)
        item.setText(_translate("MainWindow", "8", None))
        item = self.twFailures.verticalHeaderItem(8)
        item.setText(_translate("MainWindow", "10", None))
        item = self.twFailures.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Частота", None))
        item = self.twFailures.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "ПРД", None))
        item = self.twFailures.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Мощность", None))
        item = self.twFailures.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "Причина", None))
        item = self.twFailures.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "Отказ", None))
        self.label_6.setText(_translate("MainWindow", "Отказы трактов при замыкании шлейфа", None))
        item = self.twFailures_2.verticalHeaderItem(0)
        item.setText(_translate("MainWindow", "1", None))
        item = self.twFailures_2.verticalHeaderItem(1)
        item.setText(_translate("MainWindow", "2", None))
        item = self.twFailures_2.verticalHeaderItem(2)
        item.setText(_translate("MainWindow", "3", None))
        item = self.twFailures_2.verticalHeaderItem(3)
        item.setText(_translate("MainWindow", "4", None))
        item = self.twFailures_2.verticalHeaderItem(4)
        item.setText(_translate("MainWindow", "5", None))
        item = self.twFailures_2.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Ант", None))
        item = self.twFailures_2.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Мод", None))
        item = self.twFailures_2.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Частота", None))
        item = self.twFailures_2.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "ПРМ", None))
        item = self.twFailures_2.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "ПРД", None))
        item = self.twFailures_2.horizontalHeaderItem(5)
        item.setText(_translate("MainWindow", "Причина", None))
        item = self.twFailures_2.horizontalHeaderItem(6)
        item.setText(_translate("MainWindow", "Отказ", None))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_12), _translate("MainWindow", "Массив отказов", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Состояние", None))
        self.groupBox_3.setTitle(_translate("MainWindow", "Каналы", None))
        item = self.twAbon.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "ИАДР", None))
        item = self.twAbon.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "ВЗБ", None))
        item = self.twAbon.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Порт", None))
        item = self.twAbon.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "ПРМ", None))
        item = self.twAbon.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "Порт", None))
        item = self.twAbon.horizontalHeaderItem(5)
        item.setText(_translate("MainWindow", "Тип ОА", None))
        item = self.twAbon.horizontalHeaderItem(6)
        item.setText(_translate("MainWindow", "Скор", None))
        item = self.twAbon.horizontalHeaderItem(7)
        item.setText(_translate("MainWindow", "Изл", None))
        item = self.twAbon.horizontalHeaderItem(8)
        item.setText(_translate("MainWindow", "Сост", None))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_4), _translate("MainWindow", "Работа", None))
        item = self.twRegl.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Ант", None))
        item = self.twRegl.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Мод", None))
        item = self.twRegl.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "ПРМ", None))
        item = self.twRegl.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "Порт", None))
        item = self.twRegl.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "Скор", None))
        item = self.twRegl.horizontalHeaderItem(5)
        item.setText(_translate("MainWindow", "Част", None))
        item = self.twRegl.horizontalHeaderItem(6)
        item.setText(_translate("MainWindow", "КИ", None))
        item = self.twRegl.horizontalHeaderItem(7)
        item.setText(_translate("MainWindow", "Ант", None))
        item = self.twRegl.horizontalHeaderItem(8)
        item.setText(_translate("MainWindow", "Мод", None))
        item = self.twRegl.horizontalHeaderItem(9)
        item.setText(_translate("MainWindow", "ПРД", None))
        item = self.twRegl.horizontalHeaderItem(10)
        item.setText(_translate("MainWindow", "Порт", None))
        item = self.twRegl.horizontalHeaderItem(11)
        item.setText(_translate("MainWindow", "Скор", None))
        item = self.twRegl.horizontalHeaderItem(12)
        item.setText(_translate("MainWindow", "Част", None))
        item = self.twRegl.horizontalHeaderItem(13)
        item.setText(_translate("MainWindow", "УМ", None))
        item = self.twRegl.horizontalHeaderItem(14)
        item.setText(_translate("MainWindow", "Мощн", None))
        item = self.twRegl.horizontalHeaderItem(15)
        item.setText(_translate("MainWindow", "КИ", None))
        item = self.twRegl.horizontalHeaderItem(16)
        item.setText(_translate("MainWindow", "Изл", None))
        item = self.twRegl.horizontalHeaderItem(17)
        item.setText(_translate("MainWindow", "Сост", None))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_8), _translate("MainWindow", "Регламент", None))
        self.menu.setTitle(_translate("MainWindow", "Команды", None))
        self.actionRequestConnect.setText(_translate("MainWindow", "Запрос связи", None))
        self.actionRequestConnect.setShortcut(_translate("MainWindow", "Ctrl+R", None))
        self.actionConnectGeneral.setText(_translate("MainWindow", "Подключить ПРДК основной", None))
        self.actionConnectGeneral.setShortcut(_translate("MainWindow", "Ctrl+1", None))
        self.actionConnectReserve.setText(_translate("MainWindow", "Подключить ПРДК резервный", None))
        self.actionConnectReserve.setShortcut(_translate("MainWindow", "Ctrl+2", None))
        self.actionQuit.setText(_translate("MainWindow", "Выход", None))
        self.actionQuit.setShortcut(_translate("MainWindow", "Ctrl+Q", None))
        self.actionDisconnect.setText(_translate("MainWindow", "Разорвать соединение с ПРДК", None))
        self.actionDisconnect.setShortcut(_translate("MainWindow", "Ctrl+D", None))
示例#2
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setWindowModality(QtCore.Qt.NonModal)
        MainWindow.resize(1127, 806)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.accumWidget = TableGroupWidget(self.centralwidget)
        self.accumWidget.setObjectName(_fromUtf8("accumWidget"))
        self.gridLayout.addWidget(self.accumWidget, 1, 1, 1, 1)
        self.doorWidget = TableGroupWidget(self.centralwidget)
        self.doorWidget.setObjectName(_fromUtf8("doorWidget"))
        self.gridLayout.addWidget(self.doorWidget, 1, 2, 1, 1)
        self.lightWidget = TableGroupWidget(self.centralwidget)
        self.lightWidget.setObjectName(_fromUtf8("lightWidget"))
        self.gridLayout.addWidget(self.lightWidget, 0, 2, 1, 1)
        self.statusWidget = TableGroupWidget(self.centralwidget)
        self.statusWidget.setObjectName(_fromUtf8("statusWidget"))
        self.gridLayout.addWidget(self.statusWidget, 1, 0, 1, 1)
        self.verticalLayout_10 = QtGui.QVBoxLayout()
        self.verticalLayout_10.setObjectName(_fromUtf8("verticalLayout_10"))
        self.fanWidget = TableGroupWidget(self.centralwidget)
        self.fanWidget.setObjectName(_fromUtf8("fanWidget"))
        self.verticalLayout_10.addWidget(self.fanWidget)
        self.flapWidget = TableGroupWidget(self.centralwidget)
        self.flapWidget.setObjectName(_fromUtf8("flapWidget"))
        self.verticalLayout_10.addWidget(self.flapWidget)
        self.gridLayout.addLayout(self.verticalLayout_10, 0, 0, 1, 1)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.tempWidget = TableGroupWidget(self.centralwidget)
        self.tempWidget.setObjectName(_fromUtf8("tempWidget"))
        self.verticalLayout_2.addWidget(self.tempWidget)
        self.verticalLayout_2.setStretch(0, 1)
        self.gridLayout.addLayout(self.verticalLayout_2, 0, 1, 1, 1)
        self.groupBox_9 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_9.setMinimumSize(QtCore.QSize(400, 0))
        self.groupBox_9.setObjectName(_fromUtf8("groupBox_9"))
        self.verticalLayout_9 = QtGui.QVBoxLayout(self.groupBox_9)
        self.verticalLayout_9.setObjectName(_fromUtf8("verticalLayout_9"))
        self.logWidget = LogWidget(self.groupBox_9)
        self.logWidget.setMinimumSize(QtCore.QSize(300, 0))
        self.logWidget.setObjectName(_fromUtf8("logWidget"))
        self.verticalLayout_9.addWidget(self.logWidget)
        self.gridLayout.addWidget(self.groupBox_9, 0, 3, 2, 1)
        self.gridLayout.setColumnStretch(0, 2)
        self.gridLayout.setColumnStretch(1, 2)
        self.gridLayout.setColumnStretch(2, 1)
        self.gridLayout.setColumnStretch(3, 2)
        self.gridLayout.setRowStretch(0, 3)
        self.gridLayout.setRowStretch(1, 2)
        self.verticalLayout.addLayout(self.gridLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setIconSize(QtCore.QSize(48, 48))
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionFan1 = QtGui.QAction(MainWindow)
        self.actionFan1.setCheckable(True)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/fan-1.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFan1.setIcon(icon)
        self.actionFan1.setObjectName(_fromUtf8("actionFan1"))
        self.actionFan2 = QtGui.QAction(MainWindow)
        self.actionFan2.setCheckable(True)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/fan-2.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFan2.setIcon(icon1)
        self.actionFan2.setObjectName(_fromUtf8("actionFan2"))
        self.actionFan3 = QtGui.QAction(MainWindow)
        self.actionFan3.setCheckable(True)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/fan-3.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFan3.setIcon(icon2)
        self.actionFan3.setObjectName(_fromUtf8("actionFan3"))
        self.actionSetFan = QtGui.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/fan-red.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSetFan.setIcon(icon3)
        self.actionSetFan.setObjectName(_fromUtf8("actionSetFan"))
        self.actionSkf1 = QtGui.QAction(MainWindow)
        self.actionSkf1.setCheckable(True)
        self.actionSkf1.setChecked(True)
        self.actionSkf1.setEnabled(True)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/skf-1.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSkf1.setIcon(icon4)
        self.actionSkf1.setObjectName(_fromUtf8("actionSkf1"))
        self.actionSkf2 = QtGui.QAction(MainWindow)
        self.actionSkf2.setCheckable(True)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/skf-2.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSkf2.setIcon(icon5)
        self.actionSkf2.setObjectName(_fromUtf8("actionSkf2"))
        self.actionDebug = QtGui.QAction(MainWindow)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/bug.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDebug.setIcon(icon6)
        self.actionDebug.setObjectName(_fromUtf8("actionDebug"))
        self.actionRequestState = QtGui.QAction(MainWindow)
        self.actionRequestState.setCheckable(True)
        self.actionRequestState.setChecked(False)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/request.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRequestState.setIcon(icon7)
        self.actionRequestState.setObjectName(_fromUtf8("actionRequestState"))
        self.toolBar.addAction(self.actionSkf1)
        self.toolBar.addAction(self.actionSkf2)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionRequestState)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionFan1)
        self.toolBar.addAction(self.actionFan2)
        self.toolBar.addAction(self.actionFan3)
        self.toolBar.addAction(self.actionSetFan)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionDebug)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "УК СЖО СКФ-1", None))
        self.accumWidget.setTitle(_translate("MainWindow", "НИША АБ", None))
        self.doorWidget.setTitle(_translate("MainWindow", "ДВЕРИ", None))
        self.lightWidget.setTitle(_translate("MainWindow", "ОСВЕЩЕНИЕ", None))
        self.statusWidget.setTitle(_translate("MainWindow", "СТАТУС", None))
        self.fanWidget.setTitle(_translate("MainWindow", "ПРИТОЧНЫЕ ВЕНТИЛЯТОРЫ", None))
        self.flapWidget.setTitle(_translate("MainWindow", "ЗАСЛОНКИ", None))
        self.tempWidget.setTitle(_translate("MainWindow", "ТЕМПЕРАТУРА", None))
        self.groupBox_9.setTitle(_translate("MainWindow", "ЖУРНАЛ", None))
        self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None))
        self.actionFan1.setText(_translate("MainWindow", "Вентилятор 1", None))
        self.actionFan1.setToolTip(_translate("MainWindow", "Управление вентилятором 1", None))
        self.actionFan2.setText(_translate("MainWindow", "Вентилятор 2", None))
        self.actionFan2.setToolTip(_translate("MainWindow", "Управление вентилятором 2", None))
        self.actionFan3.setText(_translate("MainWindow", "Вентилятор 3", None))
        self.actionFan3.setToolTip(_translate("MainWindow", "Управление вентилятором 3", None))
        self.actionSetFan.setText(_translate("MainWindow", "Установить", None))
        self.actionSetFan.setToolTip(_translate("MainWindow", "Установить режим вентиляции", None))
        self.actionSkf1.setText(_translate("MainWindow", "СКФ-1", None))
        self.actionSkf1.setToolTip(_translate("MainWindow", "Устаноить режим работы СКФ-1", None))
        self.actionSkf2.setText(_translate("MainWindow", "СКФ-2", None))
        self.actionSkf2.setToolTip(_translate("MainWindow", "Установить режим работы СКФ-2", None))
        self.actionDebug.setText(_translate("MainWindow", "Отладка", None))
        self.actionDebug.setToolTip(_translate("MainWindow", "Отладка программы", None))
        self.actionRequestState.setText(_translate("MainWindow", "Режим запроса состояния", None))