Sayonara Player
Loading...
Searching...
No Matches
PlaylistBottomBar.h
1
2/* Copyright (C) 2011-2024 Michael Lugmair (Lucio Carreras)
3 *
4 * This file is part of sayonara player
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef PLAYLISTBOTTOMBAR_H
21#define PLAYLISTBOTTOMBAR_H
22
23#include "Gui/Utils/Widgets/Widget.h"
24
25#include "Components/Shutdown/Shutdown.h"
26#include "Utils/Pimpl.h"
27#include "Utils/Macros.h"
28
29class GUI_Shutdown;
31
32namespace Playlist
33{
34 class Mode;
35
36 class BottomBar :
37 public Gui::Widget
38 {
39 Q_OBJECT
40 PIMPL(BottomBar)
41
42 signals:
43 void sigShowNumbersChanged(bool active);
44 void sigPlaylistModeChanged(const ::Playlist::Mode& mode);
45
46 public:
47 explicit BottomBar(QWidget* parent = nullptr);
48 ~BottomBar() override;
49
50 void init(DynamicPlaybackChecker* dynamicPlaybackChecker, Shutdown* shutdown);
51
52 void checkDynamicPlayButton();
53
54 private slots:
55 void rep1Checked(bool checked);
56 void repAllChecked(bool checked);
57 void shuffleChecked(bool checked);
58 void gaplessClicked();
59
60 void changePlaylistMode();
61 void playlistModeSettingChanged();
62
63 void shutdownClicked();
64 void shutdownStarted(MilliSeconds time2go);
65 void shutdownClosed();
66
67 protected:
68 void languageChanged() override;
69 void skinChanged() override;
70 void showEvent(QShowEvent* e) override;
71 void resizeEvent(QResizeEvent* e) override;
72 };
73}
74
75#endif // PLAYLISTBOTTOMBAR_H
Definition DynamicPlaybackChecker.h:29
Definition GUI_Shutdown.h:34
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() \nT...
Definition Widget.h:39
Definition PlaylistBottomBar.h:38
Definition Shutdown.h:33