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

# Form implementation generated from reading ui file 'document.ui'
#
# Created: Mon Apr 28 08:30:53 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_DocumentWindow(object):
    def setupUi(self, DocumentWindow):
        DocumentWindow.setObjectName(_fromUtf8("DocumentWindow"))
        DocumentWindow.setWindowModality(QtCore.Qt.ApplicationModal)
        DocumentWindow.resize(956, 660)
        self.centralwidget = QtGui.QWidget(DocumentWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.frame = QtGui.QFrame(self.centralwidget)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.gridLayout_2 = QtGui.QGridLayout(self.frame)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label = QtGui.QLabel(self.frame)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_2.addWidget(self.label, 0, 2, 1, 1)
        self.label_3 = QtGui.QLabel(self.frame)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
        self.title_le = QtGui.QLineEdit(self.frame)
        self.title_le.setObjectName(_fromUtf8("title_le"))
        self.gridLayout_2.addWidget(self.title_le, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.frame)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
        self.date_de = MyDateTimeEdit(self.frame)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/update.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.date_de.setIcon(icon)
        self.date_de.setObjectName(_fromUtf8("date_de"))
        self.gridLayout_2.addWidget(self.date_de, 0, 3, 1, 1)
        self.label_4 = QtGui.QLabel(self.frame)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_2.addWidget(self.label_4, 1, 2, 1, 1)
        self.state_cb = QtGui.QCheckBox(self.frame)
        self.state_cb.setMinimumSize(QtCore.QSize(97, 0))
        self.state_cb.setCheckable(True)
        self.state_cb.setChecked(True)
        self.state_cb.setTristate(True)
        self.state_cb.setObjectName(_fromUtf8("state_cb"))
        self.gridLayout_2.addWidget(self.state_cb, 0, 4, 1, 1)
        self.tags_le = CompleterLineEdit(self.frame)
        self.tags_le.setObjectName(_fromUtf8("tags_le"))
        self.gridLayout_2.addWidget(self.tags_le, 1, 1, 1, 1)
        self.cat_le = CompleterLineEdit(self.frame)
        self.cat_le.setObjectName(_fromUtf8("cat_le"))
        self.gridLayout_2.addWidget(self.cat_le, 1, 3, 1, 2)
        self.gridLayout.addWidget(self.frame, 0, 0, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 1, 0, 1, 1)
        DocumentWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(DocumentWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        DocumentWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(DocumentWindow)
        self.toolBar.setIconSize(QtCore.QSize(32, 32))
        self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        DocumentWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionSave = QtGui.QAction(DocumentWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/disk.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave.setIcon(icon1)
        self.actionSave.setObjectName(_fromUtf8("actionSave"))
        self.actionImageUpload = QtGui.QAction(DocumentWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/image_link.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionImageUpload.setIcon(icon2)
        self.actionImageUpload.setObjectName(_fromUtf8("actionImageUpload"))
        self.actionRewriter = QtGui.QAction(DocumentWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/emotion_spy.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRewriter.setIcon(icon3)
        self.actionRewriter.setObjectName(_fromUtf8("actionRewriter"))
        self.toolBar.addAction(self.actionSave)
        self.toolBar.addAction(self.actionRewriter)

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

    def retranslateUi(self, DocumentWindow):
        DocumentWindow.setWindowTitle(_translate("DocumentWindow", "Документ", None))
        self.label.setText(_translate("DocumentWindow", "Дата публикации", None))
        self.label_3.setText(_translate("DocumentWindow", "Метки", None))
        self.label_2.setText(_translate("DocumentWindow", "Заголовок", None))
        self.label_4.setText(_translate("DocumentWindow", "Категория", None))
        self.state_cb.setText(_translate("DocumentWindow", "Опубликовано", None))
        self.toolBar.setWindowTitle(_translate("DocumentWindow", "Инструменты", None))
        self.actionSave.setText(_translate("DocumentWindow", "Сохранить", None))
        self.actionImageUpload.setText(_translate("DocumentWindow", "Выгрузить", None))
        self.actionImageUpload.setToolTip(_translate("DocumentWindow", "Выгрузить изображения на сервер", None))
        self.actionRewriter.setText(_translate("DocumentWindow", "Рерайтер", None))

from completerlineedit import CompleterLineEdit
from mydatetime import MyDateTimeEdit
import icons_rc

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    DocumentWindow = QtGui.QMainWindow()
    ui = Ui_DocumentWindow()
    ui.setupUi(DocumentWindow)
    DocumentWindow.show()
    sys.exit(app.exec_())

