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

# Form implementation generated from reading ui file '/work/a/ports/deskutils/calibre/work/calibre/src/calibre/gui2/viewer/main.ui'
#
# Created: Mon Feb 22 19:36:47 2010
#      by: PyQt4 UI code generator 4.7
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_EbookViewer(object):
    def setupUi(self, EbookViewer):
        EbookViewer.setObjectName("EbookViewer")
        EbookViewer.resize(653, 672)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(I("viewer.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        EbookViewer.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(EbookViewer)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.splitter = QtGui.QSplitter(self.centralwidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.toc = QtGui.QTreeView(self.splitter)
        self.toc.setObjectName("toc")
        self.frame = QtGui.QFrame(self.splitter)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout = QtGui.QGridLayout(self.frame)
        self.gridLayout.setObjectName("gridLayout")
        self.view = DocumentView(self.frame)
        self.view.setObjectName("view")
        self.gridLayout.addWidget(self.view, 0, 0, 1, 1)
        self.vertical_scrollbar = QtGui.QScrollBar(self.frame)
        self.vertical_scrollbar.setOrientation(QtCore.Qt.Vertical)
        self.vertical_scrollbar.setObjectName("vertical_scrollbar")
        self.gridLayout.addWidget(self.vertical_scrollbar, 0, 1, 1, 1)
        self.horizontal_scrollbar = QtGui.QScrollBar(self.frame)
        self.horizontal_scrollbar.setOrientation(QtCore.Qt.Horizontal)
        self.horizontal_scrollbar.setObjectName("horizontal_scrollbar")
        self.gridLayout.addWidget(self.horizontal_scrollbar, 1, 0, 1, 1)
        self.gridLayout_2.addWidget(self.splitter, 0, 0, 1, 1)
        EbookViewer.setCentralWidget(self.centralwidget)
        self.tool_bar = QtGui.QToolBar(EbookViewer)
        self.tool_bar.setIconSize(QtCore.QSize(32, 32))
        self.tool_bar.setObjectName("tool_bar")
        EbookViewer.addToolBar(QtCore.Qt.LeftToolBarArea, self.tool_bar)
        self.tool_bar2 = QtGui.QToolBar(EbookViewer)
        self.tool_bar2.setObjectName("tool_bar2")
        EbookViewer.addToolBar(QtCore.Qt.TopToolBarArea, self.tool_bar2)
        self.action_back = QtGui.QAction(EbookViewer)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(I("back.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_back.setIcon(icon1)
        self.action_back.setObjectName("action_back")
        self.action_forward = QtGui.QAction(EbookViewer)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(I("forward.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_forward.setIcon(icon2)
        self.action_forward.setObjectName("action_forward")
        self.action_next_page = QtGui.QAction(EbookViewer)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(I("next.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_next_page.setIcon(icon3)
        self.action_next_page.setObjectName("action_next_page")
        self.action_previous_page = QtGui.QAction(EbookViewer)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(I("previous.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_previous_page.setIcon(icon4)
        self.action_previous_page.setObjectName("action_previous_page")
        self.action_font_size_larger = QtGui.QAction(EbookViewer)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(I("font_size_larger.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_font_size_larger.setIcon(icon5)
        self.action_font_size_larger.setObjectName("action_font_size_larger")
        self.action_font_size_smaller = QtGui.QAction(EbookViewer)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(I("font_size_smaller.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_font_size_smaller.setIcon(icon6)
        self.action_font_size_smaller.setObjectName("action_font_size_smaller")
        self.action_table_of_contents = QtGui.QAction(EbookViewer)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(I("chapters.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_table_of_contents.setIcon(icon7)
        self.action_table_of_contents.setObjectName("action_table_of_contents")
        self.action_metadata = QtGui.QAction(EbookViewer)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(I("dialog_information.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_metadata.setIcon(icon8)
        self.action_metadata.setObjectName("action_metadata")
        self.action_open_ebook = QtGui.QAction(EbookViewer)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(I("document_open.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_open_ebook.setIcon(icon9)
        self.action_open_ebook.setObjectName("action_open_ebook")
        self.action_find_next = QtGui.QAction(EbookViewer)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(I("arrow-down.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_find_next.setIcon(icon10)
        self.action_find_next.setObjectName("action_find_next")
        self.action_copy = QtGui.QAction(EbookViewer)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(I("convert.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_copy.setIcon(icon11)
        self.action_copy.setObjectName("action_copy")
        self.action_preferences = QtGui.QAction(EbookViewer)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(I("config.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_preferences.setIcon(icon12)
        self.action_preferences.setObjectName("action_preferences")
        self.action_reference_mode = QtGui.QAction(EbookViewer)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(I("lookfeel.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_reference_mode.setIcon(icon13)
        self.action_reference_mode.setObjectName("action_reference_mode")
        self.action_bookmark = QtGui.QAction(EbookViewer)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap(I("bookmarks.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_bookmark.setIcon(icon14)
        self.action_bookmark.setObjectName("action_bookmark")
        self.action_full_screen = QtGui.QAction(EbookViewer)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(I("page.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_full_screen.setIcon(icon15)
        self.action_full_screen.setObjectName("action_full_screen")
        self.action_print = QtGui.QAction(EbookViewer)
        icon16 = QtGui.QIcon()
        icon16.addPixmap(QtGui.QPixmap(I("print.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_print.setIcon(icon16)
        self.action_print.setObjectName("action_print")
        self.tool_bar.addAction(self.action_back)
        self.tool_bar.addAction(self.action_forward)
        self.tool_bar.addSeparator()
        self.tool_bar.addAction(self.action_open_ebook)
        self.tool_bar.addAction(self.action_copy)
        self.tool_bar.addAction(self.action_font_size_larger)
        self.tool_bar.addAction(self.action_font_size_smaller)
        self.tool_bar.addAction(self.action_table_of_contents)
        self.tool_bar.addAction(self.action_metadata)
        self.tool_bar.addSeparator()
        self.tool_bar.addAction(self.action_previous_page)
        self.tool_bar.addAction(self.action_next_page)
        self.tool_bar.addSeparator()
        self.tool_bar.addAction(self.action_bookmark)
        self.tool_bar.addAction(self.action_reference_mode)
        self.tool_bar.addSeparator()
        self.tool_bar.addAction(self.action_preferences)
        self.tool_bar.addAction(self.action_full_screen)
        self.tool_bar.addSeparator()
        self.tool_bar.addAction(self.action_print)
        self.tool_bar2.addAction(self.action_find_next)

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

    def retranslateUi(self, EbookViewer):
        EbookViewer.setWindowTitle(_("Ebook Viewer"))
        self.tool_bar.setWindowTitle(_("toolBar"))
        self.action_back.setText(_("Back"))
        self.action_forward.setText(_("Forward"))
        self.action_next_page.setText(_("Next page"))
        self.action_previous_page.setText(_("Previous page"))
        self.action_font_size_larger.setText(_("Font size larger"))
        self.action_font_size_smaller.setText(_("Font size smaller"))
        self.action_table_of_contents.setText(_("Table of Contents"))
        self.action_metadata.setText(_("Metadata"))
        self.action_open_ebook.setText(_("Open ebook"))
        self.action_find_next.setText(_("Find next"))
        self.action_copy.setText(_("Copy to clipboard"))
        self.action_preferences.setText(_("Preferences"))
        self.action_reference_mode.setText(_("Reference Mode"))
        self.action_bookmark.setText(_("Bookmark"))
        self.action_full_screen.setText(_("Toggle full screen"))
        self.action_print.setText(_("Print"))





from calibre.gui2.viewer.documentview import DocumentView