コード例 #1
0
class Ui_oneVariableFeedbackComposite(object):
    def setupUi(self, oneVariableFeedbackComposite):
        oneVariableFeedbackComposite.setObjectName("oneVariableFeedbackComposite")
        oneVariableFeedbackComposite.resize(665, 576)
        self.gridLayout = QtGui.QGridLayout(oneVariableFeedbackComposite)
        self.gridLayout.setObjectName("gridLayout")
        self.oneVariableFeedbackToolBox = QtGui.QToolBox(oneVariableFeedbackComposite)
        self.oneVariableFeedbackToolBox.setFrameShape(QtGui.QFrame.NoFrame)
        self.oneVariableFeedbackToolBox.setObjectName("oneVariableFeedbackToolBox")
        self.feedbackFormPage = QtGui.QWidget()
        self.feedbackFormPage.setGeometry(QtCore.QRect(0, 0, 505, 471))
        self.feedbackFormPage.setObjectName("feedbackFormPage")
        self.gridLayout_2 = QtGui.QGridLayout(self.feedbackFormPage)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.oneVariableFeedbackFormWidget = OneVariableFeedbackFormWidget(self.feedbackFormPage)
        self.oneVariableFeedbackFormWidget.setObjectName("oneVariableFeedbackFormWidget")
        self.gridLayout_2.addWidget(self.oneVariableFeedbackFormWidget, 0, 0, 1, 1)
        self.oneVariableFeedbackToolBox.addItem(self.feedbackFormPage, "")
        self.conditionTablePage = QtGui.QWidget()
        self.conditionTablePage.setGeometry(QtCore.QRect(0, 0, 505, 471))
        self.conditionTablePage.setObjectName("conditionTablePage")
        self.gridLayout_3 = QtGui.QGridLayout(self.conditionTablePage)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.conditionTableWidget = ConditionTableWidget(self.conditionTablePage)
        self.conditionTableWidget.setObjectName("conditionTableWidget")
        self.gridLayout_3.addWidget(self.conditionTableWidget, 0, 0, 1, 1)
        self.oneVariableFeedbackToolBox.addItem(self.conditionTablePage, "")
        self.page = QtGui.QWidget()
        self.page.setGeometry(QtCore.QRect(0, 0, 505, 471))
        self.page.setObjectName("page")
        self.gridLayout_4 = QtGui.QGridLayout(self.page)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.statusTextWidget = StatusTextWidget(self.page)
        self.statusTextWidget.setObjectName("statusTextWidget")
        self.gridLayout_4.addWidget(self.statusTextWidget, 0, 0, 1, 1)
        self.oneVariableFeedbackToolBox.addItem(self.page, "")
        self.gridLayout.addWidget(self.oneVariableFeedbackToolBox, 0, 0, 1, 1)
        self.processControlWidget = ProcessControlWidget(oneVariableFeedbackComposite)
        self.processControlWidget.setObjectName("processControlWidget")
        self.gridLayout.addWidget(self.processControlWidget, 0, 1, 1, 1)

        self.retranslateUi(oneVariableFeedbackComposite)
        self.oneVariableFeedbackToolBox.setCurrentIndex(0)
        QtCore.QObject.connect(self.processControlWidget, QtCore.SIGNAL("readyWriteStandardError(QString)"), self.statusTextWidget.append)
        QtCore.QObject.connect(self.processControlWidget, QtCore.SIGNAL("readyWriteStandardOutput(QString)"), self.statusTextWidget.append)
        QtCore.QMetaObject.connectSlotsByName(oneVariableFeedbackComposite)

    def retranslateUi(self, oneVariableFeedbackComposite):
        oneVariableFeedbackComposite.setWindowTitle(QtGui.QApplication.translate("oneVariableFeedbackComposite", "One-Variable Feedback Composite", None, QtGui.QApplication.UnicodeUTF8))
        self.oneVariableFeedbackFormWidget.setToolTip(QtGui.QApplication.translate("oneVariableFeedbackComposite", "One-Variable Feedback Parameters", None, QtGui.QApplication.UnicodeUTF8))
        self.oneVariableFeedbackFormWidget.setWhatsThis(QtGui.QApplication.translate("oneVariableFeedbackComposite", "This widget allows you to enter your one-variable feedback paramaters.", None, QtGui.QApplication.UnicodeUTF8))
        self.oneVariableFeedbackToolBox.setItemText(self.oneVariableFeedbackToolBox.indexOf(self.feedbackFormPage), QtGui.QApplication.translate("oneVariableFeedbackComposite", "Feedback Form", None, QtGui.QApplication.UnicodeUTF8))
        self.conditionTableWidget.setToolTip(QtGui.QApplication.translate("oneVariableFeedbackComposite", "Condition table", None, QtGui.QApplication.UnicodeUTF8))
        self.conditionTableWidget.setWhatsThis(QtGui.QApplication.translate("oneVariableFeedbackComposite", "This widget displays the current condition that needs to be meet.", None, QtGui.QApplication.UnicodeUTF8))
        self.oneVariableFeedbackToolBox.setItemText(self.oneVariableFeedbackToolBox.indexOf(self.conditionTablePage), QtGui.QApplication.translate("oneVariableFeedbackComposite", "Condition Table", None, QtGui.QApplication.UnicodeUTF8))
        self.statusTextWidget.setToolTip(QtGui.QApplication.translate("oneVariableFeedbackComposite", "Current status", None, QtGui.QApplication.UnicodeUTF8))
        self.statusTextWidget.setWhatsThis(QtGui.QApplication.translate("oneVariableFeedbackComposite", "This widget displays the current status.", None, QtGui.QApplication.UnicodeUTF8))
        self.oneVariableFeedbackToolBox.setItemText(self.oneVariableFeedbackToolBox.indexOf(self.page), QtGui.QApplication.translate("oneVariableFeedbackComposite", "Feedback Status", None, QtGui.QApplication.UnicodeUTF8))
        self.processControlWidget.setToolTip(QtGui.QApplication.translate("oneVariableFeedbackComposite", "Start/Pause/Resume/Stop Process", None, QtGui.QApplication.UnicodeUTF8))
        self.processControlWidget.setWhatsThis(QtGui.QApplication.translate("oneVariableFeedbackComposite", "This widget is used to control the current process.", None, QtGui.QApplication.UnicodeUTF8))
