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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/DataViews/PyCoverageDialog.ui'
#
# Created: Sat Feb  3 15:33:53 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_PyCoverageDialog(object):
    def setupUi(self, PyCoverageDialog):
        PyCoverageDialog.setObjectName("PyCoverageDialog")
        PyCoverageDialog.resize(QtCore.QSize(QtCore.QRect(0,0,832,585).size()).expandedTo(PyCoverageDialog.minimumSizeHint()))

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(7))
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(3)
        sizePolicy.setHeightForWidth(PyCoverageDialog.sizePolicy().hasHeightForWidth())
        PyCoverageDialog.setSizePolicy(sizePolicy)
        PyCoverageDialog.setSizeGripEnabled(True)

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

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

        self.textLabel1_2 = QtGui.QLabel(PyCoverageDialog)
        self.textLabel1_2.setObjectName("textLabel1_2")
        self.hboxlayout.addWidget(self.textLabel1_2)

        self.excludeCombo = QtGui.QComboBox(PyCoverageDialog)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(0))
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.excludeCombo.sizePolicy().hasHeightForWidth())
        self.excludeCombo.setSizePolicy(sizePolicy)
        self.excludeCombo.setEditable(True)
        self.excludeCombo.setInsertPolicy(QtGui.QComboBox.InsertAtTop)
        self.excludeCombo.setAutoCompletion(True)
        self.excludeCombo.setDuplicatesEnabled(False)
        self.excludeCombo.setObjectName("excludeCombo")
        self.hboxlayout.addWidget(self.excludeCombo)

        self.reloadButton = QtGui.QPushButton(PyCoverageDialog)
        self.reloadButton.setObjectName("reloadButton")
        self.hboxlayout.addWidget(self.reloadButton)
        self.vboxlayout.addLayout(self.hboxlayout)

        self.resultList = QtGui.QTreeWidget(PyCoverageDialog)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(7))
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(3)
        sizePolicy.setHeightForWidth(self.resultList.sizePolicy().hasHeightForWidth())
        self.resultList.setSizePolicy(sizePolicy)
        self.resultList.setAlternatingRowColors(True)
        self.resultList.setRootIsDecorated(False)
        self.resultList.setItemsExpandable(False)
        self.resultList.setObjectName("resultList")
        self.resultList.headerItem().setText(6,"")
        self.vboxlayout.addWidget(self.resultList)

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

        self.summaryList = QtGui.QTreeWidget(PyCoverageDialog)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(7))
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.summaryList.sizePolicy().hasHeightForWidth())
        self.summaryList.setSizePolicy(sizePolicy)
        self.summaryList.setAlternatingRowColors(True)
        self.summaryList.setRootIsDecorated(False)
        self.summaryList.setItemsExpandable(False)
        self.summaryList.setObjectName("summaryList")
        self.summaryList.headerItem().setText(3,"")
        self.vboxlayout.addWidget(self.summaryList)

        self.checkProgress = QtGui.QProgressBar(PyCoverageDialog)
        self.checkProgress.setProperty("value",QtCore.QVariant(0))
        self.checkProgress.setOrientation(QtCore.Qt.Horizontal)
        self.checkProgress.setObjectName("checkProgress")
        self.vboxlayout.addWidget(self.checkProgress)

        self.buttonBox = QtGui.QDialogButtonBox(PyCoverageDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Close|QtGui.QDialogButtonBox.NoButton)
        self.buttonBox.setObjectName("buttonBox")
        self.vboxlayout.addWidget(self.buttonBox)
        self.textLabel1_2.setBuddy(self.excludeCombo)

        self.retranslateUi(PyCoverageDialog)
        QtCore.QMetaObject.connectSlotsByName(PyCoverageDialog)
        PyCoverageDialog.setTabOrder(self.excludeCombo,self.reloadButton)
        PyCoverageDialog.setTabOrder(self.reloadButton,self.resultList)
        PyCoverageDialog.setTabOrder(self.resultList,self.summaryList)

    def retranslateUi(self, PyCoverageDialog):
        PyCoverageDialog.setWindowTitle(QtGui.QApplication.translate("PyCoverageDialog", "Python Code Coverage", None, QtGui.QApplication.UnicodeUTF8))
        PyCoverageDialog.setWhatsThis(QtGui.QApplication.translate("PyCoverageDialog", "<b>Python Code Coverage</b>\n"
        "<p>This dialog shows the collected code coverage data.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_2.setText(QtGui.QApplication.translate("PyCoverageDialog", "E&xclude pattern:", None, QtGui.QApplication.UnicodeUTF8))
        self.excludeCombo.setToolTip(QtGui.QApplication.translate("PyCoverageDialog", "Enter a regexp pattern marking lines to exclude from coverage", None, QtGui.QApplication.UnicodeUTF8))
        self.excludeCombo.setWhatsThis(QtGui.QApplication.translate("PyCoverageDialog", "<b>Exclude pattern</b>\n"
        "<p>Enter a regular expression pattern. Lines matching this pattern are excluded from the coverage analysis. The default pattern is \'#pragma[: ]+[nN][oO] [cC][oO][vV][eE][rR]\'. If the pattern is found on a line containing the colon that introduces a suite of statements, the entire suite is excluded.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.reloadButton.setText(QtGui.QApplication.translate("PyCoverageDialog", "&Reload", None, QtGui.QApplication.UnicodeUTF8))
        self.reloadButton.setShortcut(QtGui.QApplication.translate("PyCoverageDialog", "Alt+R", None, QtGui.QApplication.UnicodeUTF8))
        self.resultList.setWhatsThis(QtGui.QApplication.translate("PyCoverageDialog", "<b>Python Code Coverage</b>\n"
        "<p>This list shows the collected code coverage data. There are several actions available via the context menu.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.resultList.headerItem().setText(0,QtGui.QApplication.translate("PyCoverageDialog", "Name", None, QtGui.QApplication.UnicodeUTF8))
        self.resultList.headerItem().setText(1,QtGui.QApplication.translate("PyCoverageDialog", "Statements", None, QtGui.QApplication.UnicodeUTF8))
        self.resultList.headerItem().setText(2,QtGui.QApplication.translate("PyCoverageDialog", "Executed", None, QtGui.QApplication.UnicodeUTF8))
        self.resultList.headerItem().setText(3,QtGui.QApplication.translate("PyCoverageDialog", "Coverage", None, QtGui.QApplication.UnicodeUTF8))
        self.resultList.headerItem().setText(4,QtGui.QApplication.translate("PyCoverageDialog", "Excluded", None, QtGui.QApplication.UnicodeUTF8))
        self.resultList.headerItem().setText(5,QtGui.QApplication.translate("PyCoverageDialog", "Missing", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1.setText(QtGui.QApplication.translate("PyCoverageDialog", "Summary", None, QtGui.QApplication.UnicodeUTF8))
        self.summaryList.setWhatsThis(QtGui.QApplication.translate("PyCoverageDialog", "<b>Summary</b>\n"
        "<p>This shows some overall code coverage information.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.summaryList.headerItem().setText(0,QtGui.QApplication.translate("PyCoverageDialog", "Statements", None, QtGui.QApplication.UnicodeUTF8))
        self.summaryList.headerItem().setText(1,QtGui.QApplication.translate("PyCoverageDialog", "Executed", None, QtGui.QApplication.UnicodeUTF8))
        self.summaryList.headerItem().setText(2,QtGui.QApplication.translate("PyCoverageDialog", "Coverage", None, QtGui.QApplication.UnicodeUTF8))
        self.checkProgress.setToolTip(QtGui.QApplication.translate("PyCoverageDialog", "Shows the progress of the code coverage action", None, QtGui.QApplication.UnicodeUTF8))



if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    PyCoverageDialog = QtGui.QDialog()
    ui = Ui_PyCoverageDialog()
    ui.setupUi(PyCoverageDialog)
    PyCoverageDialog.show()
    sys.exit(app.exec_())
