コード例 #1
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")))
コード例 #2
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")))
コード例 #3
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."))
コード例 #4
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))
コード例 #5
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))
コード例 #6
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:"))