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

# Form implementation generated from reading ui file 'eric/Helpviewer/UserAgent/UserAgentsDialog.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_UserAgentsDialog(object):
    def setupUi(self, UserAgentsDialog):
        UserAgentsDialog.setObjectName(_fromUtf8("UserAgentsDialog"))
        UserAgentsDialog.resize(700, 400)
        UserAgentsDialog.setSizeGripEnabled(True)
        self.verticalLayout = QtGui.QVBoxLayout(UserAgentsDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("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(_fromUtf8("horizontalLayout"))
        self.searchEdit = E5ClearableLineEdit(UserAgentsDialog)
        self.searchEdit.setObjectName(_fromUtf8("searchEdit"))
        self.horizontalLayout.addWidget(self.searchEdit)
        self.horizontalLayout_2.addLayout(self.horizontalLayout)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.userAgentsTable = E5TableView(UserAgentsDialog)
        self.userAgentsTable.setAlternatingRowColors(True)
        self.userAgentsTable.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.userAgentsTable.setTextElideMode(QtCore.Qt.ElideMiddle)
        self.userAgentsTable.setShowGrid(False)
        self.userAgentsTable.setSortingEnabled(True)
        self.userAgentsTable.setObjectName(_fromUtf8("userAgentsTable"))
        self.verticalLayout.addWidget(self.userAgentsTable)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.removeButton = QtGui.QPushButton(UserAgentsDialog)
        self.removeButton.setAutoDefault(False)
        self.removeButton.setObjectName(_fromUtf8("removeButton"))
        self.horizontalLayout_3.addWidget(self.removeButton)
        self.removeAllButton = QtGui.QPushButton(UserAgentsDialog)
        self.removeAllButton.setAutoDefault(False)
        self.removeAllButton.setObjectName(_fromUtf8("removeAllButton"))
        self.horizontalLayout_3.addWidget(self.removeAllButton)
        spacerItem1 = QtGui.QSpacerItem(208, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.buttonBox = QtGui.QDialogButtonBox(UserAgentsDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(UserAgentsDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), UserAgentsDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), UserAgentsDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(UserAgentsDialog)
        UserAgentsDialog.setTabOrder(self.searchEdit, self.userAgentsTable)
        UserAgentsDialog.setTabOrder(self.userAgentsTable, self.removeButton)
        UserAgentsDialog.setTabOrder(self.removeButton, self.removeAllButton)
        UserAgentsDialog.setTabOrder(self.removeAllButton, self.buttonBox)

    def retranslateUi(self, UserAgentsDialog):
        UserAgentsDialog.setWindowTitle(_translate("UserAgentsDialog", "User Agent Settings", None))
        self.searchEdit.setToolTip(_translate("UserAgentsDialog", "Enter search term", None))
        self.removeButton.setToolTip(_translate("UserAgentsDialog", "Press to remove the selected entries", None))
        self.removeButton.setText(_translate("UserAgentsDialog", "&Remove", None))
        self.removeAllButton.setToolTip(_translate("UserAgentsDialog", "Press to remove all entries", None))
        self.removeAllButton.setText(_translate("UserAgentsDialog", "Remove &All", None))

from E5Gui.E5LineEdit import E5ClearableLineEdit
from E5Gui.E5TableView import E5TableView
