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_disabled.svg"), QSize(), QIcon::Disabled, QIcon::Off);
133 icon5.addFile(QStringLiteral(
":/Icons/gapless_disabled.svg"), QSize(), QIcon::Disabled, QIcon::On);
134 icon5.addFile(QStringLiteral(
":/Icons/gapless_active.svg.png"), QSize(), QIcon::Active, QIcon::On);
135 btn_gapless->setIcon(icon5);
136 btn_gapless->setIconSize(QSize(20, 20));
137 btn_gapless->setCheckable(
true);
139 horizontalLayout->addWidget(btn_gapless);
141 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
143 horizontalLayout->addItem(horizontalSpacer);
145 btn_shutdown =
new QPushButton(GUI_PlaylistBottomBar);
146 btn_shutdown->setObjectName(QStringLiteral(
"btn_shutdown"));
147 btn_shutdown->setMinimumSize(QSize(28, 28));
148 btn_shutdown->setMaximumSize(QSize(28, 28));
150 icon6.addFile(QStringLiteral(
":/Icons/power_on.svg.png"), QSize(), QIcon::Normal, QIcon::Off);
151 btn_shutdown->setIcon(icon6);
152 btn_shutdown->setIconSize(QSize(22, 22));
153 btn_shutdown->setCheckable(
true);
155 horizontalLayout->addWidget(btn_shutdown);
158 retranslateUi(GUI_PlaylistBottomBar);
160 QMetaObject::connectSlotsByName(GUI_PlaylistBottomBar);
163 void retranslateUi(QWidget *GUI_PlaylistBottomBar)
165 btn_menu->setText(QString());
166 #ifndef QT_NO_TOOLTIP 167 btn_rep1->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Repeat 1", Q_NULLPTR));
168 #endif // QT_NO_TOOLTIP 169 btn_rep1->setText(QString());
170 btn_rep1->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", Q_NULLPTR));
171 #ifndef QT_NO_TOOLTIP 172 btn_repAll->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Repeat All", Q_NULLPTR));
173 #endif // QT_NO_TOOLTIP 174 btn_repAll->setText(QString());
175 btn_repAll->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", Q_NULLPTR));
176 #ifndef QT_NO_TOOLTIP 177 btn_shuffle->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Shuffle", Q_NULLPTR));
178 #endif // QT_NO_TOOLTIP 179 btn_shuffle->setText(QString());
180 btn_shuffle->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", Q_NULLPTR));
181 #ifndef QT_NO_TOOLTIP 182 btn_dynamic->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Dynamic playing", Q_NULLPTR));
183 #endif // QT_NO_TOOLTIP 184 btn_dynamic->setText(QString());
185 btn_dynamic->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", Q_NULLPTR));
186 #ifndef QT_NO_TOOLTIP 187 btn_append->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Append when adding new tracks", Q_NULLPTR));
188 #endif // QT_NO_TOOLTIP 189 btn_append->setText(QString());
190 btn_append->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", Q_NULLPTR));
191 #ifndef QT_NO_TOOLTIP 192 btn_gapless->setToolTip(QApplication::translate(
"GUI_PlaylistBottomBar",
"Gapless playback", Q_NULLPTR));
193 #endif // QT_NO_TOOLTIP 194 btn_gapless->setText(QString());
195 btn_gapless->setShortcut(QApplication::translate(
"GUI_PlaylistBottomBar",
"Enter", Q_NULLPTR));
196 btn_shutdown->setText(QString());
197 Q_UNUSED(GUI_PlaylistBottomBar);
208 #endif // UI_GUI_PLAYLISTBOTTOMBAR_H Definition: ui_GUI_SomaFM.h:217
Definition: GUI_PlaylistBottomBar.h:39
Definition: ui_GUI_PlaylistBottomBar.h:25
Definition: ui_GUI_PlaylistBottomBar.h:203