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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/dialogs/tweak_epub.ui'
#
# Created: Wed May  4 13:08:04 2011
#      by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.setWindowModality(QtCore.Qt.NonModal)
        Dialog.resize(382, 265)
        Dialog.setSizeGripEnabled(False)
        Dialog.setModal(False)
        self.gridLayout = QtGui.QGridLayout(Dialog)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(Dialog)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
        self.explode_button = QtGui.QPushButton(Dialog)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("wizard.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.explode_button.setIcon(icon)
        self.explode_button.setObjectName(_fromUtf8("explode_button"))
        self.gridLayout.addWidget(self.explode_button, 1, 0, 1, 1)
        self.cancel_button = QtGui.QPushButton(Dialog)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("window-close.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cancel_button.setIcon(icon1)
        self.cancel_button.setObjectName(_fromUtf8("cancel_button"))
        self.gridLayout.addWidget(self.cancel_button, 3, 0, 1, 1)
        self.rebuild_button = QtGui.QPushButton(Dialog)
        self.rebuild_button.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("exec.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.rebuild_button.setIcon(icon2)
        self.rebuild_button.setObjectName(_fromUtf8("rebuild_button"))
        self.gridLayout.addWidget(self.rebuild_button, 3, 1, 1, 1)
        self.preview_button = QtGui.QPushButton(Dialog)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I("view.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.preview_button.setIcon(icon3)
        self.preview_button.setObjectName(_fromUtf8("preview_button"))
        self.gridLayout.addWidget(self.preview_button, 1, 1, 1, 1)

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

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(_("Tweak ePub"))
        self.label.setText(_("<p>Explode the ePub to display contents in a file browser window. To tweak individual files, right-click, then \'Open with...\' your editor of choice. When tweaks are complete, close the file browser window <b>and the editor windows you used to edit files in the epub</b>.</p><p>Rebuild the ePub, updating your calibre library.</p>"))
        self.explode_button.setStatusTip(_("Display contents of exploded ePub"))
        self.explode_button.setText(_("&Explode ePub"))
        self.cancel_button.setStatusTip(_("Discard changes"))
        self.cancel_button.setText(_("&Cancel"))
        self.rebuild_button.setStatusTip(_("Rebuild ePub from exploded contents"))
        self.rebuild_button.setText(_("&Rebuild ePub"))
        self.preview_button.setText(_("&Preview ePub"))


