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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/dialogs/tag_editor.ui'
#
# Created: Thu May  1 08:13:48 2014
#      by: PyQt4 UI code generator 4.10.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
    pass
except AttributeError:
    pass

class Ui_TagEditor(object):
    def setupUi(self, TagEditor):
        TagEditor.setObjectName(_fromUtf8("TagEditor"))
        TagEditor.resize(600, 360)
        self.verticalLayout = QtGui.QVBoxLayout(TagEditor)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setContentsMargins(0, -1, 0, -1)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.label_3 = QtGui.QLabel(TagEditor)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_4.addWidget(self.label_3)
        self.add_tag_input = EnLineEdit(TagEditor)
        self.add_tag_input.setObjectName(_fromUtf8("add_tag_input"))
        self.horizontalLayout_4.addWidget(self.add_tag_input)
        self.add_tag_button = QtGui.QToolButton(TagEditor)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("plus.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.add_tag_button.setIcon(icon)
        self.add_tag_button.setObjectName(_fromUtf8("add_tag_button"))
        self.horizontalLayout_4.addWidget(self.add_tag_button)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.line_2 = QtGui.QFrame(TagEditor)
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.verticalLayout.addWidget(self.line_2)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 8)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label = QtGui.QLabel(TagEditor)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout_2.addWidget(self.label)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.available_filter_input = QtGui.QLineEdit(TagEditor)
        self.available_filter_input.setObjectName(_fromUtf8("available_filter_input"))
        self.horizontalLayout.addWidget(self.available_filter_input)
        self.available_filter_input_clear_btn = QtGui.QToolButton(TagEditor)
        self.available_filter_input_clear_btn.setText(_fromUtf8(""))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("clear_left.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.available_filter_input_clear_btn.setIcon(icon1)
        self.available_filter_input_clear_btn.setObjectName(_fromUtf8("available_filter_input_clear_btn"))
        self.horizontalLayout.addWidget(self.available_filter_input_clear_btn)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.available_tags = QtGui.QListWidget(TagEditor)
        self.available_tags.setAlternatingRowColors(True)
        self.available_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
        self.available_tags.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.available_tags.setObjectName(_fromUtf8("available_tags"))
        self.verticalLayout_2.addWidget(self.available_tags)
        self.delete_button = QtGui.QPushButton(TagEditor)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("trash.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.delete_button.setIcon(icon2)
        self.delete_button.setObjectName(_fromUtf8("delete_button"))
        self.verticalLayout_2.addWidget(self.delete_button)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.apply_button = QtGui.QToolButton(TagEditor)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I("forward.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.apply_button.setIcon(icon3)
        self.apply_button.setObjectName(_fromUtf8("apply_button"))
        self.horizontalLayout_2.addWidget(self.apply_button)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label_2 = QtGui.QLabel(TagEditor)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_3.addWidget(self.label_2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.applied_filter_input = QtGui.QLineEdit(TagEditor)
        self.applied_filter_input.setObjectName(_fromUtf8("applied_filter_input"))
        self.horizontalLayout_3.addWidget(self.applied_filter_input)
        self.applied_filter_input_clear_btn = QtGui.QToolButton(TagEditor)
        self.applied_filter_input_clear_btn.setText(_fromUtf8(""))
        self.applied_filter_input_clear_btn.setIcon(icon1)
        self.applied_filter_input_clear_btn.setObjectName(_fromUtf8("applied_filter_input_clear_btn"))
        self.horizontalLayout_3.addWidget(self.applied_filter_input_clear_btn)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.applied_tags = QtGui.QListWidget(TagEditor)
        self.applied_tags.setAlternatingRowColors(True)
        self.applied_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
        self.applied_tags.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.applied_tags.setObjectName(_fromUtf8("applied_tags"))
        self.verticalLayout_3.addWidget(self.applied_tags)
        self.unapply_button = QtGui.QPushButton(TagEditor)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(I("list_remove.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.unapply_button.setIcon(icon4)
        self.unapply_button.setObjectName(_fromUtf8("unapply_button"))
        self.verticalLayout_3.addWidget(self.unapply_button)
        self.horizontalLayout_2.addLayout(self.verticalLayout_3)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.line = QtGui.QFrame(TagEditor)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.verticalLayout.addWidget(self.line)
        self.buttonBox = QtGui.QDialogButtonBox(TagEditor)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)
        self.label_3.setBuddy(self.add_tag_input)
        self.label.setBuddy(self.available_tags)
        self.label_2.setBuddy(self.applied_tags)

        self.retranslateUi(TagEditor)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), TagEditor.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), TagEditor.reject)
        QtCore.QMetaObject.connectSlotsByName(TagEditor)

    def retranslateUi(self, TagEditor):
        TagEditor.setWindowTitle(_("Tag Editor"))
        self.label_3.setText(_("&Add tag:"))
        self.add_tag_input.setToolTip(_("If the tag you want is not in the available list, you can add it here. Accepts a comma separated list of tags."))
        self.add_tag_button.setToolTip(_("Add tag to available tags and apply it to current book"))
        self.add_tag_button.setText(_("..."))
        self.label.setText(_("A&vailable tags"))
        self.available_filter_input.setPlaceholderText(_("Filter the available tags"))
        self.available_filter_input_clear_btn.setToolTip(_("Clear the available tags filter input field"))
        self.delete_button.setToolTip(_("Delete tag from database. This will unapply the tag from all books and then remove it from the database."))
        self.delete_button.setText(_("Delete tag"))
        self.apply_button.setToolTip(_("Apply tag to current book"))
        self.apply_button.setText(_("..."))
        self.label_2.setText(_("A&pplied tags"))
        self.applied_filter_input.setPlaceholderText(_("Filter the applied tags"))
        self.applied_filter_input_clear_btn.setToolTip(_("Clear the applied tags filter input field"))
        self.unapply_button.setToolTip(_("Unapply (remove) tag from current book"))
        self.unapply_button.setText(_("Unapply tag"))

from calibre.gui2.widgets import EnLineEdit

