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

# Form implementation generated from reading ui file 'templater.ui'
#
# Created: Mon May 05 16:11:29 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_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.setWindowModality(QtCore.Qt.ApplicationModal)
        Dialog.resize(808, 559)
        self.gridLayout = QtGui.QGridLayout(Dialog)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.amount_sb = QtGui.QSpinBox(Dialog)
        self.amount_sb.setMinimum(1)
        self.amount_sb.setMaximum(100000)
        self.amount_sb.setProperty("value", 10)
        self.amount_sb.setObjectName(_fromUtf8("amount_sb"))
        self.gridLayout.addWidget(self.amount_sb, 1, 1, 1, 1)
        self.preview_pb = QtGui.QPushButton(Dialog)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/preview_results.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.preview_pb.setIcon(icon)
        self.preview_pb.setObjectName(_fromUtf8("preview_pb"))
        self.gridLayout.addWidget(self.preview_pb, 1, 3, 1, 1)
        self.gen_pb = QtGui.QPushButton(Dialog)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/cog_go.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.gen_pb.setIcon(icon1)
        self.gen_pb.setObjectName(_fromUtf8("gen_pb"))
        self.gridLayout.addWidget(self.gen_pb, 1, 4, 1, 1)
        self.label = QtGui.QLabel(Dialog)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.splitter = QtGui.QSplitter(Dialog)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.frame_2 = QtGui.QFrame(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(5)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.gridLayout_3 = QtGui.QGridLayout(self.frame_2)
        self.gridLayout_3.setMargin(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.label_4 = QtGui.QLabel(self.frame_2)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 1)
        self.label_5 = QtGui.QLabel(self.frame_2)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout_3.addWidget(self.label_5, 1, 0, 1, 1)
        self.cat_le = SingleLinePlainText(self.frame_2)
        self.cat_le.setObjectName(_fromUtf8("cat_le"))
        self.gridLayout_3.addWidget(self.cat_le, 1, 1, 1, 1)
        self.label_6 = QtGui.QLabel(self.frame_2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout_3.addWidget(self.label_6, 1, 2, 1, 1)
        self.tags_le = SingleLinePlainText(self.frame_2)
        self.tags_le.setObjectName(_fromUtf8("tags_le"))
        self.gridLayout_3.addWidget(self.tags_le, 1, 3, 1, 1)
        self.editor_sc = Qsci.QsciScintilla(self.frame_2)
        self.editor_sc.setToolTip(_fromUtf8(""))
        self.editor_sc.setWhatsThis(_fromUtf8(""))
        self.editor_sc.setObjectName(_fromUtf8("editor_sc"))
        self.gridLayout_3.addWidget(self.editor_sc, 2, 0, 1, 4)
        self.title_le = SingleLinePlainText(self.frame_2)
        self.title_le.setObjectName(_fromUtf8("title_le"))
        self.gridLayout_3.addWidget(self.title_le, 0, 1, 1, 3)
        self.gridLayout.addWidget(self.splitter, 0, 0, 1, 5)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 1, 2, 1, 1)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.title_le, self.cat_le)
        Dialog.setTabOrder(self.cat_le, self.tags_le)
        Dialog.setTabOrder(self.tags_le, self.editor_sc)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(_translate("Dialog", "Генератор текстов", None))
        self.preview_pb.setText(_translate("Dialog", "Просмотр", None))
        self.gen_pb.setText(_translate("Dialog", "Генерация", None))
        self.label.setText(_translate("Dialog", "Количество документов", None))
        self.label_4.setText(_translate("Dialog", "Заголовок", None))
        self.label_5.setText(_translate("Dialog", "Категория", None))
        self.cat_le.setPlainText(_translate("Dialog", "Новости", None))
        self.label_6.setText(_translate("Dialog", "Метки", None))
        self.tags_le.setPlainText(_translate("Dialog", "{{ [\"мир\",\"война\",\"остальное\"]|choice }}", None))
        self.title_le.setPlainText(_translate("Dialog", "Привет Мир!", None))

from PyQt4 import Qsci
from singlelineplaintext import SingleLinePlainText
import icons_rc

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    Dialog = QtGui.QDialog()
    ui = Ui_Dialog()
    ui.setupUi(Dialog)
    Dialog.show()
    sys.exit(app.exec_())

