9 #ifndef UI_GUI_PLAYLISTBOTTOMBAR_H 10 #define UI_GUI_PLAYLISTBOTTOMBAR_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QHeaderView> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QWidget> 21 #include "GUI/Helper/MenuTool/MenuButton.h" 28 QHBoxLayout *horizontalLayout;
30 QPushButton *btn_rep1;
31 QPushButton *btn_repAll;
32 QPushButton *btn_shuffle;
33 QPushButton *btn_dynamic;
34 QPushButton *btn_append;
35 QPushButton *btn_gapless;
36 QSpacerItem *horizontalSpacer;
37 QPushButton *btn_shutdown;
41 if (GUI_PlaylistBottomBar->objectName().isEmpty())
42 GUI_PlaylistBottomBar->setObjectName(QStringLiteral(
"GUI_PlaylistBottomBar"));
43 GUI_PlaylistBottomBar->resize(400, 28);
44 horizontalLayout =
new QHBoxLayout(GUI_PlaylistBottomBar);
45 horizontalLayout->setSpacing(4);
46 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
47 horizontalLayout->setContentsMargins(0, 0, 0, 0);
48 btn_menu =
new MenuButton(GUI_PlaylistBottomBar);
49 btn_menu->setObjectName(QStringLiteral(
"btn_menu"));
50 btn_menu->setMinimumSize(QSize(16, 16));
51 btn_menu->setMaximumSize(QSize(16, 16));
52 btn_menu->setFocusPolicy(Qt::NoFocus);
54 horizontalLayout->addWidget(btn_menu);
56 btn_rep1 =
new QPushButton(GUI_PlaylistBottomBar);
57 btn_rep1->setObjectName(QStringLiteral(
"btn_rep1"));
58 btn_rep1->setMinimumSize(QSize(28, 28));
59 btn_rep1->setMaximumSize(QSize(28, 28));
60 btn_rep1->setFocusPolicy(Qt::NoFocus);
62 icon.addFile(QStringLiteral(
":/Icons/rep_1.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
63 icon.addFile(QStringLiteral(
":/Icons/rep_1_active.svg.png"), QSize(), QIcon::Active, QIcon::On);
64 btn_rep1->setIcon(icon);
65 btn_rep1->setIconSize(QSize(20, 20));
66 btn_rep1->setCheckable(
true);
68 horizontalLayout->addWidget(btn_rep1);
70 btn_repAll =
new QPushButton(GUI_PlaylistBottomBar);
71 btn_repAll->setObjectName(QStringLiteral(
"btn_repAll"));
72 btn_repAll->setMinimumSize(QSize(28, 28));
73 btn_repAll->setMaximumSize(QSize(28, 28));
74 btn_repAll->setFocusPolicy(Qt::NoFocus);
76 icon1.addFile(QStringLiteral(
":/Icons/rep_all.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
77 icon1.addFile(QStringLiteral(
":/Icons/rep_all_active.svg.png"), QSize(), QIcon::Active, QIcon::On);
78 btn_repAll->setIcon(icon1);
79 btn_repAll->setIconSize(QSize(20, 20));
80 btn_repAll->setCheckable(
true);
82 horizontalLayout->addWidget(btn_repAll);
84 btn_shuffle =
new QPushButton(GUI_PlaylistBottomBar);
85 btn_shuffle->setObjectName(QStringLiteral(
"btn_shuffle"));
86 btn_shuffle->setMinimumSize(QSize(28, 28));
87 btn_shuffle->setMaximumSize(QSize(28, 28));
88 btn_shuffle->setFocusPolicy(Qt::NoFocus);
90 icon2.addFile(QStringLiteral(
":/Icons/shuffle.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
91 icon2.addFile(QStringLiteral(
":/Icons/shuffle_active.svg.png"), QSize(), QIcon::Active, QIcon::On);
92 btn_shuffle->setIcon(icon2);
93 btn_shuffle->setIconSize(QSize(20, 20));
94 btn_shuffle->setCheckable(
true);
96 horizontalLayout->addWidget(btn_shuffle);
98 btn_dynamic =
new QPushButton(GUI_PlaylistBottomBar);
99 btn_dynamic->setObjectName(QStringLiteral(
"btn_dynamic"));
100 btn_dynamic->setMinimumSize(QSize(28, 28));
101 btn_dynamic->setMaximumSize(QSize(28, 28));
102 btn_dynamic->setFocusPolicy(Qt::NoFocus);
104 icon3.addFile(QStringLiteral(
":/Icons/dynamic.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
105 icon3.addFile(QStringLiteral(
":/Icons/dynamic_active.svg.png"), QSize(), QIcon::Active, QIcon::On);
106 btn_dynamic->setIcon(icon3);
107 btn_dynamic->setIconSize(QSize(20, 20));
108 btn_dynamic->setCheckable(
true);
110 horizontalLayout->addWidget(btn_dynamic);
112 btn_append =
new QPushButton(GUI_PlaylistBottomBar);
113 btn_append->setObjectName(QStringLiteral(
"btn_append"));
114 btn_append->setMinimumSize(QSize(28, 28));
115 btn_append->setMaximumSize(QSize(28, 28));
116 btn_append->setFocusPolicy(Qt::NoFocus);
118 icon4.addFile(QStringLiteral(
":/Icons/append.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
119 btn_append->setIcon(icon4);
120 btn_append->setIconSize(QSize(20, 20));
121 btn_append->setCheckable(
true);
123 horizontalLayout->addWidget(btn_append);
125 btn_gapless =
new QPushButton(GUI_PlaylistBottomBar);
126 btn_gapless->setObjectName(QStringLiteral(
"btn_gapless"));
127 btn_gapless->setMinimumSize(QSize(28, 28));
128 btn_gapless->setMaximumSize(QSize(28, 28));
129 btn_gapless->setFocusPolicy(Qt::NoFocus);
131 icon5.addFile(QStringLiteral(
":/Icons/gapless.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
132 icon5.addFile(QStringLiteral(
":/Icons/gapless_active.svg.png"), QSize(), QIcon::Active, QIcon::On);
133 btn_gapless->setIcon(icon5);
134 btn_gapless->setIconSize(QSize(20, 20));
135 btn_gapless->setCheckable(
true);
137 horizontalLayout->addWidget(btn_gapless);
139 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
141 horizontalLayout->addItem(horizontalSpacer);
143 btn_shutdown =
new QPushButton(GUI_PlaylistBottomBar);
144 btn_shutdown->setObjectName(QStringLiteral(
"btn_shutdown"));
145 btn_shutdown->setMinimumSize(QSize(28, 28));
146 btn_shutdown->setMaximumSize(QSize(28, 28));
148 icon6.addFile(QStringLiteral(
":/Icons/power_on.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
149 btn_shutdown->setIcon(icon6);
150 btn_shutdown->setIconSize(QSize(22, 22));
151 btn_shutdown->setCheckable(
true);
153 horizontalLayout->addWidget(btn_shutdown);
156 retranslateUi(GUI_PlaylistBottomBar);
158 QMetaObject::connectSlotsByName(GUI_PlaylistBottomBar);
161 void retranslateUi(QWidget *GUI_PlaylistBottomBar)
163 btn_menu->setText(QString());
164 #ifndef QT_NO_TOOLTIP 165 btn_rep1->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Repeat 1", 0));
166 #endif // QT_NO_TOOLTIP 167 btn_rep1->setText(QString());
168 btn_rep1->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", 0));
169 #ifndef QT_NO_TOOLTIP 170 btn_repAll->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Repeat All", 0));
171 #endif // QT_NO_TOOLTIP 172 btn_repAll->setText(QString());
173 btn_repAll->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", 0));
174 #ifndef QT_NO_TOOLTIP 175 btn_shuffle->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Shuffle", 0));
176 #endif // QT_NO_TOOLTIP 177 btn_shuffle->setText(QString());
178 btn_shuffle->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", 0));
179 #ifndef QT_NO_TOOLTIP 180 btn_dynamic->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Dynamic playing", 0));
181 #endif // QT_NO_TOOLTIP 182 btn_dynamic->setText(QString());
183 btn_dynamic->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", 0));
184 #ifndef QT_NO_TOOLTIP 185 btn_append->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Append when adding new tracks", 0));
186 #endif // QT_NO_TOOLTIP 187 btn_append->setText(QString());
188 btn_append->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", 0));
189 #ifndef QT_NO_TOOLTIP 190 btn_gapless->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Gapless playback", 0));
191 #endif // QT_NO_TOOLTIP 192 btn_gapless->setText(QString());
193 btn_gapless->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", 0));
194 btn_shutdown->setText(QString());
195 Q_UNUSED(GUI_PlaylistBottomBar);
206 #endif // UI_GUI_PLAYLISTBOTTOMBAR_H Definition: ui_GUI_SomaFM.h:200
Definition: GUI_PlaylistBottomBar.h:39
Definition: ui_GUI_PlaylistBottomBar.h:25
Definition: ui_GUI_PlaylistBottomBar.h:201