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

# Form implementation generated from reading ui file 'eric/Helpviewer/AdBlock/AdBlockExceptionsDialog.ui'
#
# Created: Thu Mar  5 17:02:35 2015
#      by: PyQt4 UI code generator 4.11.3
#
# 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_AdBlockExceptionsDialog(object):
    def setupUi(self, AdBlockExceptionsDialog):
        AdBlockExceptionsDialog.setObjectName(_fromUtf8("AdBlockExceptionsDialog"))
        AdBlockExceptionsDialog.resize(550, 450)
        AdBlockExceptionsDialog.setSizeGripEnabled(True)
        self.verticalLayout = QtGui.QVBoxLayout(AdBlockExceptionsDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.iconLabel = QtGui.QLabel(AdBlockExceptionsDialog)
        self.iconLabel.setMinimumSize(QtCore.QSize(48, 48))
        self.iconLabel.setText(_fromUtf8("Icon"))
        self.iconLabel.setObjectName(_fromUtf8("iconLabel"))
        self.gridLayout.addWidget(self.iconLabel, 0, 0, 2, 1)
        spacerItem = QtGui.QSpacerItem(188, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 1, 1, 1)
        self.hostEdit = E5ClearableLineEdit(AdBlockExceptionsDialog)
        self.hostEdit.setObjectName(_fromUtf8("hostEdit"))
        self.gridLayout.addWidget(self.hostEdit, 1, 1, 1, 1)
        self.addButton = QtGui.QPushButton(AdBlockExceptionsDialog)
        self.addButton.setEnabled(False)
        self.addButton.setObjectName(_fromUtf8("addButton"))
        self.gridLayout.addWidget(self.addButton, 1, 2, 1, 1)
        self.hostList = QtGui.QListWidget(AdBlockExceptionsDialog)
        self.hostList.setAlternatingRowColors(True)
        self.hostList.setObjectName(_fromUtf8("hostList"))
        self.gridLayout.addWidget(self.hostList, 2, 0, 2, 2)
        self.deleteButton = QtGui.QPushButton(AdBlockExceptionsDialog)
        self.deleteButton.setEnabled(False)
        self.deleteButton.setObjectName(_fromUtf8("deleteButton"))
        self.gridLayout.addWidget(self.deleteButton, 2, 2, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(20, 148, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem1, 3, 2, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.buttonBox = QtGui.QDialogButtonBox(AdBlockExceptionsDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(AdBlockExceptionsDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), AdBlockExceptionsDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), AdBlockExceptionsDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(AdBlockExceptionsDialog)
        AdBlockExceptionsDialog.setTabOrder(self.hostEdit, self.addButton)
        AdBlockExceptionsDialog.setTabOrder(self.addButton, self.hostList)
        AdBlockExceptionsDialog.setTabOrder(self.hostList, self.deleteButton)
        AdBlockExceptionsDialog.setTabOrder(self.deleteButton, self.buttonBox)

    def retranslateUi(self, AdBlockExceptionsDialog):
        AdBlockExceptionsDialog.setWindowTitle(_translate("AdBlockExceptionsDialog", "AdBlock Exceptions", None))
        self.hostEdit.setToolTip(_translate("AdBlockExceptionsDialog", "Enter a host to block AdBlock for", None))
        self.addButton.setToolTip(_translate("AdBlockExceptionsDialog", "Press to add the host", None))
        self.addButton.setText(_translate("AdBlockExceptionsDialog", "&Add", None))
        self.hostList.setSortingEnabled(True)
        self.deleteButton.setToolTip(_translate("AdBlockExceptionsDialog", "Press to delete the selected hosts", None))
        self.deleteButton.setText(_translate("AdBlockExceptionsDialog", "&Delete", None))

from E5Gui.E5LineEdit import E5ClearableLineEdit
