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

# Form implementation generated from reading ui file 'htmledit.ui'
#
# Created: Sat Mar 29 20:59:38 2014
#      by: PyQt4 UI code generator 4.9.6
#
# 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_HtmlEdit(object):
    def setupUi(self, HtmlEdit):
        HtmlEdit.setObjectName(_fromUtf8("HtmlEdit"))
        HtmlEdit.resize(912, 643)
        self.gridLayout = QtGui.QGridLayout(HtmlEdit)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tabWidget = QtGui.QTabWidget(HtmlEdit)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.South)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tab)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.toolBar = QtGui.QToolBar(self.tab)
        self.toolBar.setOrientation(QtCore.Qt.Horizontal)
        self.toolBar.setIconSize(QtCore.QSize(32, 32))
        self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
        self.toolBar.setFloatable(False)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        self.gridLayout_2.addWidget(self.toolBar, 0, 0, 1, 1)
        self.webView = QtWebKit.QWebView(self.tab)
        self.webView.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.webView.setUrl(QtCore.QUrl(_fromUtf8("about:blank")))
        self.webView.setObjectName(_fromUtf8("webView"))
        self.gridLayout_2.addWidget(self.webView, 1, 0, 1, 1)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/page.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab, icon, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.gridLayout_3 = QtGui.QGridLayout(self.tab_2)
        self.gridLayout_3.setMargin(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.sci_edit = Qsci.QsciScintilla(self.tab_2)
        self.sci_edit.setToolTip(_fromUtf8(""))
        self.sci_edit.setWhatsThis(_fromUtf8(""))
        self.sci_edit.setFrameShape(QtGui.QFrame.NoFrame)
        self.sci_edit.setLineWidth(0)
        self.sci_edit.setObjectName(_fromUtf8("sci_edit"))
        self.gridLayout_3.addWidget(self.sci_edit, 0, 0, 1, 1)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/code.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_2, icon1, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
        self.actionOpen = QtGui.QAction(HtmlEdit)
        self.actionOpen.setIcon(icon)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionLeft = QtGui.QAction(HtmlEdit)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_align_left.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionLeft.setIcon(icon2)
        self.actionLeft.setObjectName(_fromUtf8("actionLeft"))
        self.actionJustify = QtGui.QAction(HtmlEdit)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_align_justity.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionJustify.setIcon(icon3)
        self.actionJustify.setObjectName(_fromUtf8("actionJustify"))
        self.actionRight = QtGui.QAction(HtmlEdit)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_align_right.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRight.setIcon(icon4)
        self.actionRight.setObjectName(_fromUtf8("actionRight"))
        self.actionCenter = QtGui.QAction(HtmlEdit)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_align_center.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCenter.setIcon(icon5)
        self.actionCenter.setObjectName(_fromUtf8("actionCenter"))
        self.actionClear = QtGui.QAction(HtmlEdit)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/clear_formatting.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionClear.setIcon(icon6)
        self.actionClear.setObjectName(_fromUtf8("actionClear"))
        self.actionBold = QtGui.QAction(HtmlEdit)
        self.actionBold.setCheckable(True)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_bold.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionBold.setIcon(icon7)
        self.actionBold.setObjectName(_fromUtf8("actionBold"))
        self.actionUnderline = QtGui.QAction(HtmlEdit)
        self.actionUnderline.setCheckable(True)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_underline.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionUnderline.setIcon(icon8)
        self.actionUnderline.setObjectName(_fromUtf8("actionUnderline"))
        self.actionItalic = QtGui.QAction(HtmlEdit)
        self.actionItalic.setCheckable(True)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_italic.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionItalic.setIcon(icon9)
        self.actionItalic.setObjectName(_fromUtf8("actionItalic"))
        self.actionHeader1 = QtGui.QAction(HtmlEdit)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_heading_1.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionHeader1.setIcon(icon10)
        self.actionHeader1.setObjectName(_fromUtf8("actionHeader1"))
        self.actionHeader2 = QtGui.QAction(HtmlEdit)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_heading_2.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionHeader2.setIcon(icon11)
        self.actionHeader2.setObjectName(_fromUtf8("actionHeader2"))
        self.actionHeader3 = QtGui.QAction(HtmlEdit)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_heading_3.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionHeader3.setIcon(icon12)
        self.actionHeader3.setObjectName(_fromUtf8("actionHeader3"))
        self.actionBullets = QtGui.QAction(HtmlEdit)
        self.actionBullets.setCheckable(True)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_list_bullets.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionBullets.setIcon(icon13)
        self.actionBullets.setObjectName(_fromUtf8("actionBullets"))
        self.actionNumbers = QtGui.QAction(HtmlEdit)
        self.actionNumbers.setCheckable(True)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_list_numbers.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionNumbers.setIcon(icon14)
        self.actionNumbers.setObjectName(_fromUtf8("actionNumbers"))
        self.actionTable = QtGui.QAction(HtmlEdit)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/table.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionTable.setIcon(icon15)
        self.actionTable.setObjectName(_fromUtf8("actionTable"))
        self.actionMore = QtGui.QAction(HtmlEdit)
        icon16 = QtGui.QIcon()
        icon16.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_horizontalrule.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMore.setIcon(icon16)
        self.actionMore.setObjectName(_fromUtf8("actionMore"))
        self.actionImage = QtGui.QAction(HtmlEdit)
        icon17 = QtGui.QIcon()
        icon17.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/image.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionImage.setIcon(icon17)
        self.actionImage.setObjectName(_fromUtf8("actionImage"))
        self.actionLink = QtGui.QAction(HtmlEdit)
        icon18 = QtGui.QIcon()
        icon18.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/link.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionLink.setIcon(icon18)
        self.actionLink.setObjectName(_fromUtf8("actionLink"))
        self.actionParagraph = QtGui.QAction(HtmlEdit)
        icon19 = QtGui.QIcon()
        icon19.addPixmap(QtGui.QPixmap(_fromUtf8(":/editor/text_prose.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionParagraph.setIcon(icon19)
        self.actionParagraph.setObjectName(_fromUtf8("actionParagraph"))
        self.toolBar.addAction(self.actionLeft)
        self.toolBar.addAction(self.actionCenter)
        self.toolBar.addAction(self.actionRight)
        self.toolBar.addAction(self.actionJustify)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionBold)
        self.toolBar.addAction(self.actionItalic)
        self.toolBar.addAction(self.actionUnderline)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionHeader1)
        self.toolBar.addAction(self.actionHeader2)
        self.toolBar.addAction(self.actionHeader3)
        self.toolBar.addAction(self.actionParagraph)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionBullets)
        self.toolBar.addAction(self.actionNumbers)
        self.toolBar.addAction(self.actionTable)
        self.toolBar.addAction(self.actionMore)
        self.toolBar.addAction(self.actionImage)
        self.toolBar.addAction(self.actionLink)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionClear)

        self.retranslateUi(HtmlEdit)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(HtmlEdit)

    def retranslateUi(self, HtmlEdit):
        HtmlEdit.setWindowTitle(_translate("HtmlEdit", "Form", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("HtmlEdit", "Страница", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("HtmlEdit", "HTML", None))
        self.actionOpen.setText(_translate("HtmlEdit", "Открыть", None))
        self.actionLeft.setText(_translate("HtmlEdit", "Left", None))
        self.actionJustify.setText(_translate("HtmlEdit", "Justify", None))
        self.actionJustify.setToolTip(_translate("HtmlEdit", "Justify", None))
        self.actionRight.setText(_translate("HtmlEdit", "Right", None))
        self.actionCenter.setText(_translate("HtmlEdit", "Center", None))
        self.actionClear.setText(_translate("HtmlEdit", "Clear", None))
        self.actionBold.setText(_translate("HtmlEdit", "Bold", None))
        self.actionUnderline.setText(_translate("HtmlEdit", "Underline", None))
        self.actionItalic.setText(_translate("HtmlEdit", "Italic", None))
        self.actionHeader1.setText(_translate("HtmlEdit", "Header1", None))
        self.actionHeader2.setText(_translate("HtmlEdit", "Header2", None))
        self.actionHeader3.setText(_translate("HtmlEdit", "Header3", None))
        self.actionBullets.setText(_translate("HtmlEdit", "Bullets", None))
        self.actionNumbers.setText(_translate("HtmlEdit", "Numbers", None))
        self.actionTable.setText(_translate("HtmlEdit", "Table", None))
        self.actionMore.setText(_translate("HtmlEdit", "More", None))
        self.actionImage.setText(_translate("HtmlEdit", "Image", None))
        self.actionLink.setText(_translate("HtmlEdit", "Link", None))
        self.actionParagraph.setText(_translate("HtmlEdit", "Paragraph", None))

from PyQt4 import Qsci
from PyQt4 import QtWebKit
import icons_rc

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    HtmlEdit = QtGui.QWidget()
    ui = Ui_HtmlEdit()
    ui.setupUi(HtmlEdit)
    HtmlEdit.show()
    sys.exit(app.exec_())

