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

DefText.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 'DefText.ui'
#
# Created: Sat Jul 17 14:19:23 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_DefTextDlg(object):
    def setupUi(self, DefTextDlg):
        DefTextDlg.setObjectName("DefTextDlg")
        DefTextDlg.resize(815, 452)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DefTextDlg.sizePolicy().hasHeightForWidth())
        DefTextDlg.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(9)
        DefTextDlg.setFont(font)
        self.verticalLayout_2 = QtGui.QVBoxLayout(DefTextDlg)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setMargin(2)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setSpacing(0)
        self.horizontalLayout_10.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.addText = QtGui.QToolButton(DefTextDlg)
        self.addText.setAccessibleDescription("")
        self.addText.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("icons/add_text.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.addText.setIcon(icon)
        self.addText.setObjectName("addText")
        self.horizontalLayout_10.addWidget(self.addText)
        self.RemoveText = QtGui.QToolButton(DefTextDlg)
        self.RemoveText.setAccessibleDescription("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("icons/delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.RemoveText.setIcon(icon1)
        self.RemoveText.setObjectName("RemoveText")
        self.horizontalLayout_10.addWidget(self.RemoveText)
        self.spacer_7 = QtGui.QLabel(DefTextDlg)
        self.spacer_7.setText("")
        self.spacer_7.setObjectName("spacer_7")
        self.horizontalLayout_10.addWidget(self.spacer_7)
        self.PosX = QtGui.QLabel(DefTextDlg)
        self.PosX.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.PosX.setObjectName("PosX")
        self.horizontalLayout_10.addWidget(self.PosX)
        self.PosXEd = QtGui.QDoubleSpinBox(DefTextDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.PosXEd.sizePolicy().hasHeightForWidth())
        self.PosXEd.setSizePolicy(sizePolicy)
        self.PosXEd.setMinimumSize(QtCore.QSize(64, 24))
        self.PosXEd.setMaximumSize(QtCore.QSize(64, 24))
        self.PosXEd.setObjectName("PosXEd")
        self.horizontalLayout_10.addWidget(self.PosXEd)
        self.PosXLabel = QtGui.QLabel(DefTextDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.PosXLabel.sizePolicy().hasHeightForWidth())
        self.PosXLabel.setSizePolicy(sizePolicy)
        self.PosXLabel.setMinimumSize(QtCore.QSize(64, 0))
        self.PosXLabel.setMaximumSize(QtCore.QSize(64, 16777215))
        self.PosXLabel.setObjectName("PosXLabel")
        self.horizontalLayout_10.addWidget(self.PosXLabel)
        self.spacer = QtGui.QLabel(DefTextDlg)
        self.spacer.setText("")
        self.spacer.setObjectName("spacer")
        self.horizontalLayout_10.addWidget(self.spacer)
        self.PosY = QtGui.QLabel(DefTextDlg)
        self.PosY.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.PosY.setObjectName("PosY")
        self.horizontalLayout_10.addWidget(self.PosY)
        self.PosYEd = QtGui.QDoubleSpinBox(DefTextDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.PosYEd.sizePolicy().hasHeightForWidth())
        self.PosYEd.setSizePolicy(sizePolicy)
        self.PosYEd.setMinimumSize(QtCore.QSize(64, 24))
        self.PosYEd.setMaximumSize(QtCore.QSize(64, 24))
        self.PosYEd.setObjectName("PosYEd")
        self.horizontalLayout_10.addWidget(self.PosYEd)
        self.PosYLabel = QtGui.QLabel(DefTextDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.PosYLabel.sizePolicy().hasHeightForWidth())
        self.PosYLabel.setSizePolicy(sizePolicy)
        self.PosYLabel.setMinimumSize(QtCore.QSize(64, 0))
        self.PosYLabel.setMaximumSize(QtCore.QSize(64, 16777215))
        self.PosYLabel.setObjectName("PosYLabel")
        self.horizontalLayout_10.addWidget(self.PosYLabel)
        self.spacer_4 = QtGui.QLabel(DefTextDlg)
        self.spacer_4.setText("")
        self.spacer_4.setObjectName("spacer_4")
        self.horizontalLayout_10.addWidget(self.spacer_4)
        self.Width = QtGui.QLabel(DefTextDlg)
        self.Width.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.Width.setObjectName("Width")
        self.horizontalLayout_10.addWidget(self.Width)
        self.WidthEd = QtGui.QDoubleSpinBox(DefTextDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.WidthEd.sizePolicy().hasHeightForWidth())
        self.WidthEd.setSizePolicy(sizePolicy)
        self.WidthEd.setMinimumSize(QtCore.QSize(64, 24))
        self.WidthEd.setMaximumSize(QtCore.QSize(64, 24))
        self.WidthEd.setObjectName("WidthEd")
        self.horizontalLayout_10.addWidget(self.WidthEd)
        self.WidthLabel = QtGui.QLabel(DefTextDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.WidthLabel.sizePolicy().hasHeightForWidth())
        self.WidthLabel.setSizePolicy(sizePolicy)
        self.WidthLabel.setMinimumSize(QtCore.QSize(64, 0))
        self.WidthLabel.setMaximumSize(QtCore.QSize(64, 16777215))
        self.WidthLabel.setObjectName("WidthLabel")
        self.horizontalLayout_10.addWidget(self.WidthLabel)
        self.spacer_5 = QtGui.QLabel(DefTextDlg)
        self.spacer_5.setText("")
        self.spacer_5.setObjectName("spacer_5")
        self.horizontalLayout_10.addWidget(self.spacer_5)
        self.Height = QtGui.QLabel(DefTextDlg)
        self.Height.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.Height.setObjectName("Height")
        self.horizontalLayout_10.addWidget(self.Height)
        self.HeightEd = QtGui.QDoubleSpinBox(DefTextDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.HeightEd.sizePolicy().hasHeightForWidth())
        self.HeightEd.setSizePolicy(sizePolicy)
        self.HeightEd.setMinimumSize(QtCore.QSize(64, 24))
        self.HeightEd.setMaximumSize(QtCore.QSize(64, 24))
        self.HeightEd.setObjectName("HeightEd")
        self.horizontalLayout_10.addWidget(self.HeightEd)
        self.HeightLabel = QtGui.QLabel(DefTextDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.HeightLabel.sizePolicy().hasHeightForWidth())
        self.HeightLabel.setSizePolicy(sizePolicy)
        self.HeightLabel.setMinimumSize(QtCore.QSize(64, 0))
        self.HeightLabel.setMaximumSize(QtCore.QSize(64, 16777215))
        self.HeightLabel.setObjectName("HeightLabel")
        self.horizontalLayout_10.addWidget(self.HeightLabel)
        self.spacer_6 = QtGui.QLabel(DefTextDlg)
        self.spacer_6.setText("")
        self.spacer_6.setObjectName("spacer_6")
        self.horizontalLayout_10.addWidget(self.spacer_6)
        self.verticalLayout_2.addLayout(self.horizontalLayout_10)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setContentsMargins(0, 0, -1, -1)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setSpacing(0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.SceneBox = QtGui.QGraphicsView(DefTextDlg)
        self.SceneBox.setObjectName("SceneBox")
        self.horizontalLayout_5.addWidget(self.SceneBox)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setSpacing(4)
        self.verticalLayout_3.setContentsMargins(0, -1, -1, -1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.tabWidget = QtGui.QTabWidget(DefTextDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
        self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget.setObjectName("tabWidget")
        self.TabText = QtGui.QWidget()
        self.TabText.setObjectName("TabText")
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.TabText)
        self.verticalLayout_7.setSpacing(2)
        self.verticalLayout_7.setMargin(0)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.fontStyleCB = QtGui.QFontComboBox(self.TabText)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fontStyleCB.sizePolicy().hasHeightForWidth())
        self.fontStyleCB.setSizePolicy(sizePolicy)
        self.fontStyleCB.setMinimumSize(QtCore.QSize(0, 24))
        self.fontStyleCB.setMaximumSize(QtCore.QSize(16777215, 24))
        self.fontStyleCB.setObjectName("fontStyleCB")
        self.verticalLayout_7.addWidget(self.fontStyleCB)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setSpacing(2)
        self.gridLayout.setObjectName("gridLayout")
        self.label_2 = QtGui.QLabel(self.TabText)
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.label_5 = QtGui.QLabel(self.TabText)
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.bold = QtGui.QToolButton(self.TabText)
        self.bold.setMinimumSize(QtCore.QSize(22, 24))
        self.bold.setMaximumSize(QtCore.QSize(22, 24))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("icons/text_bold.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.bold.setIcon(icon2)
        self.bold.setCheckable(True)
        self.bold.setChecked(False)
        self.bold.setObjectName("bold")
        self.horizontalLayout.addWidget(self.bold)
        self.Italic = QtGui.QToolButton(self.TabText)
        self.Italic.setMinimumSize(QtCore.QSize(22, 24))
        self.Italic.setMaximumSize(QtCore.QSize(22, 24))
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("icons/text_italic.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.Italic.setIcon(icon3)
        self.Italic.setCheckable(True)
        self.Italic.setObjectName("Italic")
        self.horizontalLayout.addWidget(self.Italic)
        self.Souligne = QtGui.QToolButton(self.TabText)
        self.Souligne.setMinimumSize(QtCore.QSize(22, 24))
        self.Souligne.setMaximumSize(QtCore.QSize(22, 24))
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap("icons/text_underline.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.Souligne.setIcon(icon4)
        self.Souligne.setCheckable(True)
        self.Souligne.setObjectName("Souligne")
        self.horizontalLayout.addWidget(self.Souligne)
        spacerItem = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout, 4, 1, 1, 1)
        self.label = QtGui.QLabel(self.TabText)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setSpacing(0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.Horizontalalignment = QtGui.QWidget(self.TabText)
        self.Horizontalalignment.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.Horizontalalignment.sizePolicy().hasHeightForWidth())
        self.Horizontalalignment.setSizePolicy(sizePolicy)
        self.Horizontalalignment.setMinimumSize(QtCore.QSize(0, 24))
        self.Horizontalalignment.setMaximumSize(QtCore.QSize(16777215, 24))
        self.Horizontalalignment.setObjectName("Horizontalalignment")
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.Horizontalalignment)
        self.horizontalLayout_4.setSpacing(0)
        self.horizontalLayout_4.setMargin(0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.textLeft = QtGui.QToolButton(self.Horizontalalignment)
        self.textLeft.setMinimumSize(QtCore.QSize(22, 24))
        self.textLeft.setMaximumSize(QtCore.QSize(22, 24))
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap("icons/text_align_left.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.textLeft.setIcon(icon5)
        self.textLeft.setCheckable(True)
        self.textLeft.setChecked(True)
        self.textLeft.setAutoExclusive(True)
        self.textLeft.setObjectName("textLeft")
        self.horizontalLayout_4.addWidget(self.textLeft)
        self.textCenter = QtGui.QToolButton(self.Horizontalalignment)
        self.textCenter.setMinimumSize(QtCore.QSize(22, 24))
        self.textCenter.setMaximumSize(QtCore.QSize(22, 24))
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap("icons/text_align_center.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.textCenter.setIcon(icon6)
        self.textCenter.setCheckable(True)
        self.textCenter.setAutoExclusive(True)
        self.textCenter.setObjectName("textCenter")
        self.horizontalLayout_4.addWidget(self.textCenter)
        self.textJustif = QtGui.QToolButton(self.Horizontalalignment)
        self.textJustif.setMinimumSize(QtCore.QSize(22, 24))
        self.textJustif.setMaximumSize(QtCore.QSize(22, 24))
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap("icons/text_align_justif.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.textJustif.setIcon(icon7)
        self.textJustif.setCheckable(True)
        self.textJustif.setAutoExclusive(True)
        self.textJustif.setObjectName("textJustif")
        self.horizontalLayout_4.addWidget(self.textJustif)
        self.textRight = QtGui.QToolButton(self.Horizontalalignment)
        self.textRight.setMinimumSize(QtCore.QSize(22, 24))
        self.textRight.setMaximumSize(QtCore.QSize(22, 24))
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap("icons/text_align_right.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.textRight.setIcon(icon8)
        self.textRight.setCheckable(True)
        self.textRight.setAutoExclusive(True)
        self.textRight.setObjectName("textRight")
        self.horizontalLayout_4.addWidget(self.textRight)
        self.horizontalLayout_7.addWidget(self.Horizontalalignment)
        self.spacer_8 = QtGui.QLabel(self.TabText)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spacer_8.sizePolicy().hasHeightForWidth())
        self.spacer_8.setSizePolicy(sizePolicy)
        self.spacer_8.setMinimumSize(QtCore.QSize(10, 0))
        self.spacer_8.setMaximumSize(QtCore.QSize(10, 16777215))
        self.spacer_8.setText("")
        self.spacer_8.setObjectName("spacer_8")
        self.horizontalLayout_7.addWidget(self.spacer_8)
        self.horizontalWidget = QtGui.QWidget(self.TabText)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.horizontalWidget.sizePolicy().hasHeightForWidth())
        self.horizontalWidget.setSizePolicy(sizePolicy)
        self.horizontalWidget.setObjectName("horizontalWidget")
        self.horizontalLayout_13 = QtGui.QHBoxLayout(self.horizontalWidget)
        self.horizontalLayout_13.setSpacing(0)
        self.horizontalLayout_13.setMargin(0)
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.textUp = QtGui.QToolButton(self.horizontalWidget)
        self.textUp.setMinimumSize(QtCore.QSize(22, 24))
        self.textUp.setMaximumSize(QtCore.QSize(22, 24))
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap("icons/text_align_vup.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.textUp.setIcon(icon9)
        self.textUp.setCheckable(True)
        self.textUp.setAutoExclusive(True)
        self.textUp.setObjectName("textUp")
        self.horizontalLayout_13.addWidget(self.textUp)
        self.textVCenter = QtGui.QToolButton(self.horizontalWidget)
        self.textVCenter.setMinimumSize(QtCore.QSize(22, 24))
        self.textVCenter.setMaximumSize(QtCore.QSize(22, 24))
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap("icons/text_align_vcenter.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.textVCenter.setIcon(icon10)
        self.textVCenter.setCheckable(True)
        self.textVCenter.setAutoExclusive(True)
        self.textVCenter.setObjectName("textVCenter")
        self.horizontalLayout_13.addWidget(self.textVCenter)
        self.textBottom = QtGui.QToolButton(self.horizontalWidget)
        self.textBottom.setMinimumSize(QtCore.QSize(22, 24))
        self.textBottom.setMaximumSize(QtCore.QSize(22, 24))
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap("icons/text_align_vbottom.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.textBottom.setIcon(icon11)
        self.textBottom.setCheckable(True)
        self.textBottom.setChecked(False)
        self.textBottom.setAutoExclusive(True)
        self.textBottom.setObjectName("textBottom")
        self.horizontalLayout_13.addWidget(self.textBottom)
        self.horizontalLayout_7.addWidget(self.horizontalWidget)
        spacerItem1 = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.gridLayout.addLayout(self.horizontalLayout_7, 0, 1, 1, 1)
        self.label_6 = QtGui.QLabel(self.TabText)
        self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 5, 0, 1, 1)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setSpacing(0)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.fontEffectCB = QtGui.QComboBox(self.TabText)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fontEffectCB.sizePolicy().hasHeightForWidth())
        self.fontEffectCB.setSizePolicy(sizePolicy)
        self.fontEffectCB.setMinimumSize(QtCore.QSize(150, 24))
        self.fontEffectCB.setMaximumSize(QtCore.QSize(150, 24))
        self.fontEffectCB.setObjectName("fontEffectCB")
        self.horizontalLayout_9.addWidget(self.fontEffectCB)
        self.StyleShadowColorBt = QtGui.QToolButton(self.TabText)
        self.StyleShadowColorBt.setMinimumSize(QtCore.QSize(22, 24))
        self.StyleShadowColorBt.setMaximumSize(QtCore.QSize(22, 24))
        self.StyleShadowColorBt.setText("")
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap("icons/color.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.StyleShadowColorBt.setIcon(icon12)
        self.StyleShadowColorBt.setObjectName("StyleShadowColorBt")
        self.horizontalLayout_9.addWidget(self.StyleShadowColorBt)
        spacerItem2 = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem2)
        self.gridLayout.addLayout(self.horizontalLayout_9, 5, 1, 1, 1)
        self.horizontalLayout_11 = QtGui.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.fontSize = QtGui.QComboBox(self.TabText)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fontSize.sizePolicy().hasHeightForWidth())
        self.fontSize.setSizePolicy(sizePolicy)
        self.fontSize.setMinimumSize(QtCore.QSize(60, 24))
        self.fontSize.setMaximumSize(QtCore.QSize(60, 24))
        self.fontSize.setObjectName("fontSize")
        self.horizontalLayout_11.addWidget(self.fontSize)
        self.spacer_9 = QtGui.QLabel(self.TabText)
        self.spacer_9.setText("")
        self.spacer_9.setObjectName("spacer_9")
        self.horizontalLayout_11.addWidget(self.spacer_9)
        self.label_3 = QtGui.QLabel(self.TabText)
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_11.addWidget(self.label_3)
        self.fontColorB = QtGui.QToolButton(self.TabText)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fontColorB.sizePolicy().hasHeightForWidth())
        self.fontColorB.setSizePolicy(sizePolicy)
        self.fontColorB.setMinimumSize(QtCore.QSize(22, 24))
        self.fontColorB.setMaximumSize(QtCore.QSize(22, 24))
        self.fontColorB.setText("")
        self.fontColorB.setIcon(icon12)
        self.fontColorB.setObjectName("fontColorB")
        self.horizontalLayout_11.addWidget(self.fontColorB)
        spacerItem3 = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_11.addItem(spacerItem3)
        self.gridLayout.addLayout(self.horizontalLayout_11, 1, 1, 1, 1)
        self.verticalLayout_7.addLayout(self.gridLayout)
        self.plainTextEdit = QtGui.QPlainTextEdit(self.TabText)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plainTextEdit.sizePolicy().hasHeightForWidth())
        self.plainTextEdit.setSizePolicy(sizePolicy)
        self.plainTextEdit.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
        self.plainTextEdit.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
        self.plainTextEdit.setDocumentTitle("None")
        self.plainTextEdit.setPlainText("None")
        self.plainTextEdit.setObjectName("plainTextEdit")
        self.verticalLayout_7.addWidget(self.plainTextEdit)
        self.tabWidget.addTab(self.TabText, "")
        self.TabShape = QtGui.QWidget()
        self.TabShape.setObjectName("TabShape")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.TabShape)
        self.verticalLayout_4.setSpacing(2)
        self.verticalLayout_4.setMargin(0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setSpacing(2)
        self.gridLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setSpacing(0)
        self.horizontalLayout_8.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.PenSizeEd = QtGui.QSpinBox(self.TabShape)
        self.PenSizeEd.setMinimumSize(QtCore.QSize(60, 24))
        self.PenSizeEd.setMaximumSize(QtCore.QSize(60, 24))
        self.PenSizeEd.setObjectName("PenSizeEd")
        self.horizontalLayout_8.addWidget(self.PenSizeEd)
        self.PenColorBt = QtGui.QToolButton(self.TabShape)
        self.PenColorBt.setMinimumSize(QtCore.QSize(22, 24))
        self.PenColorBt.setMaximumSize(QtCore.QSize(22, 24))
        self.PenColorBt.setText("")
        self.PenColorBt.setIcon(icon12)
        self.PenColorBt.setObjectName("PenColorBt")
        self.horizontalLayout_8.addWidget(self.PenColorBt)
        self.spacer_3 = QtGui.QLabel(self.TabShape)
        self.spacer_3.setText("")
        self.spacer_3.setObjectName("spacer_3")
        self.horizontalLayout_8.addWidget(self.spacer_3)
        self.gridLayout_2.addLayout(self.horizontalLayout_8, 3, 1, 1, 1)
        self.label_4 = QtGui.QLabel(self.TabShape)
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 3, 0, 1, 1)
        self.label_7 = QtGui.QLabel(self.TabShape)
        self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 1, 0, 1, 1)
        self.label_8 = QtGui.QLabel(self.TabShape)
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName("label_8")
        self.gridLayout_2.addWidget(self.label_8, 2, 0, 1, 1)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setSpacing(0)
        self.horizontalLayout_6.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.BackgroundStyleCB = QtGui.QComboBox(self.TabShape)
        self.BackgroundStyleCB.setMinimumSize(QtCore.QSize(148, 24))
        self.BackgroundStyleCB.setMaximumSize(QtCore.QSize(16777215, 24))
        self.BackgroundStyleCB.setObjectName("BackgroundStyleCB")
        self.horizontalLayout_6.addWidget(self.BackgroundStyleCB)
        self.BackgroundColorBt = QtGui.QToolButton(self.TabShape)
        self.BackgroundColorBt.setMinimumSize(QtCore.QSize(22, 24))
        self.BackgroundColorBt.setMaximumSize(QtCore.QSize(22, 24))
        self.BackgroundColorBt.setText("")
        self.BackgroundColorBt.setIcon(icon12)
        self.BackgroundColorBt.setObjectName("BackgroundColorBt")
        self.horizontalLayout_6.addWidget(self.BackgroundColorBt)
        self.gridLayout_2.addLayout(self.horizontalLayout_6, 2, 1, 1, 1)
        self.BackgroundFormCB = QtGui.QComboBox(self.TabShape)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.BackgroundFormCB.sizePolicy().hasHeightForWidth())
        self.BackgroundFormCB.setSizePolicy(sizePolicy)
        self.BackgroundFormCB.setMinimumSize(QtCore.QSize(170, 24))
        self.BackgroundFormCB.setMaximumSize(QtCore.QSize(170, 24))
        self.BackgroundFormCB.setObjectName("BackgroundFormCB")
        self.gridLayout_2.addWidget(self.BackgroundFormCB, 1, 1, 1, 1)
        self.verticalLayout_4.addLayout(self.gridLayout_2)
        spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem4)
        self.tabWidget.addTab(self.TabShape, "")
        self.verticalLayout_3.addWidget(self.tabWidget)
        self.horizontalLayout_5.addLayout(self.verticalLayout_3)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_3.addLayout(self.verticalLayout)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setSpacing(6)
        self.verticalLayout_6.setContentsMargins(0, -1, -1, -1)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_3.addLayout(self.verticalLayout_6)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem5)
        self.HelpBt = QtGui.QPushButton(DefTextDlg)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap("icons/Help.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.HelpBt.setIcon(icon13)
        self.HelpBt.setObjectName("HelpBt")
        self.horizontalLayout_2.addWidget(self.HelpBt)
        self.Ok = QtGui.QPushButton(DefTextDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.Ok.sizePolicy().hasHeightForWidth())
        self.Ok.setSizePolicy(sizePolicy)
        self.Ok.setObjectName("Ok")
        self.horizontalLayout_2.addWidget(self.Ok)
        self.Cancel = QtGui.QPushButton(DefTextDlg)
        self.Cancel.setObjectName("Cancel")
        self.horizontalLayout_2.addWidget(self.Cancel)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)

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

    def retranslateUi(self, DefTextDlg):
        DefTextDlg.setWindowTitle(QtGui.QApplication.translate("DefTextDlg", "Text definition", None, QtGui.QApplication.UnicodeUTF8))
        self.addText.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Add a new text objet to image", None, QtGui.QApplication.UnicodeUTF8))
        self.RemoveText.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Remove selected text from image", None, QtGui.QApplication.UnicodeUTF8))
        self.RemoveText.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.PosX.setText(QtGui.QApplication.translate("DefTextDlg", "X :", None, QtGui.QApplication.UnicodeUTF8))
        self.PosXEd.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Define X position of selected text", None, QtGui.QApplication.UnicodeUTF8))
        self.PosXLabel.setText(QtGui.QApplication.translate("DefTextDlg", "% or Pix", None, QtGui.QApplication.UnicodeUTF8))
        self.PosY.setText(QtGui.QApplication.translate("DefTextDlg", "Y :", None, QtGui.QApplication.UnicodeUTF8))
        self.PosYEd.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Define Y position of selected text", None, QtGui.QApplication.UnicodeUTF8))
        self.PosYLabel.setText(QtGui.QApplication.translate("DefTextDlg", "% or Pix", None, QtGui.QApplication.UnicodeUTF8))
        self.Width.setText(QtGui.QApplication.translate("DefTextDlg", "Width :", None, QtGui.QApplication.UnicodeUTF8))
        self.WidthEd.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Define width of selected text", None, QtGui.QApplication.UnicodeUTF8))
        self.WidthLabel.setText(QtGui.QApplication.translate("DefTextDlg", "% or Pix", None, QtGui.QApplication.UnicodeUTF8))
        self.Height.setText(QtGui.QApplication.translate("DefTextDlg", "Height :", None, QtGui.QApplication.UnicodeUTF8))
        self.HeightEd.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Define height of selected text", None, QtGui.QApplication.UnicodeUTF8))
        self.HeightLabel.setText(QtGui.QApplication.translate("DefTextDlg", "% or Pix", None, QtGui.QApplication.UnicodeUTF8))
        self.fontStyleCB.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Select font family", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("DefTextDlg", "Size :", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("DefTextDlg", "Style :", None, QtGui.QApplication.UnicodeUTF8))
        self.bold.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Bold", None, QtGui.QApplication.UnicodeUTF8))
        self.bold.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.Italic.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Italic", None, QtGui.QApplication.UnicodeUTF8))
        self.Italic.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.Souligne.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Underline", None, QtGui.QApplication.UnicodeUTF8))
        self.Souligne.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("DefTextDlg", "Alignment : ", None, QtGui.QApplication.UnicodeUTF8))
        self.textLeft.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Align left", None, QtGui.QApplication.UnicodeUTF8))
        self.textLeft.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.textCenter.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Align center", None, QtGui.QApplication.UnicodeUTF8))
        self.textCenter.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.textJustif.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Align justify", None, QtGui.QApplication.UnicodeUTF8))
        self.textJustif.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.textRight.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Align right", None, QtGui.QApplication.UnicodeUTF8))
        self.textRight.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.textUp.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Align top", None, QtGui.QApplication.UnicodeUTF8))
        self.textUp.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.textVCenter.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Align in the middle", None, QtGui.QApplication.UnicodeUTF8))
        self.textVCenter.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.textBottom.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Align bottom", None, QtGui.QApplication.UnicodeUTF8))
        self.textBottom.setText(QtGui.QApplication.translate("DefTextDlg", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("DefTextDlg", "Effect :", None, QtGui.QApplication.UnicodeUTF8))
        self.fontEffectCB.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Select font effect (outerline, shadow)", None, QtGui.QApplication.UnicodeUTF8))
        self.StyleShadowColorBt.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Select outerline or shadow color", None, QtGui.QApplication.UnicodeUTF8))
        self.fontSize.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Select font size", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("DefTextDlg", "Color :", None, QtGui.QApplication.UnicodeUTF8))
        self.fontColorB.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Select font color", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.TabText), QtGui.QApplication.translate("DefTextDlg", "Text", None, QtGui.QApplication.UnicodeUTF8))
        self.PenSizeEd.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Define pen size for shape of selected text", None, QtGui.QApplication.UnicodeUTF8))
        self.PenColorBt.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Define pen color for shape of selected text", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("DefTextDlg", "Pen size:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("DefTextDlg", "Style :", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("DefTextDlg", "Background :", None, QtGui.QApplication.UnicodeUTF8))
        self.BackgroundColorBt.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Select background color for shape of selected text", None, QtGui.QApplication.UnicodeUTF8))
        self.BackgroundFormCB.setToolTip(QtGui.QApplication.translate("DefTextDlg", "Select a shape for selected text", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.TabShape), QtGui.QApplication.translate("DefTextDlg", "Shape", None, QtGui.QApplication.UnicodeUTF8))
        self.HelpBt.setText(QtGui.QApplication.translate("DefTextDlg", "&Help", None, QtGui.QApplication.UnicodeUTF8))
        self.Ok.setText(QtGui.QApplication.translate("DefTextDlg", "&Ok", None, QtGui.QApplication.UnicodeUTF8))
        self.Cancel.setText(QtGui.QApplication.translate("DefTextDlg", "&Cancel", None, QtGui.QApplication.UnicodeUTF8))


Generated by  Doxygen 1.6.0   Back to index