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

# Form implementation generated from reading ui file 'eric/Helpviewer/Download/DownloadItem.ui'
#
# Created: Tue Oct 28 07:22:19 2014
#      by: PyQt4 UI code generator 4.11.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_DownloadItem(object):
    def setupUi(self, DownloadItem):
        DownloadItem.setObjectName(_fromUtf8("DownloadItem"))
        DownloadItem.resize(400, 82)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DownloadItem.sizePolicy().hasHeightForWidth())
        DownloadItem.setSizePolicy(sizePolicy)
        DownloadItem.setWindowTitle(_fromUtf8(""))
        self.horizontalLayout = QtGui.QHBoxLayout(DownloadItem)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.fileIcon = QtGui.QLabel(DownloadItem)
        self.fileIcon.setObjectName(_fromUtf8("fileIcon"))
        self.horizontalLayout.addWidget(self.fileIcon)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.filenameLabel = QtGui.QLabel(DownloadItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.filenameLabel.sizePolicy().hasHeightForWidth())
        self.filenameLabel.setSizePolicy(sizePolicy)
        self.filenameLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.filenameLabel.setWordWrap(True)
        self.filenameLabel.setObjectName(_fromUtf8("filenameLabel"))
        self.verticalLayout.addWidget(self.filenameLabel)
        self.progressBar = QtGui.QProgressBar(DownloadItem)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        self.verticalLayout.addWidget(self.progressBar)
        self.infoLabel = QtGui.QLabel(DownloadItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.infoLabel.sizePolicy().hasHeightForWidth())
        self.infoLabel.setSizePolicy(sizePolicy)
        self.infoLabel.setText(_fromUtf8("Info"))
        self.infoLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.infoLabel.setWordWrap(True)
        self.infoLabel.setObjectName(_fromUtf8("infoLabel"))
        self.verticalLayout.addWidget(self.infoLabel)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.tryAgainButton = QtGui.QToolButton(DownloadItem)
        self.tryAgainButton.setText(_fromUtf8(""))
        self.tryAgainButton.setObjectName(_fromUtf8("tryAgainButton"))
        self.horizontalLayout.addWidget(self.tryAgainButton)
        self.pauseButton = QtGui.QToolButton(DownloadItem)
        self.pauseButton.setText(_fromUtf8(""))
        self.pauseButton.setCheckable(True)
        self.pauseButton.setObjectName(_fromUtf8("pauseButton"))
        self.horizontalLayout.addWidget(self.pauseButton)
        self.stopButton = QtGui.QToolButton(DownloadItem)
        self.stopButton.setText(_fromUtf8(""))
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.horizontalLayout.addWidget(self.stopButton)
        self.openButton = QtGui.QToolButton(DownloadItem)
        self.openButton.setText(_fromUtf8(""))
        self.openButton.setObjectName(_fromUtf8("openButton"))
        self.horizontalLayout.addWidget(self.openButton)

        self.retranslateUi(DownloadItem)
        QtCore.QMetaObject.connectSlotsByName(DownloadItem)
        DownloadItem.setTabOrder(self.tryAgainButton, self.pauseButton)
        DownloadItem.setTabOrder(self.pauseButton, self.stopButton)
        DownloadItem.setTabOrder(self.stopButton, self.openButton)

    def retranslateUi(self, DownloadItem):
        self.fileIcon.setText(_translate("DownloadItem", "Icon", None))
        self.filenameLabel.setText(_translate("DownloadItem", "Filename", None))
        self.tryAgainButton.setToolTip(_translate("DownloadItem", "Press to repeat the download", None))
        self.pauseButton.setToolTip(_translate("DownloadItem", "Press to pause the download", None))
        self.stopButton.setToolTip(_translate("DownloadItem", "Press to cancel the download", None))
        self.openButton.setToolTip(_translate("DownloadItem", "Press to open the downloaded file", None))

