示例#1
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(454, 220)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.kbuttongroup_layout = KButtonGroup(Form)
        self.kbuttongroup_layout.setObjectName(_fromUtf8("kbuttongroup_layout"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.kbuttongroup_layout)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.button_horizontal = QtGui.QRadioButton(self.kbuttongroup_layout)
        self.button_horizontal.setObjectName(_fromUtf8("button_horizontal"))
        self.verticalLayout_2.addWidget(self.button_horizontal)
        self.button_vertical = QtGui.QRadioButton(self.kbuttongroup_layout)
        self.button_vertical.setObjectName(_fromUtf8("button_vertical"))
        self.verticalLayout_2.addWidget(self.button_vertical)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.verticalLayout.addWidget(self.kbuttongroup_layout)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.kbuttongroup_layout.setTitle(QtGui.QApplication.translate("Form", "Layout", None, QtGui.QApplication.UnicodeUTF8))
        self.button_horizontal.setText(QtGui.QApplication.translate("Form", "horizontal", None, QtGui.QApplication.UnicodeUTF8))
        self.button_vertical.setText(QtGui.QApplication.translate("Form", "vertical", None, QtGui.QApplication.UnicodeUTF8))
示例#2
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(400, 240)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox = QtGui.QGroupBox(Form)
        self.groupBox.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.titleLabel = QtGui.QLabel(self.groupBox)
        self.titleLabel.setObjectName(_fromUtf8("titleLabel"))
        self.verticalLayout_2.addWidget(self.titleLabel)
        self.classLabel = QtGui.QLabel(self.groupBox)
        self.classLabel.setObjectName(_fromUtf8("classLabel"))
        self.verticalLayout_2.addWidget(self.classLabel)
        self.verticalLayout.addWidget(self.groupBox)
        self.kbuttongroup = KButtonGroup(Form)
        self.kbuttongroup.setObjectName(_fromUtf8("kbuttongroup"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.kbuttongroup)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.classButton = QtGui.QRadioButton(self.kbuttongroup)
        self.classButton.setObjectName(_fromUtf8("classButton"))
        self.verticalLayout_3.addWidget(self.classButton)
        self.titleButton = QtGui.QRadioButton(self.kbuttongroup)
        self.titleButton.setObjectName(_fromUtf8("titleButton"))
        self.verticalLayout_3.addWidget(self.titleButton)
        self.verticalLayout.addWidget(self.kbuttongroup)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(kdecore.i18n(_fromUtf8("Form")))
        self.groupBox.setTitle(kdecore.i18n(_fromUtf8("Window information of selected window")))
        self.titleLabel.setText(kdecore.i18n(_fromUtf8("TextLabel")))
        self.classLabel.setText(kdecore.i18n(_fromUtf8("TextLabel")))
        self.kbuttongroup.setTitle(kdecore.i18n(_fromUtf8("Window property selection")))
        self.classButton.setText(kdecore.i18n(_fromUtf8("Window class (entire application)")))
        self.titleButton.setText(kdecore.i18n(_fromUtf8("Window title")))
示例#3
0
class Ui_Page(object):
    def setupUi(self, Page):
        Page.setObjectName(_fromUtf8("Page"))
        Page.resize(502, 673)
        self.verticalLayout_3 = QtGui.QVBoxLayout(Page)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.playlistGroup = QtGui.QGroupBox(Page)
        self.playlistGroup.setObjectName(_fromUtf8("playlistGroup"))
        self.vboxlayout = QtGui.QVBoxLayout(self.playlistGroup)
        self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
        self.kcfg_TagsFromRegex = QtGui.QCheckBox(self.playlistGroup)
        self.kcfg_TagsFromRegex.setObjectName(_fromUtf8("kcfg_TagsFromRegex"))
        self.vboxlayout.addWidget(self.kcfg_TagsFromRegex)
        self.regexInfoGroup = QtGui.QGroupBox(self.playlistGroup)
        self.regexInfoGroup.setTitle(_fromUtf8(""))
        self.regexInfoGroup.setFlat(True)
        self.regexInfoGroup.setObjectName(_fromUtf8("regexInfoGroup"))
        self.vboxlayout1 = QtGui.QVBoxLayout(self.regexInfoGroup)
        self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1"))
        self.kcfg_TagRegex = QtGui.QLineEdit(self.regexInfoGroup)
        self.kcfg_TagRegex.setObjectName(_fromUtf8("kcfg_TagRegex"))
        self.vboxlayout1.addWidget(self.kcfg_TagRegex)
        self.kcfg_TagRegexMode = KButtonGroup(self.regexInfoGroup)
        self.kcfg_TagRegexMode.setFlat(True)
        self.kcfg_TagRegexMode.setObjectName(_fromUtf8("kcfg_TagRegexMode"))
        self.vboxlayout2 = QtGui.QVBoxLayout(self.kcfg_TagRegexMode)
        self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2"))
        self.radio1 = QtGui.QRadioButton(self.kcfg_TagRegexMode)
        self.radio1.setObjectName(_fromUtf8("radio1"))
        self.vboxlayout2.addWidget(self.radio1)
        self.radio2 = QtGui.QRadioButton(self.kcfg_TagRegexMode)
        self.radio2.setObjectName(_fromUtf8("radio2"))
        self.vboxlayout2.addWidget(self.radio2)
        self.radio3 = QtGui.QRadioButton(self.kcfg_TagRegexMode)
        self.radio3.setObjectName(_fromUtf8("radio3"))
        self.vboxlayout2.addWidget(self.radio3)
        self.vboxlayout1.addWidget(self.kcfg_TagRegexMode)
        self.vboxlayout.addWidget(self.regexInfoGroup)
        self.verticalLayout_3.addWidget(self.playlistGroup)
        self.lastfmGroup = QtGui.QGroupBox(Page)
        self.lastfmGroup.setObjectName(_fromUtf8("lastfmGroup"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.lastfmGroup)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.kcfg_EnableLastfm = QtGui.QCheckBox(self.lastfmGroup)
        self.kcfg_EnableLastfm.setObjectName(_fromUtf8("kcfg_EnableLastfm"))
        self.verticalLayout_2.addWidget(self.kcfg_EnableLastfm)
        self.lastfmFrame = QtGui.QFrame(self.lastfmGroup)
        self.lastfmFrame.setFrameShape(QtGui.QFrame.NoFrame)
        self.lastfmFrame.setFrameShadow(QtGui.QFrame.Raised)
        self.lastfmFrame.setObjectName(_fromUtf8("lastfmFrame"))
        self.verticalLayout = QtGui.QVBoxLayout(self.lastfmFrame)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.lastfmFrame)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.kcfg_LastfmUser = QtGui.QLineEdit(self.lastfmFrame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.kcfg_LastfmUser.sizePolicy().hasHeightForWidth())
        self.kcfg_LastfmUser.setSizePolicy(sizePolicy)
        self.kcfg_LastfmUser.setObjectName(_fromUtf8("kcfg_LastfmUser"))
        self.gridLayout.addWidget(self.kcfg_LastfmUser, 0, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 2, 1, 1)
        self.label_2 = QtGui.QLabel(self.lastfmFrame)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.kcfg_LastfmPassword = QtGui.QLineEdit(self.lastfmFrame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.kcfg_LastfmPassword.sizePolicy().hasHeightForWidth())
        self.kcfg_LastfmPassword.setSizePolicy(sizePolicy)
        self.kcfg_LastfmPassword.setEchoMode(QtGui.QLineEdit.Password)
        self.kcfg_LastfmPassword.setObjectName(_fromUtf8("kcfg_LastfmPassword"))
        self.gridLayout.addWidget(self.kcfg_LastfmPassword, 1, 1, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 1, 2, 1, 1)
        self.label_3 = QtGui.QLabel(self.lastfmFrame)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.kcfg_LastfmServer = QtGui.QComboBox(self.lastfmFrame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.kcfg_LastfmServer.sizePolicy().hasHeightForWidth())
        self.kcfg_LastfmServer.setSizePolicy(sizePolicy)
        self.kcfg_LastfmServer.setObjectName(_fromUtf8("kcfg_LastfmServer"))
        self.gridLayout.addWidget(self.kcfg_LastfmServer, 2, 1, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem2, 2, 2, 1, 1)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem3, 3, 0, 1, 1)
        self.kcfg_LastfmURL = QtGui.QLineEdit(self.lastfmFrame)
        self.kcfg_LastfmURL.setToolTip(_fromUtf8(""))
        self.kcfg_LastfmURL.setObjectName(_fromUtf8("kcfg_LastfmURL"))
        self.gridLayout.addWidget(self.kcfg_LastfmURL, 3, 1, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout)
        self.verticalLayout_2.addWidget(self.lastfmFrame)
        self.kcfg_EnableLastfm.raise_()
        self.lastfmFrame.raise_()
        self.verticalLayout_3.addWidget(self.lastfmGroup)
        spacerItem4 = QtGui.QSpacerItem(17, 198, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem4)

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

    def retranslateUi(self, Page):
        Page.setWindowTitle(kdecore.i18n(_fromUtf8("Configuring Minirok")))
        self.playlistGroup.setTitle(kdecore.i18n(_fromUtf8("Playlist")))
        self.kcfg_TagsFromRegex.setText(kdecore.i18n(_fromUtf8("Use a &regular expression to guess tags from the filename")))
        self.radio1.setText(kdecore.i18n(_fromUtf8("Use this regex to populate the playlist initially,\n"
"but still read the tags in the background")))
        self.radio2.setText(kdecore.i18n(_fromUtf8("Do not read tags if the regex matches")))
        self.radio3.setText(kdecore.i18n(_fromUtf8("Never read tags from files")))
        self.lastfmGroup.setTitle(kdecore.i18n(_fromUtf8("Last.fm")))
        self.kcfg_EnableLastfm.setText(kdecore.i18n(_fromUtf8("Submit played tracks to &Last.fm")))
        self.label.setText(kdecore.i18n(_fromUtf8("User")))
        self.label_2.setText(kdecore.i18n(_fromUtf8("Password")))
        self.label_3.setText(kdecore.i18n(_fromUtf8("Server")))
示例#4
0
class Ui_EditDialog(object):
    def setupUi(self, EditDialog):
        EditDialog.setObjectName(_fromUtf8("EditDialog"))
        EditDialog.resize(1084, 633)
        self.verticalLayout = QtGui.QVBoxLayout(EditDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.text_list = QtGui.QListView(EditDialog)
        self.text_list.setObjectName(_fromUtf8("text_list"))
        self.horizontalLayout_2.addWidget(self.text_list)
        self.text_preview = QtGui.QTextEdit(EditDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(100)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.text_preview.sizePolicy().hasHeightForWidth())
        self.text_preview.setSizePolicy(sizePolicy)
        palette = QtGui.QPalette()
        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)
        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.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)
        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.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)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        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)
        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.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)
        self.text_preview.setPalette(palette)
        self.text_preview.setUndoRedoEnabled(False)
        self.text_preview.setReadOnly(True)
        self.text_preview.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
        self.text_preview.setObjectName(_fromUtf8("text_preview"))
        self.horizontalLayout_2.addWidget(self.text_preview)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.kbuttongroup = KButtonGroup(EditDialog)
        self.kbuttongroup.setObjectName(_fromUtf8("kbuttongroup"))
        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)
        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"))
        self.horizontalLayout.addWidget(self.remove_button)
        self.verticalLayout.addWidget(self.kbuttongroup)

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

    def retranslateUi(self, EditDialog):
        EditDialog.setWindowTitle(_translate("EditDialog", "Form", None))
        self.remove_button.setText(_translate("EditDialog", "Remove", None))