コード例 #2
0
    def setupUi(self, oneVariableFeedbackComposite):
        oneVariableFeedbackComposite.setObjectName("oneVariableFeedbackComposite")
        oneVariableFeedbackComposite.resize(665, 576)
        self.gridLayout = QtGui.QGridLayout(oneVariableFeedbackComposite)
        self.gridLayout.setObjectName("gridLayout")
        self.oneVariableFeedbackToolBox = QtGui.QToolBox(oneVariableFeedbackComposite)
        self.oneVariableFeedbackToolBox.setFrameShape(QtGui.QFrame.NoFrame)
        self.oneVariableFeedbackToolBox.setObjectName("oneVariableFeedbackToolBox")
        self.feedbackFormPage = QtGui.QWidget()
        self.feedbackFormPage.setGeometry(QtCore.QRect(0, 0, 505, 471))
        self.feedbackFormPage.setObjectName("feedbackFormPage")
        self.gridLayout_2 = QtGui.QGridLayout(self.feedbackFormPage)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.oneVariableFeedbackFormWidget = OneVariableFeedbackFormWidget(self.feedbackFormPage)
        self.oneVariableFeedbackFormWidget.setObjectName("oneVariableFeedbackFormWidget")
        self.gridLayout_2.addWidget(self.oneVariableFeedbackFormWidget, 0, 0, 1, 1)
        self.oneVariableFeedbackToolBox.addItem(self.feedbackFormPage, "")
        self.conditionTablePage = QtGui.QWidget()
        self.conditionTablePage.setGeometry(QtCore.QRect(0, 0, 505, 471))
        self.conditionTablePage.setObjectName("conditionTablePage")
        self.gridLayout_3 = QtGui.QGridLayout(self.conditionTablePage)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.conditionTableWidget = ConditionTableWidget(self.conditionTablePage)
        self.conditionTableWidget.setObjectName("conditionTableWidget")
        self.gridLayout_3.addWidget(self.conditionTableWidget, 0, 0, 1, 1)
        self.oneVariableFeedbackToolBox.addItem(self.conditionTablePage, "")
        self.page = QtGui.QWidget()
        self.page.setGeometry(QtCore.QRect(0, 0, 505, 471))
        self.page.setObjectName("page")
        self.gridLayout_4 = QtGui.QGridLayout(self.page)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.statusTextWidget = StatusTextWidget(self.page)
        self.statusTextWidget.setObjectName("statusTextWidget")
        self.gridLayout_4.addWidget(self.statusTextWidget, 0, 0, 1, 1)
        self.oneVariableFeedbackToolBox.addItem(self.page, "")
        self.gridLayout.addWidget(self.oneVariableFeedbackToolBox, 0, 0, 1, 1)
        self.processControlWidget = ProcessControlWidget(oneVariableFeedbackComposite)
        self.processControlWidget.setObjectName("processControlWidget")
        self.gridLayout.addWidget(self.processControlWidget, 0, 1, 1, 1)

        self.retranslateUi(oneVariableFeedbackComposite)
        self.oneVariableFeedbackToolBox.setCurrentIndex(0)
        QtCore.QObject.connect(self.processControlWidget, QtCore.SIGNAL("readyWriteStandardError(QString)"), self.statusTextWidget.append)
        QtCore.QObject.connect(self.processControlWidget, QtCore.SIGNAL("readyWriteStandardOutput(QString)"), self.statusTextWidget.append)
        QtCore.QMetaObject.connectSlotsByName(oneVariableFeedbackComposite)