Sayonara Player
PlaylistBottomBar.h
1 
2 /* Copyright (C) 2011-2020 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 
29 #ifdef SAYONARA_WITH_SHUTDOWN
30  class GUI_Shutdown;
31 #endif
32 
33 namespace Playlist
34 {
35  class Mode;
36 
41  class BottomBar :
42  public Gui::Widget
43  {
44  Q_OBJECT
45  PIMPL(BottomBar)
46 
47  signals:
48  void sigShowNumbersChanged(bool active);
49  void sigPlaylistModeChanged(const ::Playlist::Mode& mode);
50 
51  public:
52  explicit BottomBar(QWidget* parent=nullptr);
53  ~BottomBar() override;
54 
55  void checkDynamicPlayButton();
56 
57  private slots:
58  void rep1Checked(bool checked);
59  void repAllChecked(bool checked);
60  void shuffleChecked(bool checked);
61  void gaplessClicked();
62 
63  void changePlaylistMode();
64  void playlistModeSettingChanged();
65 
66  #ifdef SAYONARA_WITH_SHUTDOWN
67  void shutdown_clicked();
68  void shutdown_started(MilliSeconds time2go);
69  void shutdown_closed();
70  #endif
71 
72  protected:
73  void languageChanged() override;
74  void skinChanged() override;
75  void showEvent(QShowEvent* e) override;
76  void resizeEvent(QResizeEvent* e) override;
77  };
78 }
79 
80 #endif // PLAYLISTBOTTOMBAR_H
Playlist::BottomBar
The GUI_PlaylistBottomBar class.
Definition: PlaylistBottomBar.h:43
Gui::Widget
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() \nT...
Definition: Widget.h:39