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

# Form implementation generated from reading ui file 'eric/Helpviewer/CookieJar/CookiesExceptionsDialog.ui'
#
# Created: Thu Jul  8 14:17:41 2010
#      by: PyQt4 UI code generator 4.7.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_CookiesExceptionsDialog(object):
    def setupUi(self, CookiesExceptionsDialog):
        CookiesExceptionsDialog.setObjectName("CookiesExceptionsDialog")
        CookiesExceptionsDialog.resize(500, 450)
        CookiesExceptionsDialog.setSizeGripEnabled(True)
        self.verticalLayout = QtGui.QVBoxLayout(CookiesExceptionsDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.newExceptionGroupBox = QtGui.QGroupBox(CookiesExceptionsDialog)
        self.newExceptionGroupBox.setObjectName("newExceptionGroupBox")
        self.gridlayout = QtGui.QGridLayout(self.newExceptionGroupBox)
        self.gridlayout.setObjectName("gridlayout")
        self._2 = QtGui.QHBoxLayout()
        self._2.setObjectName("_2")
        self.label = QtGui.QLabel(self.newExceptionGroupBox)
        self.label.setObjectName("label")
        self._2.addWidget(self.label)
        self.domainEdit = QtGui.QLineEdit(self.newExceptionGroupBox)
        self.domainEdit.setObjectName("domainEdit")
        self._2.addWidget(self.domainEdit)
        self.gridlayout.addLayout(self._2, 0, 0, 1, 1)
        self._3 = QtGui.QHBoxLayout()
        self._3.setObjectName("_3")
        spacerItem = QtGui.QSpacerItem(81, 25, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self._3.addItem(spacerItem)
        self.blockButton = QtGui.QPushButton(self.newExceptionGroupBox)
        self.blockButton.setEnabled(False)
        self.blockButton.setObjectName("blockButton")
        self._3.addWidget(self.blockButton)
        self.allowForSessionButton = QtGui.QPushButton(self.newExceptionGroupBox)
        self.allowForSessionButton.setEnabled(False)
        self.allowForSessionButton.setObjectName("allowForSessionButton")
        self._3.addWidget(self.allowForSessionButton)
        self.allowButton = QtGui.QPushButton(self.newExceptionGroupBox)
        self.allowButton.setEnabled(False)
        self.allowButton.setObjectName("allowButton")
        self._3.addWidget(self.allowButton)
        self.gridlayout.addLayout(self._3, 1, 0, 1, 1)
        self.verticalLayout.addWidget(self.newExceptionGroupBox)
        self.exceptionsGroup = QtGui.QGroupBox(CookiesExceptionsDialog)
        self.exceptionsGroup.setObjectName("exceptionsGroup")
        self.gridLayout = QtGui.QGridLayout(self.exceptionsGroup)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.searchEdit = QtGui.QLineEdit(self.exceptionsGroup)
        self.searchEdit.setObjectName("searchEdit")
        self.horizontalLayout.addWidget(self.searchEdit)
        self.clearButton = QtGui.QToolButton(self.exceptionsGroup)
        self.clearButton.setText("")
        self.clearButton.setObjectName("clearButton")
        self.horizontalLayout.addWidget(self.clearButton)
        self.horizontalLayout_2.addLayout(self.horizontalLayout)
        self.gridLayout.addLayout(self.horizontalLayout_2, 0, 0, 1, 3)
        self.exceptionsTable = E4TableView(self.exceptionsGroup)
        self.exceptionsTable.setAlternatingRowColors(True)
        self.exceptionsTable.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.exceptionsTable.setTextElideMode(QtCore.Qt.ElideMiddle)
        self.exceptionsTable.setShowGrid(False)
        self.exceptionsTable.setSortingEnabled(True)
        self.exceptionsTable.setObjectName("exceptionsTable")
        self.exceptionsTable.verticalHeader().setVisible(False)
        self.gridLayout.addWidget(self.exceptionsTable, 1, 0, 1, 3)
        self.removeButton = QtGui.QPushButton(self.exceptionsGroup)
        self.removeButton.setObjectName("removeButton")
        self.gridLayout.addWidget(self.removeButton, 2, 0, 1, 1)
        self.removeAllButton = QtGui.QPushButton(self.exceptionsGroup)
        self.removeAllButton.setObjectName("removeAllButton")
        self.gridLayout.addWidget(self.removeAllButton, 2, 1, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(286, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem2, 2, 2, 1, 1)
        self.verticalLayout.addWidget(self.exceptionsGroup)
        self.buttonBox = QtGui.QDialogButtonBox(CookiesExceptionsDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)
        self.label.setBuddy(self.domainEdit)

        self.retranslateUi(CookiesExceptionsDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), CookiesExceptionsDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), CookiesExceptionsDialog.reject)
        QtCore.QObject.connect(self.clearButton, QtCore.SIGNAL("clicked()"), self.searchEdit.clear)
        QtCore.QMetaObject.connectSlotsByName(CookiesExceptionsDialog)
        CookiesExceptionsDialog.setTabOrder(self.domainEdit, self.blockButton)
        CookiesExceptionsDialog.setTabOrder(self.blockButton, self.allowForSessionButton)
        CookiesExceptionsDialog.setTabOrder(self.allowForSessionButton, self.allowButton)
        CookiesExceptionsDialog.setTabOrder(self.allowButton, self.searchEdit)
        CookiesExceptionsDialog.setTabOrder(self.searchEdit, self.clearButton)
        CookiesExceptionsDialog.setTabOrder(self.clearButton, self.exceptionsTable)
        CookiesExceptionsDialog.setTabOrder(self.exceptionsTable, self.removeButton)
        CookiesExceptionsDialog.setTabOrder(self.removeButton, self.removeAllButton)
        CookiesExceptionsDialog.setTabOrder(self.removeAllButton, self.buttonBox)

    def retranslateUi(self, CookiesExceptionsDialog):
        CookiesExceptionsDialog.setWindowTitle(QtGui.QApplication.translate("CookiesExceptionsDialog", "Cookie Exceptions", None, QtGui.QApplication.UnicodeUTF8))
        self.newExceptionGroupBox.setTitle(QtGui.QApplication.translate("CookiesExceptionsDialog", "New Exception", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("CookiesExceptionsDialog", "&Domain:", None, QtGui.QApplication.UnicodeUTF8))
        self.domainEdit.setToolTip(QtGui.QApplication.translate("CookiesExceptionsDialog", "Enter the domain name", None, QtGui.QApplication.UnicodeUTF8))
        self.blockButton.setToolTip(QtGui.QApplication.translate("CookiesExceptionsDialog", "Press to always reject cookies for the domain", None, QtGui.QApplication.UnicodeUTF8))
        self.blockButton.setText(QtGui.QApplication.translate("CookiesExceptionsDialog", "&Block", None, QtGui.QApplication.UnicodeUTF8))
        self.allowForSessionButton.setToolTip(QtGui.QApplication.translate("CookiesExceptionsDialog", "Press to accept cookies for the domain for the current session", None, QtGui.QApplication.UnicodeUTF8))
        self.allowForSessionButton.setText(QtGui.QApplication.translate("CookiesExceptionsDialog", "Allow For &Session", None, QtGui.QApplication.UnicodeUTF8))
        self.allowButton.setToolTip(QtGui.QApplication.translate("CookiesExceptionsDialog", "Press to always accept cookies for the domain", None, QtGui.QApplication.UnicodeUTF8))
        self.allowButton.setText(QtGui.QApplication.translate("CookiesExceptionsDialog", "Allo&w", None, QtGui.QApplication.UnicodeUTF8))
        self.exceptionsGroup.setTitle(QtGui.QApplication.translate("CookiesExceptionsDialog", "Exceptions", None, QtGui.QApplication.UnicodeUTF8))
        self.searchEdit.setToolTip(QtGui.QApplication.translate("CookiesExceptionsDialog", "Enter search term for exceptions", None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setToolTip(QtGui.QApplication.translate("CookiesExceptionsDialog", "Press to clear the search edit", None, QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setToolTip(QtGui.QApplication.translate("CookiesExceptionsDialog", "Press to remove the selected entries", None, QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(QtGui.QApplication.translate("CookiesExceptionsDialog", "&Remove", None, QtGui.QApplication.UnicodeUTF8))
        self.removeAllButton.setToolTip(QtGui.QApplication.translate("CookiesExceptionsDialog", "Press to remove all entries", None, QtGui.QApplication.UnicodeUTF8))
        self.removeAllButton.setText(QtGui.QApplication.translate("CookiesExceptionsDialog", "Remove &All", None, QtGui.QApplication.UnicodeUTF8))

from E4Gui.E4TableView import E4TableView
