コード例 #1
0
ファイル: ui_generalpage.py プロジェクト: KDE/kdeexamples
class Ui_GeneralPage(object):
    def setupUi(self, GeneralPage):
        GeneralPage.setObjectName("GeneralPage")
        GeneralPage.resize(199, 60)
        self.formLayout = QtGui.QFormLayout(GeneralPage)
        self.formLayout.setObjectName("formLayout")
        self.label = QtGui.QLabel(GeneralPage)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.kcfg_serverName = KLineEdit(GeneralPage)
        self.kcfg_serverName.setObjectName("kcfg_serverName")
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.kcfg_serverName)
        self.label_2 = QtGui.QLabel(GeneralPage)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.kcfg_portNumber = KIntSpinBox(GeneralPage)
        self.kcfg_portNumber.setMaximum(65536)
        self.kcfg_portNumber.setObjectName("kcfg_portNumber")
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.kcfg_portNumber)

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

    def retranslateUi(self, GeneralPage):
        self.label.setText(kdecore.i18n("Server name:"))
        self.label_2.setText(kdecore.i18n("Port number:"))
コード例 #2
0
class Ui_connectForm(object):
    def setupUi(self, connectForm):
        connectForm.setObjectName(_fromUtf8("connectForm"))
        connectForm.resize(655, 33)
        connectForm.setWindowTitle(_fromUtf8(""))
        self.horizontalLayout = QtGui.QHBoxLayout(connectForm)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.closeButton = KPushButton(connectForm)
        self.closeButton.setFlat(True)
        self.closeButton.setObjectName(_fromUtf8("closeButton"))
        self.horizontalLayout.addWidget(self.closeButton)
        self.urlLabel = QtGui.QLabel(connectForm)
        self.urlLabel.setObjectName(_fromUtf8("urlLabel"))
        self.horizontalLayout.addWidget(self.urlLabel)
        self.danbooruUrlComboBox = KComboBox(connectForm)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.danbooruUrlComboBox.sizePolicy().hasHeightForWidth())
        self.danbooruUrlComboBox.setSizePolicy(sizePolicy)
        self.danbooruUrlComboBox.setEditable(False)
        self.danbooruUrlComboBox.setObjectName(
            _fromUtf8("danbooruUrlComboBox"))
        self.horizontalLayout.addWidget(self.danbooruUrlComboBox)
        self.userLabel = QtGui.QLabel(connectForm)
        self.userLabel.setObjectName(_fromUtf8("userLabel"))
        self.horizontalLayout.addWidget(self.userLabel)
        self.userLineEdit = KLineEdit(connectForm)
        self.userLineEdit.setObjectName(_fromUtf8("userLineEdit"))
        self.horizontalLayout.addWidget(self.userLineEdit)
        self.passwordLabel = QtGui.QLabel(connectForm)
        self.passwordLabel.setObjectName(_fromUtf8("passwordLabel"))
        self.horizontalLayout.addWidget(self.passwordLabel)
        self.passwdLineEdit = KLineEdit(connectForm)
        self.passwdLineEdit.setPasswordMode(True)
        self.passwdLineEdit.setObjectName(_fromUtf8("passwdLineEdit"))
        self.horizontalLayout.addWidget(self.passwdLineEdit)
        self.buttonBox = KDialogButtonBox(connectForm)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(False)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.horizontalLayout.addWidget(self.buttonBox)

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

    def retranslateUi(self, connectForm):
        self.urlLabel.setText(kdecore.i18n(_fromUtf8("Danbooru URL")))
        self.userLabel.setText(kdecore.i18n(_fromUtf8("Username")))
        self.userLineEdit.setClickMessage(
            kdecore.i18n(_fromUtf8("Danbooru username (optional)")))
        self.passwordLabel.setText(kdecore.i18n(_fromUtf8("Password")))
        self.passwdLineEdit.setClickMessage(
            kdecore.i18n(_fromUtf8("Danbooru password (optional)")))
コード例 #3
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(425, 120)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout.addWidget(self.label_2)
        self.triggerRegexLineEdit = KLineEdit(Form)
        self.triggerRegexLineEdit.setUrlDropsEnabled(False)
        self.triggerRegexLineEdit.setProperty("showClearButton", True)
        self.triggerRegexLineEdit.setObjectName(
            _fromUtf8("triggerRegexLineEdit"))
        self.horizontalLayout.addWidget(self.triggerRegexLineEdit)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.recursiveCheckBox = QtGui.QCheckBox(Form)
        self.recursiveCheckBox.setObjectName(_fromUtf8("recursiveCheckBox"))
        self.verticalLayout.addWidget(self.recursiveCheckBox)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.detectButton = QtGui.QPushButton(Form)
        self.detectButton.setObjectName(_fromUtf8("detectButton"))
        self.horizontalLayout_2.addWidget(self.detectButton)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.kseparator = KSeparator(Form)
        self.kseparator.setObjectName(_fromUtf8("kseparator"))
        self.verticalLayout.addWidget(self.kseparator)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(kdecore.i18n(_fromUtf8("Form")))
        self.label_2.setText(
            kdecore.i18n(_fromUtf8("Regular expression to match:")))
        self.triggerRegexLineEdit.setToolTip(
            kdecore.i18n(_fromUtf8("Window title")))
        self.triggerRegexLineEdit.setWhatsThis(
            kdecore.i18n(
                _fromUtf8(
                    "Enter a regular expression that matches the title of windows in which you want this item to trigger."
                )))
        self.recursiveCheckBox.setText(
            kdecore.i18n(
                _fromUtf8("Apply recursively to subfolders and items")))
        self.detectButton.setText(
            kdecore.i18n(_fromUtf8("Detect Window Properties")))
コード例 #4
0
class Ui_connectForm(object):
    def setupUi(self, connectForm):
        connectForm.setObjectName(_fromUtf8("connectForm"))
        connectForm.resize(655, 33)
        connectForm.setWindowTitle(_fromUtf8(""))
        self.horizontalLayout = QtGui.QHBoxLayout(connectForm)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.closeButton = KPushButton(connectForm)
        self.closeButton.setFlat(True)
        self.closeButton.setObjectName(_fromUtf8("closeButton"))
        self.horizontalLayout.addWidget(self.closeButton)
        self.urlLabel = QtGui.QLabel(connectForm)
        self.urlLabel.setObjectName(_fromUtf8("urlLabel"))
        self.horizontalLayout.addWidget(self.urlLabel)
        self.danbooruUrlComboBox = KComboBox(connectForm)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.danbooruUrlComboBox.sizePolicy().hasHeightForWidth())
        self.danbooruUrlComboBox.setSizePolicy(sizePolicy)
        self.danbooruUrlComboBox.setEditable(False)
        self.danbooruUrlComboBox.setObjectName(_fromUtf8("danbooruUrlComboBox"))
        self.horizontalLayout.addWidget(self.danbooruUrlComboBox)
        self.userLabel = QtGui.QLabel(connectForm)
        self.userLabel.setObjectName(_fromUtf8("userLabel"))
        self.horizontalLayout.addWidget(self.userLabel)
        self.userLineEdit = KLineEdit(connectForm)
        self.userLineEdit.setObjectName(_fromUtf8("userLineEdit"))
        self.horizontalLayout.addWidget(self.userLineEdit)
        self.passwordLabel = QtGui.QLabel(connectForm)
        self.passwordLabel.setObjectName(_fromUtf8("passwordLabel"))
        self.horizontalLayout.addWidget(self.passwordLabel)
        self.passwdLineEdit = KLineEdit(connectForm)
        self.passwdLineEdit.setPasswordMode(True)
        self.passwdLineEdit.setObjectName(_fromUtf8("passwdLineEdit"))
        self.horizontalLayout.addWidget(self.passwdLineEdit)
        self.buttonBox = KDialogButtonBox(connectForm)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(False)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.horizontalLayout.addWidget(self.buttonBox)

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

    def retranslateUi(self, connectForm):
        self.urlLabel.setText(kdecore.i18n(_fromUtf8("Danbooru URL")))
        self.userLabel.setText(kdecore.i18n(_fromUtf8("Username")))
        self.userLineEdit.setClickMessage(kdecore.i18n(_fromUtf8("Danbooru username (optional)")))
        self.passwordLabel.setText(kdecore.i18n(_fromUtf8("Password")))
        self.passwdLineEdit.setClickMessage(kdecore.i18n(_fromUtf8("Danbooru password (optional)")))
