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

# Form implementation generated from reading ui file 'eric/E5Gui/E5StringListEditWidget.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# 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_E5StringListEditWidget(object):
    def setupUi(self, E5StringListEditWidget):
        E5StringListEditWidget.setObjectName(_fromUtf8("E5StringListEditWidget"))
        E5StringListEditWidget.resize(500, 300)
        E5StringListEditWidget.setWindowTitle(_fromUtf8(""))
        self.verticalLayout = QtGui.QVBoxLayout(E5StringListEditWidget)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout_4 = QtGui.QGridLayout()
        self.gridLayout_4.setHorizontalSpacing(0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.searchEdit = E5ClearableLineEdit(E5StringListEditWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchEdit.sizePolicy().hasHeightForWidth())
        self.searchEdit.setSizePolicy(sizePolicy)
        self.searchEdit.setMinimumSize(QtCore.QSize(300, 0))
        self.searchEdit.setObjectName(_fromUtf8("searchEdit"))
        self.gridLayout_4.addWidget(self.searchEdit, 0, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem, 0, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_4)
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_5.addItem(spacerItem1, 4, 1, 1, 1)
        self.addButton = QtGui.QPushButton(E5StringListEditWidget)
        self.addButton.setAutoDefault(False)
        self.addButton.setObjectName(_fromUtf8("addButton"))
        self.gridLayout_5.addWidget(self.addButton, 0, 1, 1, 1)
        self.line_3 = QtGui.QFrame(E5StringListEditWidget)
        self.line_3.setFrameShape(QtGui.QFrame.HLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.gridLayout_5.addWidget(self.line_3, 1, 1, 1, 1)
        self.removeButton = QtGui.QPushButton(E5StringListEditWidget)
        self.removeButton.setAutoDefault(False)
        self.removeButton.setObjectName(_fromUtf8("removeButton"))
        self.gridLayout_5.addWidget(self.removeButton, 2, 1, 1, 1)
        self.removeAllButton = QtGui.QPushButton(E5StringListEditWidget)
        self.removeAllButton.setAutoDefault(False)
        self.removeAllButton.setObjectName(_fromUtf8("removeAllButton"))
        self.gridLayout_5.addWidget(self.removeAllButton, 3, 1, 1, 1)
        self.stringList = E5ListView(E5StringListEditWidget)
        self.stringList.setAlternatingRowColors(True)
        self.stringList.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.stringList.setObjectName(_fromUtf8("stringList"))
        self.gridLayout_5.addWidget(self.stringList, 0, 0, 5, 1)
        self.verticalLayout.addLayout(self.gridLayout_5)

        self.retranslateUi(E5StringListEditWidget)
        QtCore.QMetaObject.connectSlotsByName(E5StringListEditWidget)

    def retranslateUi(self, E5StringListEditWidget):
        self.searchEdit.setToolTip(_translate("E5StringListEditWidget", "Enter search term for strings", None))
        self.addButton.setToolTip(_translate("E5StringListEditWidget", "Press to add an entry", None))
        self.addButton.setText(_translate("E5StringListEditWidget", "&Add...", None))
        self.removeButton.setToolTip(_translate("E5StringListEditWidget", "Press to remove the selected entries", None))
        self.removeButton.setText(_translate("E5StringListEditWidget", "&Remove", None))
        self.removeAllButton.setToolTip(_translate("E5StringListEditWidget", "Press to remove all entries", None))
        self.removeAllButton.setText(_translate("E5StringListEditWidget", "R&emove All", None))

from E5Gui.E5LineEdit import E5ClearableLineEdit
from E5Gui.E5ListView import E5ListView
