161 lines
8.9 KiB
Python
161 lines
8.9 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'texter.ui'
|
|
#
|
|
# Created: Sat May 10 18:57:19 2014
|
|
# by: PyQt4 UI code generator 4.10.3
|
|
#
|
|
# 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_MainWindow(object):
|
|
def setupUi(self, MainWindow):
|
|
MainWindow.setObjectName(_fromUtf8("MainWindow"))
|
|
MainWindow.resize(1475, 592)
|
|
palette = QtGui.QPalette()
|
|
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(0, 0, 0))
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, 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(0, 0, 0))
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
|
|
brush = QtGui.QBrush(QtGui.QColor(169, 167, 167))
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
|
|
brush = QtGui.QBrush(QtGui.QColor(244, 244, 244))
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
|
|
MainWindow.setPalette(palette)
|
|
font = QtGui.QFont()
|
|
font.setFamily(_fromUtf8("Helvetica"))
|
|
font.setPointSize(8)
|
|
font.setBold(True)
|
|
MainWindow.setFont(font)
|
|
icon = QtGui.QIcon()
|
|
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/texter/icon.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
MainWindow.setWindowIcon(icon)
|
|
self.centralwidget = QtGui.QWidget(MainWindow)
|
|
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
|
|
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
|
|
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
|
self.horizontalLayout = QtGui.QHBoxLayout()
|
|
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
|
self.live_text = KRichTextWidget(self.centralwidget)
|
|
self.live_text.setMinimumSize(QtCore.QSize(778, 586))
|
|
self.live_text.setMaximumSize(QtCore.QSize(778, 586))
|
|
palette = QtGui.QPalette()
|
|
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)
|
|
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.Highlight, brush)
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Link, brush)
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
|
|
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.Highlight, brush)
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Link, brush)
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
|
|
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.Highlight, brush)
|
|
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Link, brush)
|
|
self.live_text.setPalette(palette)
|
|
self.live_text.setAutoFillBackground(False)
|
|
self.live_text.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
|
|
self.live_text.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
|
|
self.live_text.setAcceptRichText(True)
|
|
self.live_text.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByKeyboard|QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextBrowserInteraction|QtCore.Qt.TextEditable|QtCore.Qt.TextEditorInteraction|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
|
|
self.live_text.setRichTextSupport(KRichTextWidget.RichTextSupportValues(KRichTextWidget.SupportAlignment|KRichTextWidget.SupportFontFamily|KRichTextWidget.SupportFontSize|KRichTextWidget.SupportTextForegroundColor))
|
|
self.live_text.setObjectName(_fromUtf8("live_text"))
|
|
self.horizontalLayout.addWidget(self.live_text)
|
|
self.preview_text = KRichTextWidget(self.centralwidget)
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
|
sizePolicy.setHorizontalStretch(10)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.preview_text.sizePolicy().hasHeightForWidth())
|
|
self.preview_text.setSizePolicy(sizePolicy)
|
|
self.preview_text.setMinimumSize(QtCore.QSize(300, 586))
|
|
self.preview_text.setMaximumSize(QtCore.QSize(778, 586))
|
|
palette = QtGui.QPalette()
|
|
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)
|
|
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.Inactive, QtGui.QPalette.Base, brush)
|
|
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.Disabled, QtGui.QPalette.Base, brush)
|
|
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
|
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
|
|
self.preview_text.setPalette(palette)
|
|
self.preview_text.setAutoFillBackground(False)
|
|
self.preview_text.setFrameShape(QtGui.QFrame.StyledPanel)
|
|
self.preview_text.setAcceptRichText(True)
|
|
self.preview_text.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByKeyboard|QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextBrowserInteraction|QtCore.Qt.TextEditable|QtCore.Qt.TextEditorInteraction|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
|
|
self.preview_text.setRichTextSupport(KRichTextWidget.RichTextSupportValues(KRichTextWidget.SupportAlignment|KRichTextWidget.SupportChangeListStyle|KRichTextWidget.SupportFontFamily|KRichTextWidget.SupportFontSize|KRichTextWidget.SupportTextForegroundColor))
|
|
self.preview_text.setObjectName(_fromUtf8("preview_text"))
|
|
self.horizontalLayout.addWidget(self.preview_text)
|
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
|
MainWindow.setCentralWidget(self.centralwidget)
|
|
|
|
self.retranslateUi(MainWindow)
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
|
MainWindow.setTabOrder(self.live_text, self.preview_text)
|
|
|
|
def retranslateUi(self, MainWindow):
|
|
MainWindow.setWindowTitle(_translate("MainWindow", "4.48 Texter", None))
|
|
self.preview_text.setToolTip(_translate("MainWindow", "preview text", None))
|
|
|
|
from PyKDE4.kdeui import KRichTextWidget
|
|
import texter_rc
|