コード例 #5
0
ファイル: windowfiltersettings.py プロジェクト: Zuggz/autokey
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(425, 120)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout.addWidget(self.label_2)
        self.triggerRegexLineEdit = KLineEdit(Form)
        self.triggerRegexLineEdit.setUrlDropsEnabled(False)
        self.triggerRegexLineEdit.setProperty("showClearButton", True)
        self.triggerRegexLineEdit.setObjectName(_fromUtf8("triggerRegexLineEdit"))
        self.horizontalLayout.addWidget(self.triggerRegexLineEdit)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.recursiveCheckBox = QtGui.QCheckBox(Form)
        self.recursiveCheckBox.setObjectName(_fromUtf8("recursiveCheckBox"))
        self.verticalLayout.addWidget(self.recursiveCheckBox)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.detectButton = QtGui.QPushButton(Form)
        self.detectButton.setObjectName(_fromUtf8("detectButton"))
        self.horizontalLayout_2.addWidget(self.detectButton)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.kseparator = KSeparator(Form)
        self.kseparator.setObjectName(_fromUtf8("kseparator"))
        self.verticalLayout.addWidget(self.kseparator)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(kdecore.i18n(_fromUtf8("Form")))
        self.label_2.setText(kdecore.i18n(_fromUtf8("Regular expression to match:")))
        self.triggerRegexLineEdit.setToolTip(kdecore.i18n(_fromUtf8("Window title")))
        self.triggerRegexLineEdit.setWhatsThis(
            kdecore.i18n(
                _fromUtf8(
                    "Enter a regular expression that matches the title of windows in which you want this item to trigger."
                )
            )
        )
        self.recursiveCheckBox.setText(kdecore.i18n(_fromUtf8("Apply recursively to subfolders and items")))
        self.detectButton.setText(kdecore.i18n(_fromUtf8("Detect Window Properties")))
コード例 #6
0
ファイル: dialog.py プロジェクト: lennykey/pRenamer
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(442, 160)
        self.groupBox = QtGui.QGroupBox(Dialog)
        self.groupBox.setGeometry(QtCore.QRect(50, 10, 354, 121))
        self.groupBox.setObjectName("groupBox")
        self.formLayout = QtGui.QFormLayout(self.groupBox)
        self.formLayout.setObjectName("formLayout")
        self.dPfad = KUrlRequester(self.groupBox)
        self.dPfad.setObjectName("dPfad")
        self.dPfad.setMode(KFile.Mode(2))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.dPfad)
        self.dNeuerName = KLineEdit(self.groupBox)
        self.dNeuerName.setEnabled(True)
        self.dNeuerName.setObjectName("dNeuerName")
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.dNeuerName)
        self.dDateiEndung = QtGui.QLineEdit(self.groupBox)
        self.dDateiEndung.setObjectName("dDateiEndung")
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.dDateiEndung)
        self.groupBox_2 = QtGui.QGroupBox(Dialog)
        self.groupBox_2.setGeometry(QtCore.QRect(50, 80, 351, 64))
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.dAbbrechen = QtGui.QPushButton(self.groupBox_2)
        self.dAbbrechen.setObjectName("dAbbrechen")
        self.horizontalLayout.addWidget(self.dAbbrechen)
        self.dAusfuehren = QtGui.QPushButton(self.groupBox_2)
        self.dAusfuehren.setDefault(False)
        self.dAusfuehren.setObjectName("dAusfuehren")
        self.horizontalLayout.addWidget(self.dAusfuehren)

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

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("Dialog", "Renamer", None, QtGui.QApplication.UnicodeUTF8))
        self.dNeuerName.setText(QtGui.QApplication.translate("Dialog", "Neuer Name", None, QtGui.QApplication.UnicodeUTF8))
        self.dDateiEndung.setText(QtGui.QApplication.translate("Dialog", "Dateiendung", None, QtGui.QApplication.UnicodeUTF8))
        self.dAbbrechen.setText(QtGui.QApplication.translate("Dialog", "Abbrechen", None, QtGui.QApplication.UnicodeUTF8))
        self.dAusfuehren.setText(QtGui.QApplication.translate("Dialog", "Ok", None, QtGui.QApplication.UnicodeUTF8))
コード例 #7
0
ファイル: __init__.py プロジェクト: Alwnikrotikz/lilykde
    def __init__(self, parent):
        QWidget.__init__(self, parent)
        p = parent.addPage(self, i18n("Titles and Headers"))

        l = QHBoxLayout(self)
        # The html view with the score layout example
        t = QTextBrowser(self)
        t.setOpenLinks(False)
        t.setOpenExternalLinks(False)

        # ensure that the full HTML example page is displayed
        t.setContentsMargins(2, 2, 2, 2)
        t.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        t.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        t.setMinimumSize(QSize(350, 350))
        #t.document().documentLayout().documentSizeChanged.connect(
            #lambda size: t.setMinimumSize(size.toSize() + QSize(4, 4)))

        headers = ly.headers(i18n)
        msg = i18n("Click to enter a value.")
        t.setHtml(titles_html.format(
            copyrightmsg = i18n("bottom of first page"),
            taglinemsg = i18n("bottom of last page"),
            **dict((k, "<a title='{0}' href='{1}'>{2}</a>".format(msg, k, v))
                    for k, v in headers)))
        l.addWidget(t)
        t.anchorClicked.connect(lambda qurl:
            self.findChild(KLineEdit, qurl.toString()).setFocus())

        g = QGridLayout()
        g.setVerticalSpacing(1)
        g.setColumnMinimumWidth(1, 200)
        l.addLayout(g)

        for row, (name, title) in enumerate(headers):
            l = QLabel(title + ":", self)
            e = KLineEdit(self)
            e.setObjectName(name)
            l.setBuddy(e)
            g.addWidget(l, row, 0)
            g.addWidget(e, row, 1)
            # set completion items
            parent.complete(e)
