Logo Search packages:      
Sourcecode: videoporama version File versions  Download package

lot.py

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

## This file is part of Videoporama
# Videoporama is a program to make diaporama export in video file
# Copyright (C) 2007-2010  Olivier Ponchaut <opvg@numericable.be> - Dominique Levray

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

# Form implementation generated from reading ui file 'lot.ui'
#
# Created: Sat Jul 17 14:36:02 2010
#      by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

00030 class Ui_lot(object):
    def setupUi(self, lot):
        lot.setObjectName("lot")
        lot.resize(740, 352)
        lot.setAccessibleName("")
        self.buttonBox = QtGui.QDialogButtonBox(lot)
        self.buttonBox.setGeometry(QtCore.QRect(564, 317, 171, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.groupBox_3 = QtGui.QGroupBox(lot)
        self.groupBox_3.setGeometry(QtCore.QRect(339, 60, 396, 121))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setMinimumSize(QtCore.QSize(0, 0))
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_3)
        self.gridLayout_3.setMargin(1)
        self.gridLayout_3.setSpacing(2)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_3 = QtGui.QLabel(self.groupBox_3)
        self.label_3.setObjectName("label_3")
        self.gridLayout_3.addWidget(self.label_3, 0, 1, 1, 1)
        self.time = QtGui.QSpinBox(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.time.sizePolicy().hasHeightForWidth())
        self.time.setSizePolicy(sizePolicy)
        self.time.setMinimumSize(QtCore.QSize(0, 26))
        self.time.setMinimum(1)
        self.time.setObjectName("time")
        self.gridLayout_3.addWidget(self.time, 0, 2, 1, 1)
        self.label_4 = QtGui.QLabel(self.groupBox_3)
        self.label_4.setObjectName("label_4")
        self.gridLayout_3.addWidget(self.label_4, 1, 1, 1, 1)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.bgfile = QtGui.QLineEdit(self.groupBox_3)
        self.bgfile.setMinimumSize(QtCore.QSize(0, 26))
        self.bgfile.setObjectName("bgfile")
        self.horizontalLayout_4.addWidget(self.bgfile)
        self.bgfilea = QtGui.QToolButton(self.groupBox_3)
        self.bgfilea.setObjectName("bgfilea")
        self.horizontalLayout_4.addWidget(self.bgfilea)
        self.gridLayout_3.addLayout(self.horizontalLayout_4, 1, 2, 1, 1)
        self.label_5 = QtGui.QLabel(self.groupBox_3)
        self.label_5.setObjectName("label_5")
        self.gridLayout_3.addWidget(self.label_5, 2, 1, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.bgcolor = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.bgcolor.sizePolicy().hasHeightForWidth())
        self.bgcolor.setSizePolicy(sizePolicy)
        self.bgcolor.setMinimumSize(QtCore.QSize(0, 26))
        self.bgcolor.setObjectName("bgcolor")
        self.horizontalLayout_3.addWidget(self.bgcolor)
        self.bgcolora = QtGui.QToolButton(self.groupBox_3)
        self.bgcolora.setObjectName("bgcolora")
        self.horizontalLayout_3.addWidget(self.bgcolora)
        self.gridLayout_3.addLayout(self.horizontalLayout_3, 2, 2, 1, 1)
        self.checkBox_time = QtGui.QCheckBox(self.groupBox_3)
        self.checkBox_time.setText("")
        self.checkBox_time.setObjectName("checkBox_time")
        self.gridLayout_3.addWidget(self.checkBox_time, 0, 0, 1, 1)
        self.checkBox_bgfile = QtGui.QCheckBox(self.groupBox_3)
        self.checkBox_bgfile.setText("")
        self.checkBox_bgfile.setObjectName("checkBox_bgfile")
        self.gridLayout_3.addWidget(self.checkBox_bgfile, 1, 0, 1, 1)
        self.checkBox_bgcolor = QtGui.QCheckBox(self.groupBox_3)
        self.checkBox_bgcolor.setText("")
        self.checkBox_bgcolor.setObjectName("checkBox_bgcolor")
        self.gridLayout_3.addWidget(self.checkBox_bgcolor, 2, 0, 1, 1)
        self.groupBox_4 = QtGui.QGroupBox(lot)
        self.groupBox_4.setGeometry(QtCore.QRect(340, 186, 396, 121))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth())
        self.groupBox_4.setSizePolicy(sizePolicy)
        self.groupBox_4.setMinimumSize(QtCore.QSize(0, 0))
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_4)
        self.gridLayout_2.setMargin(1)
        self.gridLayout_2.setSpacing(2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_10 = QtGui.QLabel(self.groupBox_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 0, 1, 1, 1)
        self.speedt = QtGui.QComboBox(self.groupBox_4)
        self.speedt.setMinimumSize(QtCore.QSize(0, 26))
        self.speedt.setObjectName("speedt")
        self.speedt.addItem("")
        self.speedt.addItem("")
        self.speedt.addItem("")
        self.speedt.addItem("")
        self.speedt.addItem("")
        self.speedt.addItem("")
        self.gridLayout_2.addWidget(self.speedt, 0, 2, 1, 1)
        self.label_6 = QtGui.QLabel(self.groupBox_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 1, 1, 1, 1)
        self.typet = QtGui.QComboBox(self.groupBox_4)
        self.typet.setMinimumSize(QtCore.QSize(0, 26))
        self.typet.setObjectName("typet")
        self.gridLayout_2.addWidget(self.typet, 1, 2, 1, 1)
        self.label_7 = QtGui.QLabel(self.groupBox_4)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 2, 1, 1, 1)
        self.transiopt = QtGui.QComboBox(self.groupBox_4)
        self.transiopt.setMinimumSize(QtCore.QSize(0, 26))
        self.transiopt.setObjectName("transiopt")
        self.gridLayout_2.addWidget(self.transiopt, 2, 2, 1, 1)
        self.checkBox_speedt = QtGui.QCheckBox(self.groupBox_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.checkBox_speedt.sizePolicy().hasHeightForWidth())
        self.checkBox_speedt.setSizePolicy(sizePolicy)
        self.checkBox_speedt.setText("")
        self.checkBox_speedt.setObjectName("checkBox_speedt")
        self.gridLayout_2.addWidget(self.checkBox_speedt, 0, 0, 1, 1)
        self.checkBox_typet = QtGui.QCheckBox(self.groupBox_4)
        self.checkBox_typet.setText("")
        self.checkBox_typet.setObjectName("checkBox_typet")
        self.gridLayout_2.addWidget(self.checkBox_typet, 1, 0, 1, 1)
        self.groupBox = QtGui.QGroupBox(lot)
        self.groupBox.setGeometry(QtCore.QRect(340, 10, 391, 51))
        self.groupBox.setObjectName("groupBox")
        self.fromc = QtGui.QSpinBox(self.groupBox)
        self.fromc.setGeometry(QtCore.QRect(154, 20, 81, 25))
        self.fromc.setMinimum(1)
        self.fromc.setObjectName("fromc")
        self.toc = QtGui.QSpinBox(self.groupBox)
        self.toc.setGeometry(QtCore.QRect(311, 20, 81, 25))
        self.toc.setMinimum(1)
        self.toc.setObjectName("toc")
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setGeometry(QtCore.QRect(67, 22, 81, 19))
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName("label_2")
        self.label_8 = QtGui.QLabel(self.groupBox)
        self.label_8.setGeometry(QtCore.QRect(276, 22, 31, 20))
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName("label_8")
        self.groupBox_2 = QtGui.QGroupBox(lot)
        self.groupBox_2.setGeometry(QtCore.QRect(4, 10, 331, 297))
        self.groupBox_2.setObjectName("groupBox_2")
        self.removeLine = QtGui.QToolButton(self.groupBox_2)
        self.removeLine.setGeometry(QtCore.QRect(100, 263, 30, 28))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("icons/pencil_delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.removeLine.setIcon(icon)
        self.removeLine.setObjectName("removeLine")
        self.updateLine = QtGui.QToolButton(self.groupBox_2)
        self.updateLine.setGeometry(QtCore.QRect(40, 263, 30, 28))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("icons/pencil.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.updateLine.setIcon(icon1)
        self.updateLine.setObjectName("updateLine")
        self.empty = QtGui.QToolButton(self.groupBox_2)
        self.empty.setGeometry(QtCore.QRect(70, 263, 30, 28))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("icons/bin.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.empty.setIcon(icon2)
        self.empty.setObjectName("empty")
        self.validLine = QtGui.QToolButton(self.groupBox_2)
        self.validLine.setGeometry(QtCore.QRect(10, 263, 30, 28))
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("icons/pencil_add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.validLine.setIcon(icon3)
        self.validLine.setObjectName("validLine")
        self.tableImage = QtGui.QTableWidget(self.groupBox_2)
        self.tableImage.setGeometry(QtCore.QRect(10, 20, 311, 241))
        self.tableImage.setObjectName("tableImage")
        self.tableImage.setColumnCount(3)
        self.tableImage.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.tableImage.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tableImage.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tableImage.setHorizontalHeaderItem(2, item)
        self.line = QtGui.QFrame(lot)
        self.line.setGeometry(QtCore.QRect(0, 303, 751, 20))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.HelpBt = QtGui.QPushButton(lot)
        self.HelpBt.setGeometry(QtCore.QRect(470, 320, 88, 27))
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap("icons/Help.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.HelpBt.setIcon(icon4)
        self.HelpBt.setObjectName("HelpBt")

        self.retranslateUi(lot)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), lot.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), lot.reject)
        QtCore.QMetaObject.connectSlotsByName(lot)

    def retranslateUi(self, lot):
        lot.setWindowTitle(QtGui.QApplication.translate("lot", "Option by lot", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_3.setTitle(QtGui.QApplication.translate("lot", "Image", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("lot", "Time display :", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("lot", "Background file :", None, QtGui.QApplication.UnicodeUTF8))
        self.bgfilea.setToolTip(QtGui.QApplication.translate("lot", "Add background file", None, QtGui.QApplication.UnicodeUTF8))
        self.bgfilea.setText(QtGui.QApplication.translate("lot", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("lot", "Background color :", None, QtGui.QApplication.UnicodeUTF8))
        self.bgcolora.setToolTip(QtGui.QApplication.translate("lot", "Add background color", None, QtGui.QApplication.UnicodeUTF8))
        self.bgcolora.setText(QtGui.QApplication.translate("lot", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_4.setTitle(QtGui.QApplication.translate("lot", "Transition", None, QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(QtGui.QApplication.translate("lot", "Transition speed :", None, QtGui.QApplication.UnicodeUTF8))
        self.speedt.setItemText(0, QtGui.QApplication.translate("lot", "Very slow", None, QtGui.QApplication.UnicodeUTF8))
        self.speedt.setItemText(1, QtGui.QApplication.translate("lot", "Slow", None, QtGui.QApplication.UnicodeUTF8))
        self.speedt.setItemText(2, QtGui.QApplication.translate("lot", "Medium", None, QtGui.QApplication.UnicodeUTF8))
        self.speedt.setItemText(3, QtGui.QApplication.translate("lot", "Medium+", None, QtGui.QApplication.UnicodeUTF8))
        self.speedt.setItemText(4, QtGui.QApplication.translate("lot", "Fast", None, QtGui.QApplication.UnicodeUTF8))
        self.speedt.setItemText(5, QtGui.QApplication.translate("lot", "Very fast", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("lot", "Transition type :", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("lot", "Transition option :", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("lot", "Define range", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("lot", "From :", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("lot", "To :", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("lot", "List image to configure", None, QtGui.QApplication.UnicodeUTF8))
        self.removeLine.setToolTip(QtGui.QApplication.translate("lot", "Delete selected line", None, QtGui.QApplication.UnicodeUTF8))
        self.removeLine.setText(QtGui.QApplication.translate("lot", "Delete", None, QtGui.QApplication.UnicodeUTF8))
        self.updateLine.setToolTip(QtGui.QApplication.translate("lot", "Update selected line", None, QtGui.QApplication.UnicodeUTF8))
        self.updateLine.setText(QtGui.QApplication.translate("lot", "Update selected line", None, QtGui.QApplication.UnicodeUTF8))
        self.empty.setToolTip(QtGui.QApplication.translate("lot", "Empty table", None, QtGui.QApplication.UnicodeUTF8))
        self.empty.setText(QtGui.QApplication.translate("lot", "Empty table", None, QtGui.QApplication.UnicodeUTF8))
        self.validLine.setToolTip(QtGui.QApplication.translate("lot", "Add new line", None, QtGui.QApplication.UnicodeUTF8))
        self.validLine.setText(QtGui.QApplication.translate("lot", "Add new line", None, QtGui.QApplication.UnicodeUTF8))
        self.tableImage.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("lot", "From", None, QtGui.QApplication.UnicodeUTF8))
        self.tableImage.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("lot", "To", None, QtGui.QApplication.UnicodeUTF8))
        self.tableImage.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("lot", "Options", None, QtGui.QApplication.UnicodeUTF8))
        self.HelpBt.setText(QtGui.QApplication.translate("lot", "&Help", None, QtGui.QApplication.UnicodeUTF8))


Generated by  Doxygen 1.6.0   Back to index