# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/PyUnit/UnittestDialog.ui'
#
# Created: Sat Feb  3 15:33:29 2007
#      by: PyQt4 UI code generator 4-snapshot-20070125
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_UnittestDialog(object):
    def setupUi(self, UnittestDialog):
        UnittestDialog.setObjectName("UnittestDialog")
        UnittestDialog.resize(QtCore.QSize(QtCore.QRect(0,0,619,667).size()).expandedTo(UnittestDialog.minimumSizeHint()))

        self.vboxlayout = QtGui.QVBoxLayout(UnittestDialog)
        self.vboxlayout.setMargin(6)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setObjectName("vboxlayout")

        self.groupBox = QtGui.QGroupBox(UnittestDialog)
        self.groupBox.setObjectName("groupBox")

        self.gridlayout = QtGui.QGridLayout(self.groupBox)
        self.gridlayout.setMargin(6)
        self.gridlayout.setSpacing(6)
        self.gridlayout.setObjectName("gridlayout")

        self.testComboBox = QtGui.QComboBox(self.groupBox)
        self.testComboBox.setEditable(True)
        self.testComboBox.setObjectName("testComboBox")
        self.gridlayout.addWidget(self.testComboBox,1,1,1,2)

        self.testsuiteComboBox = QtGui.QComboBox(self.groupBox)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(3),QtGui.QSizePolicy.Policy(0))
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.testsuiteComboBox.sizePolicy().hasHeightForWidth())
        self.testsuiteComboBox.setSizePolicy(sizePolicy)
        self.testsuiteComboBox.setEditable(True)
        self.testsuiteComboBox.setInsertPolicy(QtGui.QComboBox.InsertAtTop)
        self.testsuiteComboBox.setAutoCompletion(True)
        self.testsuiteComboBox.setDuplicatesEnabled(False)
        self.testsuiteComboBox.setObjectName("testsuiteComboBox")
        self.gridlayout.addWidget(self.testsuiteComboBox,0,1,1,1)

        self.label = QtGui.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.gridlayout.addWidget(self.label,1,0,1,1)

        self.fileDialogButton = QtGui.QPushButton(self.groupBox)
        self.fileDialogButton.setObjectName("fileDialogButton")
        self.gridlayout.addWidget(self.fileDialogButton,0,2,1,1)

        self.testsuiteLabel = QtGui.QLabel(self.groupBox)
        self.testsuiteLabel.setObjectName("testsuiteLabel")
        self.gridlayout.addWidget(self.testsuiteLabel,0,0,1,1)
        self.vboxlayout.addWidget(self.groupBox)

        self.optionsGroup = QtGui.QGroupBox(UnittestDialog)
        self.optionsGroup.setObjectName("optionsGroup")

        self.hboxlayout = QtGui.QHBoxLayout(self.optionsGroup)
        self.hboxlayout.setMargin(6)
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setObjectName("hboxlayout")

        self.localCheckBox = QtGui.QCheckBox(self.optionsGroup)
        self.localCheckBox.setObjectName("localCheckBox")
        self.hboxlayout.addWidget(self.localCheckBox)

        self.coverageCheckBox = QtGui.QCheckBox(self.optionsGroup)
        self.coverageCheckBox.setObjectName("coverageCheckBox")
        self.hboxlayout.addWidget(self.coverageCheckBox)

        self.coverageEraseCheckBox = QtGui.QCheckBox(self.optionsGroup)
        self.coverageEraseCheckBox.setEnabled(False)
        self.coverageEraseCheckBox.setObjectName("coverageEraseCheckBox")
        self.hboxlayout.addWidget(self.coverageEraseCheckBox)
        self.vboxlayout.addWidget(self.optionsGroup)

        self.progressGroupBox = QtGui.QGroupBox(UnittestDialog)
        self.progressGroupBox.setObjectName("progressGroupBox")

        self.vboxlayout1 = QtGui.QVBoxLayout(self.progressGroupBox)
        self.vboxlayout1.setMargin(6)
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setObjectName("vboxlayout1")

        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setMargin(0)
        self.hboxlayout1.setSpacing(6)
        self.hboxlayout1.setObjectName("hboxlayout1")

        self.progressTextLabel = QtGui.QLabel(self.progressGroupBox)
        self.progressTextLabel.setObjectName("progressTextLabel")
        self.hboxlayout1.addWidget(self.progressTextLabel)

        spacerItem = QtGui.QSpacerItem(371,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout1.addItem(spacerItem)

        self.progressLed = E4Led(self.progressGroupBox)
        self.progressLed.setObjectName("progressLed")
        self.hboxlayout1.addWidget(self.progressLed)
        self.vboxlayout1.addLayout(self.hboxlayout1)

        self.progressProgressBar = QtGui.QProgressBar(self.progressGroupBox)
        self.progressProgressBar.setProperty("value",QtCore.QVariant(0))
        self.progressProgressBar.setOrientation(QtCore.Qt.Horizontal)
        self.progressProgressBar.setObjectName("progressProgressBar")
        self.vboxlayout1.addWidget(self.progressProgressBar)

        self.hboxlayout2 = QtGui.QHBoxLayout()
        self.hboxlayout2.setMargin(0)
        self.hboxlayout2.setSpacing(6)
        self.hboxlayout2.setObjectName("hboxlayout2")

        self.progressCounterRunLabel = QtGui.QLabel(self.progressGroupBox)
        self.progressCounterRunLabel.setObjectName("progressCounterRunLabel")
        self.hboxlayout2.addWidget(self.progressCounterRunLabel)

        self.progressCounterRunCount = QtGui.QLabel(self.progressGroupBox)
        self.progressCounterRunCount.setObjectName("progressCounterRunCount")
        self.hboxlayout2.addWidget(self.progressCounterRunCount)

        self.progressCounterFailureLabel = QtGui.QLabel(self.progressGroupBox)
        self.progressCounterFailureLabel.setObjectName("progressCounterFailureLabel")
        self.hboxlayout2.addWidget(self.progressCounterFailureLabel)

        self.progressCounterFailureCount = QtGui.QLabel(self.progressGroupBox)
        self.progressCounterFailureCount.setObjectName("progressCounterFailureCount")
        self.hboxlayout2.addWidget(self.progressCounterFailureCount)

        self.progressCounterErrorLabel = QtGui.QLabel(self.progressGroupBox)
        self.progressCounterErrorLabel.setObjectName("progressCounterErrorLabel")
        self.hboxlayout2.addWidget(self.progressCounterErrorLabel)

        self.progressCounterErrorCount = QtGui.QLabel(self.progressGroupBox)
        self.progressCounterErrorCount.setObjectName("progressCounterErrorCount")
        self.hboxlayout2.addWidget(self.progressCounterErrorCount)

        self.progressCounterRemLabel = QtGui.QLabel(self.progressGroupBox)
        self.progressCounterRemLabel.setObjectName("progressCounterRemLabel")
        self.hboxlayout2.addWidget(self.progressCounterRemLabel)

        self.progressCounterRemCount = QtGui.QLabel(self.progressGroupBox)
        self.progressCounterRemCount.setObjectName("progressCounterRemCount")
        self.hboxlayout2.addWidget(self.progressCounterRemCount)

        spacerItem1 = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout2.addItem(spacerItem1)
        self.vboxlayout1.addLayout(self.hboxlayout2)
        self.vboxlayout.addWidget(self.progressGroupBox)

        self.textLabel1 = QtGui.QLabel(UnittestDialog)
        self.textLabel1.setObjectName("textLabel1")
        self.vboxlayout.addWidget(self.textLabel1)

        self.testsListWidget = QtGui.QListWidget(UnittestDialog)
        self.testsListWidget.setObjectName("testsListWidget")
        self.vboxlayout.addWidget(self.testsListWidget)

        self.listboxLabel = QtGui.QLabel(UnittestDialog)
        self.listboxLabel.setObjectName("listboxLabel")
        self.vboxlayout.addWidget(self.listboxLabel)

        self.errorsListWidget = QtGui.QListWidget(UnittestDialog)
        self.errorsListWidget.setObjectName("errorsListWidget")
        self.vboxlayout.addWidget(self.errorsListWidget)

        self.buttonBox = QtGui.QDialogButtonBox(UnittestDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
        self.buttonBox.setObjectName("buttonBox")
        self.vboxlayout.addWidget(self.buttonBox)

        self.hboxlayout3 = QtGui.QHBoxLayout()
        self.hboxlayout3.setMargin(0)
        self.hboxlayout3.setSpacing(6)
        self.hboxlayout3.setObjectName("hboxlayout3")

        self.sbLabel = QtGui.QLabel(UnittestDialog)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(5),QtGui.QSizePolicy.Policy(5))
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sbLabel.sizePolicy().hasHeightForWidth())
        self.sbLabel.setSizePolicy(sizePolicy)
        self.sbLabel.setObjectName("sbLabel")
        self.hboxlayout3.addWidget(self.sbLabel)

        spacerItem2 = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout3.addItem(spacerItem2)
        self.vboxlayout.addLayout(self.hboxlayout3)
        self.label.setBuddy(self.testComboBox)
        self.testsuiteLabel.setBuddy(self.testsuiteComboBox)

        self.retranslateUi(UnittestDialog)
        QtCore.QObject.connect(self.coverageCheckBox,QtCore.SIGNAL("toggled(bool)"),self.coverageEraseCheckBox.setEnabled)
        QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("accepted()"),UnittestDialog.close)
        QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("rejected()"),UnittestDialog.close)
        QtCore.QMetaObject.connectSlotsByName(UnittestDialog)
        UnittestDialog.setTabOrder(self.testsuiteComboBox,self.fileDialogButton)
        UnittestDialog.setTabOrder(self.fileDialogButton,self.testComboBox)
        UnittestDialog.setTabOrder(self.testComboBox,self.localCheckBox)
        UnittestDialog.setTabOrder(self.localCheckBox,self.coverageCheckBox)
        UnittestDialog.setTabOrder(self.coverageCheckBox,self.coverageEraseCheckBox)
        UnittestDialog.setTabOrder(self.coverageEraseCheckBox,self.testsListWidget)
        UnittestDialog.setTabOrder(self.testsListWidget,self.errorsListWidget)

    def retranslateUi(self, UnittestDialog):
        UnittestDialog.setWindowTitle(QtGui.QApplication.translate("UnittestDialog", "Unittest", None, QtGui.QApplication.UnicodeUTF8))
        self.testComboBox.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Enter the test name. Leave empty to use the default name \"suite\".", None, QtGui.QApplication.UnicodeUTF8))
        self.testComboBox.setWhatsThis(QtGui.QApplication.translate("UnittestDialog", "<b>Testname</b><p>Enter the name of the test to be performed. This name must follow the rules given by Python\'s unittest module. If this field is empty, the default name of \"suite\" will be used.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.testsuiteComboBox.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Enter name of file defining the testsuite", None, QtGui.QApplication.UnicodeUTF8))
        self.testsuiteComboBox.setWhatsThis(QtGui.QApplication.translate("UnittestDialog", "<b>Testsuite</b>\n"
        "<p>Enter the name of the file defining the testsuite.\n"
        "It should have a method with a name given below. If no name is given, the suite() method will be tried. If no such method can be\n"
        "found, the module will be inspected for proper test\n"
        "cases.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("UnittestDialog", "Enter &test name:", None, QtGui.QApplication.UnicodeUTF8))
        self.fileDialogButton.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Open a file selection dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.fileDialogButton.setText(QtGui.QApplication.translate("UnittestDialog", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.testsuiteLabel.setText(QtGui.QApplication.translate("UnittestDialog", "Enter test &filename:", None, QtGui.QApplication.UnicodeUTF8))
        self.localCheckBox.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Select whether you want to run the test locally", None, QtGui.QApplication.UnicodeUTF8))
        self.localCheckBox.setText(QtGui.QApplication.translate("UnittestDialog", "Run &local", None, QtGui.QApplication.UnicodeUTF8))
        self.coverageCheckBox.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Select whether coverage data should be collected", None, QtGui.QApplication.UnicodeUTF8))
        self.coverageCheckBox.setText(QtGui.QApplication.translate("UnittestDialog", "C&ollect coverage data", None, QtGui.QApplication.UnicodeUTF8))
        self.coverageEraseCheckBox.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Select whether old coverage data should be erased", None, QtGui.QApplication.UnicodeUTF8))
        self.coverageEraseCheckBox.setText(QtGui.QApplication.translate("UnittestDialog", "&Erase coverage data", None, QtGui.QApplication.UnicodeUTF8))
        self.progressTextLabel.setText(QtGui.QApplication.translate("UnittestDialog", "Progress:", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterRunLabel.setText(QtGui.QApplication.translate("UnittestDialog", "Run:", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterRunCount.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Number of tests run", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterRunCount.setText(QtGui.QApplication.translate("UnittestDialog", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterFailureLabel.setText(QtGui.QApplication.translate("UnittestDialog", "Failures:", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterFailureCount.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Number of test failures", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterFailureCount.setText(QtGui.QApplication.translate("UnittestDialog", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterErrorLabel.setText(QtGui.QApplication.translate("UnittestDialog", "Errors:", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterErrorCount.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Number of test errors", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterErrorCount.setText(QtGui.QApplication.translate("UnittestDialog", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterRemLabel.setText(QtGui.QApplication.translate("UnittestDialog", "Remaining:", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterRemCount.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Number of tests to be run", None, QtGui.QApplication.UnicodeUTF8))
        self.progressCounterRemCount.setText(QtGui.QApplication.translate("UnittestDialog", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1.setText(QtGui.QApplication.translate("UnittestDialog", "Tests performed:", None, QtGui.QApplication.UnicodeUTF8))
        self.listboxLabel.setText(QtGui.QApplication.translate("UnittestDialog", "Failures and errors:", None, QtGui.QApplication.UnicodeUTF8))
        self.errorsListWidget.setToolTip(QtGui.QApplication.translate("UnittestDialog", "Failures and Errors list", None, QtGui.QApplication.UnicodeUTF8))
        self.errorsListWidget.setWhatsThis(QtGui.QApplication.translate("UnittestDialog", "<b>Failures and Errors list</b>\n"
        "<p>This list shows all failed and errored tests.\n"
        "Double clicking on an entry will show the respective traceback.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.sbLabel.setText(QtGui.QApplication.translate("UnittestDialog", "Idle", None, QtGui.QApplication.UnicodeUTF8))

from E4Gui.E4Led import E4Led


if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    UnittestDialog = QtGui.QWidget()
    ui = Ui_UnittestDialog()
    ui.setupUi(UnittestDialog)
    UnittestDialog.show()
    sys.exit(app.exec_())
