summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/ui/dialog_playlist_manager.py
blob: 17327f63c33b97f240a78dee0ffd2b274f2c0d36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
################################################################################
## Form generated from reading UI file 'dialog_playlist_manager.ui'
##
## Created by: Qt User Interface Compiler version 6.10.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide6.QtCore import QCoreApplication, QMetaObject, QRect, QSize, Qt
from PySide6.QtWidgets import (
    QFrame,
    QHBoxLayout,
    QLabel,
    QPushButton,
    QScrollArea,
    QSizePolicy,
    QSpacerItem,
    QVBoxLayout,
    QWidget,
)


class Ui_DialogPlaylistManager:
    def setupUi(self, DialogPlaylistManager):
        if not DialogPlaylistManager.objectName():
            DialogPlaylistManager.setObjectName("DialogPlaylistManager")
        DialogPlaylistManager.resize(609, 760)
        DialogPlaylistManager.setMinimumSize(QSize(520, 560))
        self.verticalLayoutRoot = QVBoxLayout(DialogPlaylistManager)
        self.verticalLayoutRoot.setObjectName("verticalLayoutRoot")
        self.horizontalLayoutHeader = QHBoxLayout()
        self.horizontalLayoutHeader.setObjectName("horizontalLayoutHeader")
        self.labelTitle = QLabel(DialogPlaylistManager)
        self.labelTitle.setObjectName("labelTitle")
        self.labelTitle.setWordWrap(True)

        self.horizontalLayoutHeader.addWidget(self.labelTitle)

        self.verticalLayoutRoot.addLayout(self.horizontalLayoutHeader)

        self.frameSeparator = QFrame(DialogPlaylistManager)
        self.frameSeparator.setObjectName("frameSeparator")
        self.frameSeparator.setFrameShape(QFrame.Shape.HLine)
        self.frameSeparator.setFrameShadow(QFrame.Shadow.Sunken)

        self.verticalLayoutRoot.addWidget(self.frameSeparator)

        self.scrollArea = QScrollArea(DialogPlaylistManager)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollArea.setWidgetResizable(True)
        self.scrollAreaWidgetContents = QWidget()
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 589, 666))
        self.verticalLayoutList = QVBoxLayout(self.scrollAreaWidgetContents)
        self.verticalLayoutList.setObjectName("verticalLayoutList")
        self.labelEmpty = QLabel(self.scrollAreaWidgetContents)
        self.labelEmpty.setObjectName("labelEmpty")
        self.labelEmpty.setAlignment(Qt.AlignmentFlag.AlignCenter)

        self.verticalLayoutList.addWidget(self.labelEmpty)

        self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)

        self.verticalLayoutList.addItem(self.verticalSpacer)

        self.scrollArea.setWidget(self.scrollAreaWidgetContents)

        self.verticalLayoutRoot.addWidget(self.scrollArea)

        self.frameFooterSeparator = QFrame(DialogPlaylistManager)
        self.frameFooterSeparator.setObjectName("frameFooterSeparator")
        self.frameFooterSeparator.setFrameShape(QFrame.Shape.HLine)
        self.frameFooterSeparator.setFrameShadow(QFrame.Shadow.Sunken)

        self.verticalLayoutRoot.addWidget(self.frameFooterSeparator)

        self.horizontalLayoutFooter = QHBoxLayout()
        self.horizontalLayoutFooter.setObjectName("horizontalLayoutFooter")
        self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayoutFooter.addItem(self.horizontalSpacer)

        self.buttonClose = QPushButton(DialogPlaylistManager)
        self.buttonClose.setObjectName("buttonClose")

        self.horizontalLayoutFooter.addWidget(self.buttonClose)

        self.verticalLayoutRoot.addLayout(self.horizontalLayoutFooter)

        self.retranslateUi(DialogPlaylistManager)
        self.buttonClose.clicked.connect(DialogPlaylistManager.accept)

        self.buttonClose.setDefault(True)

        QMetaObject.connectSlotsByName(DialogPlaylistManager)

    # setupUi

    def retranslateUi(self, DialogPlaylistManager):
        DialogPlaylistManager.setWindowTitle(
            QCoreApplication.translate("DialogPlaylistManager", "G\u00e9rer les playlists", None)
        )
        self.labelTitle.setText(
            QCoreApplication.translate(
                "DialogPlaylistManager",
                'G\u00e9rer les playlists pour : <b><span style="color:#1e88e5;">Titre de la Piste</span></b>',
                None,
            )
        )
        self.labelEmpty.setText(
            QCoreApplication.translate("DialogPlaylistManager", "Aucune playlist disponible.", None)
        )
        self.buttonClose.setText(QCoreApplication.translate("DialogPlaylistManager", "Fermer", None))

    # retranslateUi