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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/dialogs/book_info.ui'
#
# Created: Tue Dec 14 12:43:35 2010
#      by: PyQt4 UI code generator 4.8.1
#
# 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_BookInfo(object):
    def setupUi(self, BookInfo):
        BookInfo.setObjectName(_fromUtf8("BookInfo"))
        BookInfo.resize(917, 480)
        self.gridLayout = QtGui.QGridLayout(BookInfo)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.title = QtGui.QLabel(BookInfo)
        self.title.setAlignment(QtCore.Qt.AlignCenter)
        self.title.setObjectName(_fromUtf8("title"))
        self.gridLayout.addWidget(self.title, 0, 0, 1, 2)
        self.cover = QtGui.QGraphicsView(BookInfo)
        self.cover.setObjectName(_fromUtf8("cover"))
        self.gridLayout.addWidget(self.cover, 1, 0, 1, 1)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.text = QtGui.QLabel(BookInfo)
        self.text.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.text.setWordWrap(True)
        self.text.setObjectName(_fromUtf8("text"))
        self.verticalLayout.addWidget(self.text)
        self.groupBox = QtGui.QGroupBox(BookInfo)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.comments = QtWebKit.QWebView(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comments.sizePolicy().hasHeightForWidth())
        self.comments.setSizePolicy(sizePolicy)
        self.comments.setMaximumSize(QtCore.QSize(350, 16777215))
        self.comments.setUrl(QtCore.QUrl(_fromUtf8("about:blank")))
        self.comments.setObjectName(_fromUtf8("comments"))
        self.verticalLayout_2.addWidget(self.comments)
        self.verticalLayout.addWidget(self.groupBox)
        self.fit_cover = QtGui.QCheckBox(BookInfo)
        self.fit_cover.setObjectName(_fromUtf8("fit_cover"))
        self.verticalLayout.addWidget(self.fit_cover)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.previous_button = QtGui.QPushButton(BookInfo)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("previous.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.previous_button.setIcon(icon)
        self.previous_button.setObjectName(_fromUtf8("previous_button"))
        self.horizontalLayout.addWidget(self.previous_button)
        self.next_button = QtGui.QPushButton(BookInfo)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("next.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.next_button.setIcon(icon1)
        self.next_button.setObjectName(_fromUtf8("next_button"))
        self.horizontalLayout.addWidget(self.next_button)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.gridLayout.addLayout(self.verticalLayout, 1, 1, 1, 1)

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

    def retranslateUi(self, BookInfo):
        BookInfo.setWindowTitle(_("Dialog"))
        self.title.setText(_("TextLabel"))
        self.text.setText(_("TextLabel"))
        self.groupBox.setTitle(_("Comments"))
        self.fit_cover.setText(_("Fit &cover within view"))
        self.previous_button.setText(_("&Previous"))
        self.next_button.setText(_("&Next"))

from PyQt4 import QtWebKit

