9 #ifndef UI_GUI_PLAYLIST_H 10 #define UI_GUI_PLAYLIST_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QToolButton> 20 #include <QtWidgets/QWidget> 21 #include "Gui/Playlist/PlaylistBottomBar.h" 22 #include "Gui/Playlist/PlaylistTabWidget.h" 29 QGridLayout *gridLayout;
31 QHBoxLayout *horizontalLayout;
32 QLabel *lab_totalTime;
33 QPushButton *btn_clear;
34 QToolButton *btn_tool;
37 QGridLayout *gridLayout_2;
39 void setupUi(QWidget *Playlist_Window)
41 if (Playlist_Window->objectName().isEmpty())
42 Playlist_Window->setObjectName(QString::fromUtf8(
"Playlist_Window"));
43 Playlist_Window->resize(478, 554);
44 gridLayout =
new QGridLayout(Playlist_Window);
45 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
46 gridLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
47 gridLayout->setHorizontalSpacing(0);
48 gridLayout->setVerticalSpacing(4);
49 gridLayout->setContentsMargins(0, 3, 0, 0);
51 bottom_bar->setObjectName(QString::fromUtf8(
"bottom_bar"));
52 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Maximum);
53 sizePolicy.setHorizontalStretch(0);
54 sizePolicy.setVerticalStretch(0);
55 sizePolicy.setHeightForWidth(bottom_bar->sizePolicy().hasHeightForWidth());
56 bottom_bar->setSizePolicy(sizePolicy);
58 gridLayout->addWidget(bottom_bar, 4, 0, 1, 1);
60 horizontalLayout =
new QHBoxLayout();
61 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
62 lab_totalTime =
new QLabel(Playlist_Window);
63 lab_totalTime->setObjectName(QString::fromUtf8(
"lab_totalTime"));
64 QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
65 sizePolicy1.setHorizontalStretch(0);
66 sizePolicy1.setVerticalStretch(0);
67 sizePolicy1.setHeightForWidth(lab_totalTime->sizePolicy().hasHeightForWidth());
68 lab_totalTime->setSizePolicy(sizePolicy1);
72 lab_totalTime->setFont(font);
73 lab_totalTime->setFocusPolicy(Qt::NoFocus);
74 lab_totalTime->setText(QString::fromUtf8(
"0m 0s"));
75 lab_totalTime->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
77 horizontalLayout->addWidget(lab_totalTime);
79 btn_clear =
new QPushButton(Playlist_Window);
80 btn_clear->setObjectName(QString::fromUtf8(
"btn_clear"));
82 icon.addFile(QString::fromUtf8(
":/Icons/broom.png"), QSize(), QIcon::Normal, QIcon::Off);
83 btn_clear->setIcon(
icon);
84 btn_clear->setFlat(
true);
86 horizontalLayout->addWidget(btn_clear);
88 btn_tool =
new QToolButton(Playlist_Window);
89 btn_tool->setObjectName(QString::fromUtf8(
"btn_tool"));
90 btn_tool->setText(QString::fromUtf8(
"\342\211\241"));
91 btn_tool->setPopupMode(QToolButton::InstantPopup);
93 horizontalLayout->addWidget(btn_tool);
96 gridLayout->addLayout(horizontalLayout, 0, 0, 1, 1);
99 tw_playlists->setObjectName(QString::fromUtf8(
"tw_playlists"));
100 tw_playlists->setFocusPolicy(Qt::NoFocus);
101 tw_playlists->setTabShape(QTabWidget::Rounded);
102 tw_playlists->setTabsClosable(
true);
103 tab_pl1 =
new QWidget();
104 tab_pl1->setObjectName(QString::fromUtf8(
"tab_pl1"));
105 gridLayout_2 =
new QGridLayout(tab_pl1);
106 gridLayout_2->setSpacing(0);
107 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
108 tw_playlists->addTab(tab_pl1, QString());
109 tw_playlists->setTabText(tw_playlists->indexOf(tab_pl1), QString::fromUtf8(
"+"));
111 gridLayout->addWidget(tw_playlists, 1, 0, 1, 2);
114 retranslateUi(Playlist_Window);
116 QMetaObject::connectSlotsByName(Playlist_Window);
119 void retranslateUi(QWidget *Playlist_Window)
121 btn_clear->setText(QString());
122 Q_UNUSED(Playlist_Window);
133 #endif // UI_GUI_PLAYLIST_H Definition: ui_GUI_Playlist.h:128
The GUI_PlaylistBottomBar class.
Definition: PlaylistBottomBar.h:41
QIcon icon(const QString &iconName, IconTheme themeName)
fetch a icon from resources
Definition: ui_GUI_Playlist.h:26