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

# Form implementation generated from reading ui file 'gallery.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_GalleryDialog(object):
    def setupUi(self, GalleryDialog):
        GalleryDialog.setObjectName(_fromUtf8("GalleryDialog"))
        GalleryDialog.setWindowModality(QtCore.Qt.ApplicationModal)
        GalleryDialog.resize(854, 566)
        self.gridLayout = QtGui.QGridLayout(GalleryDialog)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.toolBar = QtGui.QToolBar(GalleryDialog)
        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.addWidget(self.toolBar, 0, 0, 1, 1)
        self.images_view = QtGui.QListView(GalleryDialog)
        self.images_view.setDragEnabled(True)
        self.images_view.setDragDropMode(QtGui.QAbstractItemView.NoDragDrop)
        self.images_view.setMovement(QtGui.QListView.Static)
        self.images_view.setResizeMode(QtGui.QListView.Adjust)
        self.images_view.setSpacing(10)
        self.images_view.setGridSize(QtCore.QSize(256, 256))
        self.images_view.setViewMode(QtGui.QListView.IconMode)
        self.images_view.setUniformItemSizes(True)
        self.images_view.setObjectName(_fromUtf8("images_view"))
        self.gridLayout.addWidget(self.images_view, 1, 0, 1, 1)
        self.actionImport = QtGui.QAction(GalleryDialog)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/add.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionImport.setIcon(icon)
        self.actionImport.setObjectName(_fromUtf8("actionImport"))
        self.actionRemove = QtGui.QAction(GalleryDialog)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/delete.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove.setIcon(icon1)
        self.actionRemove.setObjectName(_fromUtf8("actionRemove"))
        self.toolBar.addAction(self.actionImport)
        self.toolBar.addAction(self.actionRemove)

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

    def retranslateUi(self, GalleryDialog):
        GalleryDialog.setWindowTitle(_translate("GalleryDialog", "Изображения", None))
        self.actionImport.setText(_translate("GalleryDialog", "Import", None))
        self.actionRemove.setText(_translate("GalleryDialog", "Remove", None))

import icons_rc

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

