コード例 #1
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")))
コード例 #2
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")))
コード例 #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))