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

# Form implementation generated from reading ui file 'eric/Helpviewer/AdBlock/AdBlockDialog.ui'
#
# Created: Sat Jan 18 15:10:14 2014
#      by: PyQt4 UI code generator 4.10.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_AdBlockDialog(object):
    def setupUi(self, AdBlockDialog):
        AdBlockDialog.setObjectName(_fromUtf8("AdBlockDialog"))
        AdBlockDialog.resize(650, 600)
        AdBlockDialog.setSizeGripEnabled(True)
        self.verticalLayout_2 = QtGui.QVBoxLayout(AdBlockDialog)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.adBlockGroup = QtGui.QGroupBox(AdBlockDialog)
        self.adBlockGroup.setCheckable(True)
        self.adBlockGroup.setObjectName(_fromUtf8("adBlockGroup"))
        self.verticalLayout = QtGui.QVBoxLayout(self.adBlockGroup)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setHorizontalSpacing(20)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.iconLabel = QtGui.QLabel(self.adBlockGroup)
        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(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 1, 1, 1)
        self.searchEdit = E5ClearableLineEdit(self.adBlockGroup)
        self.searchEdit.setObjectName(_fromUtf8("searchEdit"))
        self.gridLayout.addWidget(self.searchEdit, 1, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.subscriptionsTabWidget = QtGui.QTabWidget(self.adBlockGroup)
        self.subscriptionsTabWidget.setDocumentMode(True)
        self.subscriptionsTabWidget.setObjectName(_fromUtf8("subscriptionsTabWidget"))
        self.verticalLayout.addWidget(self.subscriptionsTabWidget)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.actionButton = QtGui.QToolButton(self.adBlockGroup)
        self.actionButton.setObjectName(_fromUtf8("actionButton"))
        self.horizontalLayout.addWidget(self.actionButton)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.label = QtGui.QLabel(self.adBlockGroup)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.updateSpinBox = QtGui.QSpinBox(self.adBlockGroup)
        self.updateSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.updateSpinBox.setSuffix(_fromUtf8(""))
        self.updateSpinBox.setMinimum(1)
        self.updateSpinBox.setMaximum(14)
        self.updateSpinBox.setProperty("value", 7)
        self.updateSpinBox.setObjectName(_fromUtf8("updateSpinBox"))
        self.horizontalLayout.addWidget(self.updateSpinBox)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2.addWidget(self.adBlockGroup)
        self.buttonBox = QtGui.QDialogButtonBox(AdBlockDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout_2.addWidget(self.buttonBox)

        self.retranslateUi(AdBlockDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), AdBlockDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), AdBlockDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(AdBlockDialog)
        AdBlockDialog.setTabOrder(self.adBlockGroup, self.searchEdit)
        AdBlockDialog.setTabOrder(self.searchEdit, self.subscriptionsTabWidget)
        AdBlockDialog.setTabOrder(self.subscriptionsTabWidget, self.actionButton)
        AdBlockDialog.setTabOrder(self.actionButton, self.updateSpinBox)
        AdBlockDialog.setTabOrder(self.updateSpinBox, self.buttonBox)

    def retranslateUi(self, AdBlockDialog):
        AdBlockDialog.setWindowTitle(_translate("AdBlockDialog", "AdBlock Configuration", None))
        self.adBlockGroup.setTitle(_translate("AdBlockDialog", "Enable AdBlock", None))
        self.searchEdit.setToolTip(_translate("AdBlockDialog", "Enter search term for subscriptions and rules", None))
        self.actionButton.setText(_translate("AdBlockDialog", "Actions", None))
        self.label.setText(_translate("AdBlockDialog", "Default Update Period (days):", None))
        self.updateSpinBox.setToolTip(_translate("AdBlockDialog", "Enter the update period (1 to 14 days)", None))

from E5Gui.E5LineEdit import E5ClearableLineEdit
