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

# Form implementation generated from reading ui file 'eric/Helpviewer/AdBlock/AdBlockDialog.ui'
#
# Created: Mon May 10 20:39:51 2010
#      by: PyQt4 UI code generator 4.4.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_AdBlockDialog(object):
    def setupUi(self, AdBlockDialog):
        AdBlockDialog.setObjectName("AdBlockDialog")
        AdBlockDialog.resize(650, 600)
        AdBlockDialog.setSizeGripEnabled(True)
        self.verticalLayout_2 = QtGui.QVBoxLayout(AdBlockDialog)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.adBlockGroup = QtGui.QGroupBox(AdBlockDialog)
        self.adBlockGroup.setCheckable(True)
        self.adBlockGroup.setObjectName("adBlockGroup")
        self.verticalLayout = QtGui.QVBoxLayout(self.adBlockGroup)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.searchEdit = QtGui.QLineEdit(self.adBlockGroup)
        self.searchEdit.setObjectName("searchEdit")
        self.horizontalLayout.addWidget(self.searchEdit)
        self.clearButton = QtGui.QToolButton(self.adBlockGroup)
        self.clearButton.setObjectName("clearButton")
        self.horizontalLayout.addWidget(self.clearButton)
        self.horizontalLayout_2.addLayout(self.horizontalLayout)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.subscriptionsTree = E4TreeView(self.adBlockGroup)
        self.subscriptionsTree.setDragDropMode(QtGui.QAbstractItemView.InternalMove)
        self.subscriptionsTree.setAlternatingRowColors(True)
        self.subscriptionsTree.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.subscriptionsTree.setTextElideMode(QtCore.Qt.ElideMiddle)
        self.subscriptionsTree.setUniformRowHeights(True)
        self.subscriptionsTree.setObjectName("subscriptionsTree")
        self.verticalLayout.addWidget(self.subscriptionsTree)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.actionButton = QtGui.QToolButton(self.adBlockGroup)
        self.actionButton.setObjectName("actionButton")
        self.horizontalLayout_3.addWidget(self.actionButton)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        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("buttonBox")
        self.verticalLayout_2.addWidget(self.buttonBox)

        self.retranslateUi(AdBlockDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), AdBlockDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), AdBlockDialog.reject)
        QtCore.QObject.connect(self.clearButton, QtCore.SIGNAL("clicked()"), self.searchEdit.clear)
        QtCore.QMetaObject.connectSlotsByName(AdBlockDialog)
        AdBlockDialog.setTabOrder(self.adBlockGroup, self.searchEdit)
        AdBlockDialog.setTabOrder(self.searchEdit, self.clearButton)
        AdBlockDialog.setTabOrder(self.clearButton, self.subscriptionsTree)
        AdBlockDialog.setTabOrder(self.subscriptionsTree, self.actionButton)
        AdBlockDialog.setTabOrder(self.actionButton, self.buttonBox)

    def retranslateUi(self, AdBlockDialog):
        AdBlockDialog.setWindowTitle(QtGui.QApplication.translate("AdBlockDialog", "AdBlock Configuration", None, QtGui.QApplication.UnicodeUTF8))
        self.adBlockGroup.setTitle(QtGui.QApplication.translate("AdBlockDialog", "Enable AdBlock", None, QtGui.QApplication.UnicodeUTF8))
        self.searchEdit.setToolTip(QtGui.QApplication.translate("AdBlockDialog", "Enter search term for subscriptions and rules", None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setToolTip(QtGui.QApplication.translate("AdBlockDialog", "Press to clear the search edit", None, QtGui.QApplication.UnicodeUTF8))
        self.actionButton.setText(QtGui.QApplication.translate("AdBlockDialog", "Actions", None, QtGui.QApplication.UnicodeUTF8))

from E4Gui.E4TreeView import E4TreeView
