2014-04-29 07:54:58 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Form implementation generated from reading ui file 'texter4.ui'
|
2014-04-12 18:51:49 +00:00
|
|
|
#
|
2014-04-29 07:54:58 +00:00
|
|
|
# Created: Mon Apr 28 21:58:51 2014
|
|
|
|
# by: PyQt4 UI code generator 4.10.3
|
2014-04-12 18:51:49 +00:00
|
|
|
#
|
2014-04-29 07:54:58 +00:00
|
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
|
2014-04-12 18:51:49 +00:00
|
|
|
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)
|
|
|
|
|
2014-04-15 16:08:00 +00:00
|
|
|
class Ui_TextSorterDialog(object):
|
|
|
|
def setupUi(self, TextSorterDialog):
|
|
|
|
TextSorterDialog.setObjectName(_fromUtf8("TextSorterDialog"))
|
2014-04-22 09:10:08 +00:00
|
|
|
TextSorterDialog.resize(1084, 633)
|
2014-04-16 00:23:36 +00:00
|
|
|
self.verticalLayout = QtGui.QVBoxLayout(TextSorterDialog)
|
|
|
|
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
2014-04-22 09:10:08 +00:00
|
|
|
self.splitter = QtGui.QSplitter(TextSorterDialog)
|
|
|
|
self.splitter.setOrientation(QtCore.Qt.Horizontal)
|
|
|
|
self.splitter.setObjectName(_fromUtf8("splitter"))
|
|
|
|
self.text_list = QtGui.QListView(self.splitter)
|
2014-04-20 09:37:22 +00:00
|
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
2014-04-22 09:10:08 +00:00
|
|
|
sizePolicy.setHorizontalStretch(1)
|
2014-04-20 09:37:22 +00:00
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.text_list.sizePolicy().hasHeightForWidth())
|
|
|
|
self.text_list.setSizePolicy(sizePolicy)
|
2014-04-22 09:10:08 +00:00
|
|
|
self.text_list.setMinimumSize(QtCore.QSize(200, 576))
|
2014-04-15 16:08:00 +00:00
|
|
|
self.text_list.setMaximumSize(QtCore.QSize(16777215, 576))
|
2014-04-12 18:51:49 +00:00
|
|
|
self.text_list.setObjectName(_fromUtf8("text_list"))
|
2014-04-22 09:10:08 +00:00
|
|
|
self.text_preview = KRichTextWidget(self.splitter)
|
2014-04-20 09:37:22 +00:00
|
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
2014-04-22 09:10:08 +00:00
|
|
|
sizePolicy.setHorizontalStretch(100)
|
2014-04-20 09:37:22 +00:00
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.text_preview.sizePolicy().hasHeightForWidth())
|
|
|
|
self.text_preview.setSizePolicy(sizePolicy)
|
2014-04-22 09:10:08 +00:00
|
|
|
self.text_preview.setMinimumSize(QtCore.QSize(0, 576))
|
2014-04-20 09:37:22 +00:00
|
|
|
self.text_preview.setMaximumSize(QtCore.QSize(768, 576))
|
2014-04-16 00:23:36 +00:00
|
|
|
palette = QtGui.QPalette()
|
2014-04-20 09:37:22 +00:00
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
|
2014-04-16 00:23:36 +00:00
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
2014-04-20 09:37:22 +00:00
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
2014-04-16 00:23:36 +00:00
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
|
2014-04-20 09:37:22 +00:00
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
|
2014-04-16 00:23:36 +00:00
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
2014-04-20 09:37:22 +00:00
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
2014-04-16 00:23:36 +00:00
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
|
2014-04-20 09:37:22 +00:00
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush)
|
|
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush)
|
2014-04-16 00:23:36 +00:00
|
|
|
self.text_preview.setPalette(palette)
|
|
|
|
self.text_preview.setReadOnly(True)
|
|
|
|
self.text_preview.setObjectName(_fromUtf8("text_preview"))
|
2014-04-22 09:10:08 +00:00
|
|
|
self.verticalLayout.addWidget(self.splitter)
|
2014-04-15 16:08:00 +00:00
|
|
|
self.kbuttongroup = KButtonGroup(TextSorterDialog)
|
|
|
|
self.kbuttongroup.setObjectName(_fromUtf8("kbuttongroup"))
|
2014-04-16 00:23:36 +00:00
|
|
|
self.horizontalLayout = QtGui.QHBoxLayout(self.kbuttongroup)
|
|
|
|
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
|
|
|
self.move_down_button = KArrowButton(self.kbuttongroup)
|
|
|
|
self.move_down_button.setProperty("arrowType", 2)
|
|
|
|
self.move_down_button.setObjectName(_fromUtf8("move_down_button"))
|
|
|
|
self.horizontalLayout.addWidget(self.move_down_button)
|
|
|
|
self.move_up_button = KArrowButton(self.kbuttongroup)
|
|
|
|
self.move_up_button.setObjectName(_fromUtf8("move_up_button"))
|
|
|
|
self.horizontalLayout.addWidget(self.move_up_button)
|
2014-04-15 16:08:00 +00:00
|
|
|
self.remove_button = KPushButton(self.kbuttongroup)
|
|
|
|
icon = QtGui.QIcon.fromTheme(_fromUtf8("edit-delete"))
|
|
|
|
self.remove_button.setIcon(icon)
|
|
|
|
self.remove_button.setObjectName(_fromUtf8("remove_button"))
|
2014-04-16 00:23:36 +00:00
|
|
|
self.horizontalLayout.addWidget(self.remove_button)
|
|
|
|
self.verticalLayout.addWidget(self.kbuttongroup)
|
2014-04-15 16:08:00 +00:00
|
|
|
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
|
|
|
self.verticalLayout.addItem(spacerItem)
|
2014-04-12 18:51:49 +00:00
|
|
|
|
2014-04-15 16:08:00 +00:00
|
|
|
self.retranslateUi(TextSorterDialog)
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(TextSorterDialog)
|
2014-04-12 18:51:49 +00:00
|
|
|
|
2014-04-15 16:08:00 +00:00
|
|
|
def retranslateUi(self, TextSorterDialog):
|
2014-04-29 07:54:58 +00:00
|
|
|
TextSorterDialog.setWindowTitle(_translate("TextSorterDialog", "Form", None))
|
|
|
|
self.remove_button.setText(_translate("TextSorterDialog", "Remove", None))
|
2014-04-12 18:51:49 +00:00
|
|
|
|
2014-04-15 16:08:00 +00:00
|
|
|
from PyKDE4.kdeui import KButtonGroup, KArrowButton, KPushButton, KRichTextWidget
|