コード例 #8
0
class Ui_LoginConfig(object):
    def setupUi(self, LoginConfig):
        LoginConfig.setObjectName("LoginConfig")
        LoginConfig.resize(504, 255)
        self.gridLayout = QtGui.QGridLayout(LoginConfig)
        self.gridLayout.setObjectName("gridLayout")
        self.label_2 = QtGui.QLabel(LoginConfig)
        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, 5, 1, 1, 1)
        self.passwordEdit = KLineEdit(LoginConfig)
        self.passwordEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.passwordEdit.setPasswordMode(True)
        self.passwordEdit.setObjectName("passwordEdit")
        self.gridLayout.addWidget(self.passwordEdit, 5, 2, 1, 1)
        self.label_7 = QtGui.QLabel(LoginConfig)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_7.setFont(font)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 7, 0, 1, 2)
        self.label_4 = QtGui.QLabel(LoginConfig)
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 8, 1, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.updateIntervalSpinBox = QtGui.QSpinBox(LoginConfig)
        self.updateIntervalSpinBox.setMinimum(1)
        self.updateIntervalSpinBox.setMaximum(999)
        self.updateIntervalSpinBox.setObjectName("updateIntervalSpinBox")
        self.horizontalLayout_2.addWidget(self.updateIntervalSpinBox)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout_2, 8, 2, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        self.gridLayout.addItem(spacerItem1, 6, 1, 1, 1)
        self.label = QtGui.QLabel(LoginConfig)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 4, 1, 1, 1)
        self.usernameEdit = KLineEdit(LoginConfig)
        self.usernameEdit.setObjectName("usernameEdit")
        self.gridLayout.addWidget(self.usernameEdit, 4, 2, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem2, 9, 1, 1, 1)
        self.label_6 = QtGui.QLabel(LoginConfig)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 3, 0, 1, 2)
        self.label_3 = QtGui.QLabel(LoginConfig)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
        self.providerComboBox = KComboBox(LoginConfig)
        self.providerComboBox.setObjectName("providerComboBox")
        self.gridLayout.addWidget(self.providerComboBox, 1, 2, 1, 1)
        self.label_5 = QtGui.QLabel(LoginConfig)
        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, 1, 1, 1, 1)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem3, 2, 1, 1, 1)
        self.label_2.setBuddy(self.passwordEdit)
        self.label_4.setBuddy(self.updateIntervalSpinBox)
        self.label.setBuddy(self.usernameEdit)

        self.retranslateUi(LoginConfig)
        QtCore.QMetaObject.connectSlotsByName(LoginConfig)
        LoginConfig.setTabOrder(self.usernameEdit, self.passwordEdit)
        LoginConfig.setTabOrder(self.passwordEdit, self.updateIntervalSpinBox)

    def retranslateUi(self, LoginConfig):
        self.label_2.setText(QtGui.QApplication.translate("LoginConfig", "Password:"******"LoginConfig", "Appearance", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("LoginConfig", "Refresh:", None, QtGui.QApplication.UnicodeUTF8))
        self.updateIntervalSpinBox.setSuffix(QtGui.QApplication.translate("LoginConfig", " minutes", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("LoginConfig", "Username:"******"LoginConfig", "Login", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("LoginConfig", "Service", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("LoginConfig", "Provider:", None, QtGui.QApplication.UnicodeUTF8))
コード例 #9
0
class Ui_FetchDialog(object):
    def setupUi(self, FetchDialog):
        FetchDialog.setObjectName(_fromUtf8("FetchDialog"))
        FetchDialog.resize(662, 31)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(FetchDialog.sizePolicy().hasHeightForWidth())
        FetchDialog.setSizePolicy(sizePolicy)
        FetchDialog.setWindowTitle(_fromUtf8(""))
        self.horizontalLayout = QtGui.QHBoxLayout(FetchDialog)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.closeButton = KPushButton(FetchDialog)
        self.closeButton.setFlat(True)
        self.closeButton.setObjectName(_fromUtf8("closeButton"))
        self.horizontalLayout.addWidget(self.closeButton)
        self.ratingLabel = QtGui.QLabel(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ratingLabel.sizePolicy().hasHeightForWidth())
        self.ratingLabel.setSizePolicy(sizePolicy)
        self.ratingLabel.setObjectName(_fromUtf8("ratingLabel"))
        self.horizontalLayout.addWidget(self.ratingLabel)
        self.ratingComboBox = KComboBox(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ratingComboBox.sizePolicy().hasHeightForWidth())
        self.ratingComboBox.setSizePolicy(sizePolicy)
        self.ratingComboBox.setObjectName(_fromUtf8("ratingComboBox"))
        self.ratingComboBox.addItem(_fromUtf8(""))
        self.ratingComboBox.addItem(_fromUtf8(""))
        self.ratingComboBox.addItem(_fromUtf8(""))
        self.horizontalLayout.addWidget(self.ratingComboBox)
        self.postLabel = QtGui.QLabel(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.postLabel.sizePolicy().hasHeightForWidth())
        self.postLabel.setSizePolicy(sizePolicy)
        self.postLabel.setObjectName(_fromUtf8("postLabel"))
        self.horizontalLayout.addWidget(self.postLabel)
        self.postSpinBox = KIntSpinBox(FetchDialog)
        self.postSpinBox.setMinimum(1)
        self.postSpinBox.setMaximum(100)
        self.postSpinBox.setObjectName(_fromUtf8("postSpinBox"))
        self.horizontalLayout.addWidget(self.postSpinBox)
        self.tagLabel = QtGui.QLabel(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tagLabel.sizePolicy().hasHeightForWidth())
        self.tagLabel.setSizePolicy(sizePolicy)
        self.tagLabel.setObjectName(_fromUtf8("tagLabel"))
        self.horizontalLayout.addWidget(self.tagLabel)
        self.tagLineEdit = KLineEdit(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tagLineEdit.sizePolicy().hasHeightForWidth())
        self.tagLineEdit.setSizePolicy(sizePolicy)
        self.tagLineEdit.setObjectName(_fromUtf8("tagLineEdit"))
        self.horizontalLayout.addWidget(self.tagLineEdit)
        self.downloadButton = KPushButton(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.downloadButton.sizePolicy().hasHeightForWidth())
        self.downloadButton.setSizePolicy(sizePolicy)
        self.downloadButton.setObjectName(_fromUtf8("downloadButton"))
        self.horizontalLayout.addWidget(self.downloadButton)

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

    def retranslateUi(self, FetchDialog):
        self.ratingLabel.setText(kdecore.i18n(_fromUtf8("Maximum rating: ")))
        self.ratingComboBox.setItemText(0, kdecore.i18n(_fromUtf8("Safe")))
        self.ratingComboBox.setItemText(1, kdecore.i18n(_fromUtf8("Questionable")))
        self.ratingComboBox.setItemText(2, kdecore.i18n(_fromUtf8("Explicit")))
        self.postLabel.setText(kdecore.i18n(_fromUtf8("Posts to retrieve:")))
        self.postSpinBox.setToolTip(kdecore.i18n(_fromUtf8("Number of posts to retrieve (max 100)")))
        self.postSpinBox.setWhatsThis(
            kdecore.i18n(
                _fromUtf8(
                    "The number of posts to retrieve. Notice that Danbooru limits the maximum number of posts to 100."
                )
            )
        )
        self.tagLabel.setText(kdecore.i18n(_fromUtf8("Tags:")))
        self.tagLineEdit.setToolTip(kdecore.i18n(_fromUtf8("Tags to include in search (optional)")))
        self.tagLineEdit.setWhatsThis(
            kdecore.i18n(
                _fromUtf8(
                    "Input here the tags that should be used when looking for posts. Separate them with commas, without spaces."
                )
            )
        )
        self.tagLineEdit.setClickMessage(kdecore.i18n(_fromUtf8("Tags, comma separated")))
        self.downloadButton.setText(kdecore.i18n(_fromUtf8("Download")))
コード例 #10
0
class Ui_INDIHostConf(object):
    def setupUi(self, INDIHostConf):
        INDIHostConf.setObjectName(_fromUtf8("INDIHostConf"))
        INDIHostConf.resize(437, 178)
        INDIHostConf.setSizeGripEnabled(True)
        self.vboxlayout = QtGui.QVBoxLayout(INDIHostConf)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setMargin(11)
        self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
        self.vboxlayout1 = QtGui.QVBoxLayout()
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setMargin(0)
        self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1"))
        self.textLabel1_3 = QtGui.QLabel(INDIHostConf)
        self.textLabel1_3.setObjectName(_fromUtf8("textLabel1_3"))
        self.vboxlayout1.addWidget(self.textLabel1_3)
        self.textLabel1 = QtGui.QLabel(INDIHostConf)
        self.textLabel1.setObjectName(_fromUtf8("textLabel1"))
        self.vboxlayout1.addWidget(self.textLabel1)
        self.textLabel1_2 = QtGui.QLabel(INDIHostConf)
        self.textLabel1_2.setObjectName(_fromUtf8("textLabel1_2"))
        self.vboxlayout1.addWidget(self.textLabel1_2)
        self.hboxlayout.addLayout(self.vboxlayout1)
        self.vboxlayout2 = QtGui.QVBoxLayout()
        self.vboxlayout2.setSpacing(6)
        self.vboxlayout2.setMargin(0)
        self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2"))
        self.nameIN = KLineEdit(INDIHostConf)
        self.nameIN.setObjectName(_fromUtf8("nameIN"))
        self.vboxlayout2.addWidget(self.nameIN)
        self.hostname = KLineEdit(INDIHostConf)
        self.hostname.setObjectName(_fromUtf8("hostname"))
        self.vboxlayout2.addWidget(self.hostname)
        self.portnumber = KLineEdit(INDIHostConf)
        self.portnumber.setObjectName(_fromUtf8("portnumber"))
        self.vboxlayout2.addWidget(self.portnumber)
        self.hboxlayout.addLayout(self.vboxlayout2)
        self.vboxlayout.addLayout(self.hboxlayout)
        spacerItem = QtGui.QSpacerItem(30, 35, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem)
        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setSpacing(6)
        self.hboxlayout1.setMargin(0)
        self.hboxlayout1.setObjectName(_fromUtf8("hboxlayout1"))
        spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.hboxlayout1.addItem(spacerItem1)
        self.buttonOk = QtGui.QPushButton(INDIHostConf)
        self.buttonOk.setAutoDefault(True)
        self.buttonOk.setDefault(True)
        self.buttonOk.setObjectName(_fromUtf8("buttonOk"))
        self.hboxlayout1.addWidget(self.buttonOk)
        self.buttonCancel = QtGui.QPushButton(INDIHostConf)
        self.buttonCancel.setAutoDefault(True)
        self.buttonCancel.setObjectName(_fromUtf8("buttonCancel"))
        self.hboxlayout1.addWidget(self.buttonCancel)
        self.vboxlayout.addLayout(self.hboxlayout1)

        self.retranslateUi(INDIHostConf)
        QtCore.QObject.connect(self.buttonOk, QtCore.SIGNAL(_fromUtf8("clicked()")), INDIHostConf.accept)
        QtCore.QObject.connect(self.buttonCancel, QtCore.SIGNAL(_fromUtf8("clicked()")), INDIHostConf.reject)
        QtCore.QMetaObject.connectSlotsByName(INDIHostConf)
        INDIHostConf.setTabOrder(self.nameIN, self.hostname)
        INDIHostConf.setTabOrder(self.hostname, self.portnumber)
        INDIHostConf.setTabOrder(self.portnumber, self.buttonOk)
        INDIHostConf.setTabOrder(self.buttonOk, self.buttonCancel)

    def retranslateUi(self, INDIHostConf):
        self.textLabel1_3.setText(kdecore.i18n(_fromUtf8("Name:")))
        self.textLabel1.setText(kdecore.i18n(_fromUtf8("Host:")))
        self.textLabel1_2.setText(kdecore.i18n(_fromUtf8("Port:")))
        self.buttonOk.setText(kdecore.i18n(_fromUtf8("&OK")))
        self.buttonCancel.setText(kdecore.i18n(_fromUtf8("&Cancel")))
コード例 #11
0
ファイル: RadicalPageUI.py プロジェクト: cburgmer/eclectus
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(273, 331)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.radicalOptions = QtGui.QStackedWidget(Form)
        self.radicalOptions.setObjectName("radicalOptions")
        self.page = QtGui.QWidget()
        self.page.setObjectName("page")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.page)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.gotoLabel = QtGui.QLabel(self.page)
        self.gotoLabel.setObjectName("gotoLabel")
        self.horizontalLayout_2.addWidget(self.gotoLabel)
        self.gotoEdit = KLineEdit(self.page)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.gotoEdit.sizePolicy().hasHeightForWidth())
        self.gotoEdit.setSizePolicy(sizePolicy)
        self.gotoEdit.setUrlDropsEnabled(False)
        self.gotoEdit.setProperty("showClearButton", QtCore.QVariant(True))
        self.gotoEdit.setObjectName("gotoEdit")
        self.horizontalLayout_2.addWidget(self.gotoEdit)
        self.gotoNextButton = QtGui.QToolButton(self.page)
        self.gotoNextButton.setObjectName("gotoNextButton")
        self.horizontalLayout_2.addWidget(self.gotoNextButton)
        self.gotoButton = QtGui.QToolButton(self.page)
        self.gotoButton.setObjectName("gotoButton")
        self.horizontalLayout_2.addWidget(self.gotoButton)
        self.radicalOptions.addWidget(self.page)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName("page_2")
        self.horizontalLayout = QtGui.QHBoxLayout(self.page_2)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.toRadicalTableButton = QtGui.QToolButton(self.page_2)
        self.toRadicalTableButton.setArrowType(QtCore.Qt.NoArrow)
        self.toRadicalTableButton.setObjectName("toRadicalTableButton")
        self.horizontalLayout.addWidget(self.toRadicalTableButton)
        spacerItem = QtGui.QSpacerItem(76, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.nonKangxiRadicalButton = QtGui.QToolButton(self.page_2)
        self.nonKangxiRadicalButton.setCheckable(True)
        self.nonKangxiRadicalButton.setAutoRaise(True)
        self.nonKangxiRadicalButton.setArrowType(QtCore.Qt.NoArrow)
        self.nonKangxiRadicalButton.setObjectName("nonKangxiRadicalButton")
        self.horizontalLayout.addWidget(self.nonKangxiRadicalButton)
        self.groupRadicalFormsButton = QtGui.QToolButton(self.page_2)
        self.groupRadicalFormsButton.setEnabled(False)
        self.groupRadicalFormsButton.setCheckable(True)
        self.groupRadicalFormsButton.setAutoRaise(True)
        self.groupRadicalFormsButton.setArrowType(QtCore.Qt.NoArrow)
        self.groupRadicalFormsButton.setObjectName("groupRadicalFormsButton")
        self.horizontalLayout.addWidget(self.groupRadicalFormsButton)
        self.radicalOptions.addWidget(self.page_2)
        self.verticalLayout.addWidget(self.radicalOptions)
        self.radicalView = QtWebKit.QWebView(Form)
        self.radicalView.setBaseSize(QtCore.QSize(0, 0))
        self.radicalView.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.radicalView.setUrl(QtCore.QUrl("about:blank"))
        self.radicalView.setObjectName("radicalView")
        self.verticalLayout.addWidget(self.radicalView)
        self.gotoLabel.setBuddy(self.gotoEdit)

        self.retranslateUi(Form)
        self.radicalOptions.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(kdecore.i18n("Form"))
        self.gotoLabel.setText(kdecore.i18n("Go &to:"))
        self.gotoEdit.setToolTip(kdecore.i18n("Enter the radical\'s name, the radical\'s form, its stroke count or its index (e.g. #10) to jump to the radical\'s entry."))
        self.gotoEdit.setWhatsThis(kdecore.i18n("Enter the radical\'s name, the radical\'s form, its stroke count or its index (e.g. #10) to jump to the radical\'s entry."))
        self.gotoNextButton.setToolTip(kdecore.i18n("Go to next match"))
        self.gotoNextButton.setWhatsThis(kdecore.i18n("Go to the next match in the table."))
        self.gotoButton.setToolTip(kdecore.i18n("Go to radical page"))
        self.gotoButton.setWhatsThis(kdecore.i18n("Go to radical page"))
        self.toRadicalTableButton.setToolTip(kdecore.i18n("Go back to radical table"))
        self.toRadicalTableButton.setStatusTip(kdecore.i18n("Go back to radical table"))
        self.nonKangxiRadicalButton.setToolTip(kdecore.i18n("Show all characters"))
        self.nonKangxiRadicalButton.setWhatsThis(kdecore.i18n("Show all characters including this radical form."))
        self.groupRadicalFormsButton.setToolTip(kdecore.i18n("Group characters by radical place"))
        self.groupRadicalFormsButton.setStatusTip(kdecore.i18n("Group characters by radical placement in glyph."))
コード例 #12
0
class Ui_INDIHostConf(object):
    def setupUi(self, INDIHostConf):
        INDIHostConf.setObjectName(_fromUtf8("INDIHostConf"))
        INDIHostConf.resize(437, 178)
        INDIHostConf.setSizeGripEnabled(True)
        self.vboxlayout = QtGui.QVBoxLayout(INDIHostConf)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setMargin(11)
        self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
        self.vboxlayout1 = QtGui.QVBoxLayout()
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setMargin(0)
        self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1"))
        self.textLabel1_3 = QtGui.QLabel(INDIHostConf)
        self.textLabel1_3.setObjectName(_fromUtf8("textLabel1_3"))
        self.vboxlayout1.addWidget(self.textLabel1_3)
        self.textLabel1 = QtGui.QLabel(INDIHostConf)
        self.textLabel1.setObjectName(_fromUtf8("textLabel1"))
        self.vboxlayout1.addWidget(self.textLabel1)
        self.textLabel1_2 = QtGui.QLabel(INDIHostConf)
        self.textLabel1_2.setObjectName(_fromUtf8("textLabel1_2"))
        self.vboxlayout1.addWidget(self.textLabel1_2)
        self.hboxlayout.addLayout(self.vboxlayout1)
        self.vboxlayout2 = QtGui.QVBoxLayout()
        self.vboxlayout2.setSpacing(6)
        self.vboxlayout2.setMargin(0)
        self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2"))
        self.nameIN = KLineEdit(INDIHostConf)
        self.nameIN.setObjectName(_fromUtf8("nameIN"))
        self.vboxlayout2.addWidget(self.nameIN)
        self.hostname = KLineEdit(INDIHostConf)
        self.hostname.setObjectName(_fromUtf8("hostname"))
        self.vboxlayout2.addWidget(self.hostname)
        self.portnumber = KLineEdit(INDIHostConf)
        self.portnumber.setObjectName(_fromUtf8("portnumber"))
        self.vboxlayout2.addWidget(self.portnumber)
        self.hboxlayout.addLayout(self.vboxlayout2)
        self.vboxlayout.addLayout(self.hboxlayout)
        spacerItem = QtGui.QSpacerItem(30, 35, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem)
        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setSpacing(6)
        self.hboxlayout1.setMargin(0)
        self.hboxlayout1.setObjectName(_fromUtf8("hboxlayout1"))
        spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.hboxlayout1.addItem(spacerItem1)
        self.buttonOk = QtGui.QPushButton(INDIHostConf)
        self.buttonOk.setAutoDefault(True)
        self.buttonOk.setDefault(True)
        self.buttonOk.setObjectName(_fromUtf8("buttonOk"))
        self.hboxlayout1.addWidget(self.buttonOk)
        self.buttonCancel = QtGui.QPushButton(INDIHostConf)
        self.buttonCancel.setAutoDefault(True)
        self.buttonCancel.setObjectName(_fromUtf8("buttonCancel"))
        self.hboxlayout1.addWidget(self.buttonCancel)
        self.vboxlayout.addLayout(self.hboxlayout1)

        self.retranslateUi(INDIHostConf)
        QtCore.QObject.connect(self.buttonOk,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               INDIHostConf.accept)
        QtCore.QObject.connect(self.buttonCancel,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               INDIHostConf.reject)
        QtCore.QMetaObject.connectSlotsByName(INDIHostConf)
        INDIHostConf.setTabOrder(self.nameIN, self.hostname)
        INDIHostConf.setTabOrder(self.hostname, self.portnumber)
        INDIHostConf.setTabOrder(self.portnumber, self.buttonOk)
        INDIHostConf.setTabOrder(self.buttonOk, self.buttonCancel)

    def retranslateUi(self, INDIHostConf):
        self.textLabel1_3.setText(kdecore.i18n(_fromUtf8("Name:")))
        self.textLabel1.setText(kdecore.i18n(_fromUtf8("Host:")))
        self.textLabel1_2.setText(kdecore.i18n(_fromUtf8("Port:")))
        self.buttonOk.setText(kdecore.i18n(_fromUtf8("&OK")))
        self.buttonCancel.setText(kdecore.i18n(_fromUtf8("&Cancel")))
コード例 #13
0
class Ui_FetchDialog(object):
    def setupUi(self, FetchDialog):
        FetchDialog.setObjectName(_fromUtf8("FetchDialog"))
        FetchDialog.resize(662, 31)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            FetchDialog.sizePolicy().hasHeightForWidth())
        FetchDialog.setSizePolicy(sizePolicy)
        FetchDialog.setWindowTitle(_fromUtf8(""))
        self.horizontalLayout = QtGui.QHBoxLayout(FetchDialog)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.closeButton = KPushButton(FetchDialog)
        self.closeButton.setFlat(True)
        self.closeButton.setObjectName(_fromUtf8("closeButton"))
        self.horizontalLayout.addWidget(self.closeButton)
        self.ratingLabel = QtGui.QLabel(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ratingLabel.sizePolicy().hasHeightForWidth())
        self.ratingLabel.setSizePolicy(sizePolicy)
        self.ratingLabel.setObjectName(_fromUtf8("ratingLabel"))
        self.horizontalLayout.addWidget(self.ratingLabel)
        self.ratingComboBox = KComboBox(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ratingComboBox.sizePolicy().hasHeightForWidth())
        self.ratingComboBox.setSizePolicy(sizePolicy)
        self.ratingComboBox.setObjectName(_fromUtf8("ratingComboBox"))
        self.ratingComboBox.addItem(_fromUtf8(""))
        self.ratingComboBox.addItem(_fromUtf8(""))
        self.ratingComboBox.addItem(_fromUtf8(""))
        self.horizontalLayout.addWidget(self.ratingComboBox)
        self.postLabel = QtGui.QLabel(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.postLabel.sizePolicy().hasHeightForWidth())
        self.postLabel.setSizePolicy(sizePolicy)
        self.postLabel.setObjectName(_fromUtf8("postLabel"))
        self.horizontalLayout.addWidget(self.postLabel)
        self.postSpinBox = KIntSpinBox(FetchDialog)
        self.postSpinBox.setMinimum(1)
        self.postSpinBox.setMaximum(100)
        self.postSpinBox.setObjectName(_fromUtf8("postSpinBox"))
        self.horizontalLayout.addWidget(self.postSpinBox)
        self.tagLabel = QtGui.QLabel(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tagLabel.sizePolicy().hasHeightForWidth())
        self.tagLabel.setSizePolicy(sizePolicy)
        self.tagLabel.setObjectName(_fromUtf8("tagLabel"))
        self.horizontalLayout.addWidget(self.tagLabel)
        self.tagLineEdit = KLineEdit(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tagLineEdit.sizePolicy().hasHeightForWidth())
        self.tagLineEdit.setSizePolicy(sizePolicy)
        self.tagLineEdit.setObjectName(_fromUtf8("tagLineEdit"))
        self.horizontalLayout.addWidget(self.tagLineEdit)
        self.downloadButton = KPushButton(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.downloadButton.sizePolicy().hasHeightForWidth())
        self.downloadButton.setSizePolicy(sizePolicy)
        self.downloadButton.setObjectName(_fromUtf8("downloadButton"))
        self.horizontalLayout.addWidget(self.downloadButton)

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

    def retranslateUi(self, FetchDialog):
        self.ratingLabel.setText(kdecore.i18n(_fromUtf8("Maximum rating: ")))
        self.ratingComboBox.setItemText(0, kdecore.i18n(_fromUtf8("Safe")))
        self.ratingComboBox.setItemText(
            1, kdecore.i18n(_fromUtf8("Questionable")))
        self.ratingComboBox.setItemText(2, kdecore.i18n(_fromUtf8("Explicit")))
        self.postLabel.setText(kdecore.i18n(_fromUtf8("Posts to retrieve:")))
        self.postSpinBox.setToolTip(
            kdecore.i18n(_fromUtf8("Number of posts to retrieve (max 100)")))
        self.postSpinBox.setWhatsThis(
            kdecore.i18n(
                _fromUtf8(
                    "The number of posts to retrieve. Notice that Danbooru limits the maximum number of posts to 100."
                )))
        self.tagLabel.setText(kdecore.i18n(_fromUtf8("Tags:")))
        self.tagLineEdit.setToolTip(
            kdecore.i18n(_fromUtf8("Tags to include in search (optional)")))
        self.tagLineEdit.setWhatsThis(
            kdecore.i18n(
                _fromUtf8(
                    "Input here the tags that should be used when looking for posts. Separate them with commas, without spaces."
                )))
        self.tagLineEdit.setClickMessage(
            kdecore.i18n(_fromUtf8("Tags, comma separated")))
        self.downloadButton.setText(kdecore.i18n(_fromUtf8("Download")))
コード例 #14
0
ファイル: LibraryForm.py プロジェクト: tarmack/Pythagora
class Ui_LibraryForm(object):
    def setupUi(self, LibraryForm):
        LibraryForm.setObjectName(_fromUtf8("LibraryForm"))
        LibraryForm.resize(570, 512)
        self.horizontalLayout = QtGui.QHBoxLayout(LibraryForm)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.libSplitter_1 = QtGui.QSplitter(LibraryForm)
        self.libSplitter_1.setOrientation(QtCore.Qt.Vertical)
        self.libSplitter_1.setObjectName(_fromUtf8("libSplitter_1"))
        self.libSplitter_2 = QtGui.QSplitter(self.libSplitter_1)
        self.libSplitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.libSplitter_2.setObjectName(_fromUtf8("libSplitter_2"))
        self.widget = QtGui.QWidget(self.libSplitter_2)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.gridLayout = QtGui.QGridLayout(self.widget)
        self.gridLayout.setMargin(0)
        self.gridLayout.setSpacing(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMargin(2)
        self.label.setIndent(2)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.artistSearchField = KLineEdit(self.widget)
        self.artistSearchField.setProperty("trapEnterKeyEvent", True)
        self.artistSearchField.setProperty("showClearButton", True)
        self.artistSearchField.setObjectName(_fromUtf8("artistSearchField"))
        self.gridLayout.addWidget(self.artistSearchField, 0, 1, 1, 2)
        self.artistView = QtGui.QListView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.artistView.sizePolicy().hasHeightForWidth())
        self.artistView.setSizePolicy(sizePolicy)
        self.artistView.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.artistView.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.artistView.setDragEnabled(True)
        self.artistView.setDragDropMode(QtGui.QAbstractItemView.DragOnly)
        self.artistView.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.artistView.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.artistView.setHorizontalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.artistView.setObjectName(_fromUtf8("artistView"))
        self.gridLayout.addWidget(self.artistView, 1, 0, 2, 3)
        self.widget_3 = QtGui.QWidget(self.libSplitter_2)
        self.widget_3.setObjectName(_fromUtf8("widget_3"))
        self.gridLayout_3 = QtGui.QGridLayout(self.widget_3)
        self.gridLayout_3.setMargin(0)
        self.gridLayout_3.setSpacing(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.albumSearchField = KLineEdit(self.widget_3)
        self.albumSearchField.setProperty("trapEnterKeyEvent", True)
        self.albumSearchField.setProperty("showClearButton", True)
        self.albumSearchField.setObjectName(_fromUtf8("albumSearchField"))
        self.gridLayout_3.addWidget(self.albumSearchField, 0, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.widget_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setMargin(2)
        self.label_3.setIndent(2)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 1)
        self.albumView = QtGui.QListView(self.widget_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.albumView.sizePolicy().hasHeightForWidth())
        self.albumView.setSizePolicy(sizePolicy)
        self.albumView.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.albumView.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.albumView.setDragEnabled(True)
        self.albumView.setDragDropMode(QtGui.QAbstractItemView.DragOnly)
        self.albumView.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.albumView.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.albumView.setHorizontalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.albumView.setObjectName(_fromUtf8("albumView"))
        self.gridLayout_3.addWidget(self.albumView, 1, 0, 1, 3)
        self.showAllAlbums = QtGui.QPushButton(self.widget_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.showAllAlbums.sizePolicy().hasHeightForWidth())
        self.showAllAlbums.setSizePolicy(sizePolicy)
        self.showAllAlbums.setObjectName(_fromUtf8("showAllAlbums"))
        self.gridLayout_3.addWidget(self.showAllAlbums, 0, 2, 1, 1)
        self.widget_4 = QtGui.QWidget(self.libSplitter_1)
        self.widget_4.setObjectName(_fromUtf8("widget_4"))
        self.gridLayout_9 = QtGui.QGridLayout(self.widget_4)
        self.gridLayout_9.setMargin(0)
        self.gridLayout_9.setSpacing(0)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.label_2 = QtGui.QLabel(self.widget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setMargin(2)
        self.label_2.setIndent(2)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_9.addWidget(self.label_2, 0, 0, 1, 1)
        self.trackSearchField = KLineEdit(self.widget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.trackSearchField.sizePolicy().hasHeightForWidth())
        self.trackSearchField.setSizePolicy(sizePolicy)
        self.trackSearchField.setProperty("trapEnterKeyEvent", True)
        self.trackSearchField.setProperty("showClearButton", True)
        self.trackSearchField.setObjectName(_fromUtf8("trackSearchField"))
        self.gridLayout_9.addWidget(self.trackSearchField, 0, 1, 1, 1)
        self.trackView = QtGui.QTableView(self.widget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.trackView.sizePolicy().hasHeightForWidth())
        self.trackView.setSizePolicy(sizePolicy)
        self.trackView.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.trackView.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.trackView.setTabKeyNavigation(True)
        self.trackView.setDragEnabled(True)
        self.trackView.setDragDropMode(QtGui.QAbstractItemView.DragOnly)
        self.trackView.setAlternatingRowColors(True)
        self.trackView.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.trackView.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.trackView.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.trackView.setHorizontalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.trackView.setShowGrid(False)
        self.trackView.setCornerButtonEnabled(False)
        self.trackView.setObjectName(_fromUtf8("trackView"))
        self.trackView.horizontalHeader().setDefaultSectionSize(50)
        self.trackView.horizontalHeader().setHighlightSections(False)
        self.trackView.horizontalHeader().setMinimumSectionSize(32)
        self.trackView.horizontalHeader().setStretchLastSection(False)
        self.trackView.verticalHeader().setVisible(False)
        self.trackView.verticalHeader().setDefaultSectionSize(16)
        self.trackView.verticalHeader().setMinimumSectionSize(16)
        self.gridLayout_9.addWidget(self.trackView, 1, 0, 1, 3)
        self.showAllTracks = QtGui.QPushButton(self.widget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.showAllTracks.sizePolicy().hasHeightForWidth())
        self.showAllTracks.setSizePolicy(sizePolicy)
        self.showAllTracks.setObjectName(_fromUtf8("showAllTracks"))
        self.gridLayout_9.addWidget(self.showAllTracks, 0, 2, 1, 1)
        self.horizontalLayout.addWidget(self.libSplitter_1)
        self.label.setBuddy(self.artistSearchField)
        self.label_3.setBuddy(self.albumSearchField)
        self.label_2.setBuddy(self.trackSearchField)

        self.retranslateUi(LibraryForm)
        QtCore.QMetaObject.connectSlotsByName(LibraryForm)
        LibraryForm.setTabOrder(self.artistSearchField, self.artistView)
        LibraryForm.setTabOrder(self.artistView, self.albumSearchField)
        LibraryForm.setTabOrder(self.albumSearchField, self.showAllAlbums)
        LibraryForm.setTabOrder(self.showAllAlbums, self.albumView)
        LibraryForm.setTabOrder(self.albumView, self.trackSearchField)
        LibraryForm.setTabOrder(self.trackSearchField, self.showAllTracks)
        LibraryForm.setTabOrder(self.showAllTracks, self.trackView)

    def retranslateUi(self, LibraryForm):
        LibraryForm.setWindowTitle(_translate("LibraryForm", "Form", None))
        self.label.setText(_translate("LibraryForm", "Artist", None))
        self.label_3.setText(_translate("LibraryForm", "Album", None))
        self.showAllAlbums.setToolTip(_translate("LibraryForm", "Resets the album list to show all your albums again.", None))
        self.showAllAlbums.setText(_translate("LibraryForm", "Show All", None))
        self.label_2.setText(_translate("LibraryForm", "Tracks", None))
        self.showAllTracks.setToolTip(_translate("LibraryForm", "Resets the track list to show all your songs again.", None))
        self.showAllTracks.setText(_translate("LibraryForm", "Show All", None))
コード例 #15
0
ファイル: CurrentListForm.py プロジェクト: tarmack/Pythagora
class Ui_CurrentListForm(object):
    def setupUi(self, CurrentListForm):
        CurrentListForm.setObjectName(_fromUtf8("CurrentListForm"))
        CurrentListForm.resize(380, 304)
        self.horizontalLayout_2 = QtGui.QHBoxLayout(CurrentListForm)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.currentGroup = QtGui.QGroupBox(CurrentListForm)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(4)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.currentGroup.sizePolicy().hasHeightForWidth())
        self.currentGroup.setSizePolicy(sizePolicy)
        self.currentGroup.setObjectName(_fromUtf8("currentGroup"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.currentGroup)
        self.verticalLayout_4.setMargin(0)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.currentList = QtGui.QTableView(self.currentGroup)
        self.currentList.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.currentList.setAcceptDrops(True)
        self.currentList.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.currentList.setDragEnabled(True)
        self.currentList.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
        self.currentList.setAlternatingRowColors(True)
        self.currentList.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.currentList.setTextElideMode(QtCore.Qt.ElideNone)
        self.currentList.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.currentList.setHorizontalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.currentList.setShowGrid(False)
        self.currentList.setWordWrap(False)
        self.currentList.setObjectName(_fromUtf8("currentList"))
        self.currentList.horizontalHeader().setVisible(False)
        self.currentList.horizontalHeader().setMinimumSectionSize(2)
        self.currentList.verticalHeader().setVisible(False)
        self.currentList.verticalHeader().setDefaultSectionSize(2)
        self.currentList.verticalHeader().setMinimumSectionSize(2)
        self.verticalLayout_4.addWidget(self.currentList)
        self.playlistTools = QtGui.QWidget(self.currentGroup)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.playlistTools.sizePolicy().hasHeightForWidth())
        self.playlistTools.setSizePolicy(sizePolicy)
        self.playlistTools.setObjectName(_fromUtf8("playlistTools"))
        self.toolsLayout = QtGui.QGridLayout(self.playlistTools)
        self.toolsLayout.setContentsMargins(3, 1, 1, 1)
        self.toolsLayout.setObjectName(_fromUtf8("toolsLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_4 = QtGui.QLabel(self.playlistTools)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        self.currentFilter = KLineEdit(self.playlistTools)
        self.currentFilter.setProperty("showClearButton", True)
        self.currentFilter.setObjectName(_fromUtf8("currentFilter"))
        self.horizontalLayout.addWidget(self.currentFilter)
        self.toolsLayout.addLayout(self.horizontalLayout, 0, 0, 1, 2)
        self.oneLinePlaylist = QtGui.QCheckBox(self.playlistTools)
        self.oneLinePlaylist.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.oneLinePlaylist.setObjectName(_fromUtf8("oneLinePlaylist"))
        self.toolsLayout.addWidget(self.oneLinePlaylist, 1, 0, 1, 1)
        self.keepPlayingVisible = QtGui.QCheckBox(self.playlistTools)
        self.keepPlayingVisible.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.keepPlayingVisible.sizePolicy().hasHeightForWidth())
        self.keepPlayingVisible.setSizePolicy(sizePolicy)
        self.keepPlayingVisible.setObjectName(_fromUtf8("keepPlayingVisible"))
        self.toolsLayout.addWidget(self.keepPlayingVisible, 2, 0, 1, 1)
        self.showNumbers = QtGui.QCheckBox(self.playlistTools)
        self.showNumbers.setObjectName(_fromUtf8("showNumbers"))
        self.toolsLayout.addWidget(self.showNumbers, 3, 0, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(26, -1, -1, -1)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_7 = QtGui.QLabel(self.playlistTools)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth())
        self.label_7.setSizePolicy(sizePolicy)
        self.label_7.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.horizontalLayout_3.addWidget(self.label_7)
        self.crossFade = QtGui.QSpinBox(self.playlistTools)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.crossFade.sizePolicy().hasHeightForWidth())
        self.crossFade.setSizePolicy(sizePolicy)
        self.crossFade.setMaximumSize(QtCore.QSize(45, 16777215))
        self.crossFade.setObjectName(_fromUtf8("crossFade"))
        self.horizontalLayout_3.addWidget(self.crossFade)
        self.label = QtGui.QLabel(self.playlistTools)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_3.addWidget(self.label)
        self.toolsLayout.addLayout(self.horizontalLayout_3, 4, 0, 1, 1)
        self.currentClear = QtGui.QPushButton(self.playlistTools)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.currentClear.sizePolicy().hasHeightForWidth())
        self.currentClear.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("ui/icons/edit-clear-list.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.currentClear.setIcon(icon)
        self.currentClear.setObjectName(_fromUtf8("currentClear"))
        self.toolsLayout.addWidget(self.currentClear, 4, 1, 1, 1)
        self.currentRemove = QtGui.QPushButton(self.playlistTools)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.currentRemove.sizePolicy().hasHeightForWidth())
        self.currentRemove.setSizePolicy(sizePolicy)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("ui/icons/list-remove.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.currentRemove.setIcon(icon1)
        self.currentRemove.setObjectName(_fromUtf8("currentRemove"))
        self.toolsLayout.addWidget(self.currentRemove, 3, 1, 1, 1)
        self.currentSave = QtGui.QPushButton(self.playlistTools)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.currentSave.sizePolicy().hasHeightForWidth())
        self.currentSave.setSizePolicy(sizePolicy)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("ui/icons/document-save-as.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.currentSave.setIcon(icon2)
        self.currentSave.setObjectName(_fromUtf8("currentSave"))
        self.toolsLayout.addWidget(self.currentSave, 1, 1, 1, 1)
        self.addStream = QtGui.QPushButton(self.playlistTools)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.addStream.sizePolicy().hasHeightForWidth())
        self.addStream.setSizePolicy(sizePolicy)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8("ui/icons/network-workgroup.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.addStream.setIcon(icon3)
        self.addStream.setObjectName(_fromUtf8("addStream"))
        self.toolsLayout.addWidget(self.addStream, 2, 1, 1, 1)
        self.verticalLayout_4.addWidget(self.playlistTools)
        self.horizontalWidget = QtGui.QWidget(self.currentGroup)
        self.horizontalWidget.setObjectName(_fromUtf8("horizontalWidget"))
        self.currentBottomL = QtGui.QHBoxLayout(self.horizontalWidget)
        self.currentBottomL.setMargin(0)
        self.currentBottomL.setObjectName(_fromUtf8("currentBottomL"))
        self.currentBottom = QtGui.QToolButton(self.horizontalWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.currentBottom.sizePolicy().hasHeightForWidth())
        self.currentBottom.setSizePolicy(sizePolicy)
        self.currentBottom.setCheckable(False)
        self.currentBottom.setChecked(False)
        self.currentBottom.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.currentBottom.setAutoRaise(True)
        self.currentBottom.setArrowType(QtCore.Qt.UpArrow)
        self.currentBottom.setObjectName(_fromUtf8("currentBottom"))
        self.currentBottomL.addWidget(self.currentBottom)
        self.repeatButton = QtGui.QPushButton(self.horizontalWidget)
        self.repeatButton.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.repeatButton.sizePolicy().hasHeightForWidth())
        self.repeatButton.setSizePolicy(sizePolicy)
        self.repeatButton.setMaximumSize(QtCore.QSize(26, 26))
        self.repeatButton.setText(_fromUtf8(""))
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8("ui/icons/task-recurring.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.repeatButton.setIcon(icon4)
        self.repeatButton.setCheckable(True)
        self.repeatButton.setFlat(True)
        self.repeatButton.setObjectName(_fromUtf8("repeatButton"))
        self.currentBottomL.addWidget(self.repeatButton)
        self.randomButton = QtGui.QPushButton(self.horizontalWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.randomButton.sizePolicy().hasHeightForWidth())
        self.randomButton.setSizePolicy(sizePolicy)
        self.randomButton.setMaximumSize(QtCore.QSize(26, 26))
        self.randomButton.setText(_fromUtf8(""))
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8("ui/icons/media-playlist-shuffle.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.randomButton.setIcon(icon5)
        self.randomButton.setCheckable(True)
        self.randomButton.setFlat(True)
        self.randomButton.setObjectName(_fromUtf8("randomButton"))
        self.currentBottomL.addWidget(self.randomButton)
        self.verticalLayout_4.addWidget(self.horizontalWidget)
        self.horizontalLayout_2.addWidget(self.currentGroup)
        self.label_4.setBuddy(self.currentFilter)
        self.label_7.setBuddy(self.crossFade)

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

    def retranslateUi(self, CurrentListForm):
        CurrentListForm.setWindowTitle(_translate("CurrentListForm", "Form", None))
        self.currentGroup.setTitle(_translate("CurrentListForm", "Current Playlist", None))
        self.label_4.setText(_translate("CurrentListForm", "Filter", None))
        self.oneLinePlaylist.setText(_translate("CurrentListForm", "Use one line per playlist item.", None))
        self.keepPlayingVisible.setText(_translate("CurrentListForm", "Keep current song visible", None))
        self.showNumbers.setText(_translate("CurrentListForm", "Show song numbers", None))
        self.label_7.setText(_translate("CurrentListForm", "XFade", None))
        self.label.setText(_translate("CurrentListForm", "seconds", None))
        self.currentClear.setText(_translate("CurrentListForm", "Clear", None))
        self.currentRemove.setText(_translate("CurrentListForm", "Remove", None))
        self.currentSave.setText(_translate("CurrentListForm", "Save", None))
        self.addStream.setText(_translate("CurrentListForm", "Add Stream", None))
        self.currentBottom.setText(_translate("CurrentListForm", "Show Playlist Tools", None))
        self.repeatButton.setToolTip(_translate("CurrentListForm", "Repeat", None))
        self.randomButton.setToolTip(_translate("CurrentListForm", "Random", None))
コード例 #16
0
ファイル: ComponentPageUI.py プロジェクト: cburgmer/eclectus
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(229, 324)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label = QtGui.QLabel(Form)
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label)
        self.componentEdit = KLineEdit(Form)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.componentEdit.setFont(font)
        self.componentEdit.setUrlDropsEnabled(False)
        self.componentEdit.setProperty("showClearButton", QtCore.QVariant(True))
        self.componentEdit.setObjectName("componentEdit")
        self.horizontalLayout_3.addWidget(self.componentEdit)
        self.includeSimilarButton = QtGui.QToolButton(Form)
        self.includeSimilarButton.setCheckable(True)
        self.includeSimilarButton.setChecked(True)
        self.includeSimilarButton.setAutoRaise(True)
        self.includeSimilarButton.setObjectName("includeSimilarButton")
        self.horizontalLayout_3.addWidget(self.includeSimilarButton)
        self.includeVariantsButton = QtGui.QToolButton(Form)
        self.includeVariantsButton.setCheckable(True)
        self.includeVariantsButton.setChecked(True)
        self.includeVariantsButton.setAutoRaise(True)
        self.includeVariantsButton.setObjectName("includeVariantsButton")
        self.horizontalLayout_3.addWidget(self.includeVariantsButton)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.componentSplitter = QtGui.QSplitter(Form)
        self.componentSplitter.setFrameShape(QtGui.QFrame.NoFrame)
        self.componentSplitter.setFrameShadow(QtGui.QFrame.Plain)
        self.componentSplitter.setOrientation(QtCore.Qt.Vertical)
        self.componentSplitter.setChildrenCollapsible(False)
        self.componentSplitter.setObjectName("componentSplitter")
        self.componentView = QtWebKit.QWebView(self.componentSplitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.componentView.sizePolicy().hasHeightForWidth())
        self.componentView.setSizePolicy(sizePolicy)
        self.componentView.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.componentView.setUrl(QtCore.QUrl("about:blank"))
        self.componentView.setObjectName("componentView")
        self.verticalLayoutWidget_2 = QtGui.QWidget(self.componentSplitter)
        self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.componentResultLabel = QtGui.QLabel(self.verticalLayoutWidget_2)
        self.componentResultLabel.setObjectName("componentResultLabel")
        self.verticalLayout_6.addWidget(self.componentResultLabel)
        self.componentResultView = QtWebKit.QWebView(self.verticalLayoutWidget_2)
        self.componentResultView.setMinimumSize(QtCore.QSize(0, 45))
        self.componentResultView.setMaximumSize(QtCore.QSize(16777215, 80))
        self.componentResultView.setBaseSize(QtCore.QSize(0, 0))
        self.componentResultView.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.componentResultView.setUrl(QtCore.QUrl("about:blank"))
        self.componentResultView.setObjectName("componentResultView")
        self.verticalLayout_6.addWidget(self.componentResultView)
        self.verticalLayout.addWidget(self.componentSplitter)
        self.label.setBuddy(self.componentEdit)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(kdecore.i18n("Form"))
        self.label.setText(kdecore.i18n("&Search:"))
        self.includeSimilarButton.setToolTip(kdecore.i18n("Include similar forms in search"))
        self.includeSimilarButton.setWhatsThis(kdecore.i18n("Include characters with similar forms in search."))
        self.includeVariantsButton.setToolTip(kdecore.i18n("Include radical variant forms in search"))
        self.includeVariantsButton.setWhatsThis(kdecore.i18n("Include variant forms for a given radical in search to easily look for variants by giving the main radical form."))
        self.componentResultLabel.setText(kdecore.i18n("Results:"))