Sayonara Player
PlaylistBottomBar.h
1 
2 /* Copyright (C) 2011-2019 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 sig_show_numbers_changed(bool active);
49  void sig_playlist_mode_changed(const ::Playlist::Mode& mode);
50 
51  public:
52  explicit BottomBar(QWidget *parent=nullptr);
53  ~BottomBar() override;
54 
55  void check_dynamic_play_button();
56 
57  protected:
58  void language_changed() override;
59  void skin_changed() override;
60  void showEvent(QShowEvent* e) override;
61  void resizeEvent(QResizeEvent* e) override;
62 
63  private slots:
64  void rep1_checked(bool checked);
65  void rep_all_checked(bool checked);
66  void shuffle_checked(bool checked);
67  void playlist_mode_changed();
68  void gapless_clicked();
69 
70  void s_playlist_mode_changed();
71 
72  #ifdef SAYONARA_WITH_SHUTDOWN
73  void shutdown_clicked();
74  void shutdown_started(MilliSeconds time2go);
75  void shutdown_closed();
76  #endif
77  };
78 }
79 
80 #endif // PLAYLISTBOTTOMBAR_H
The GUI_PlaylistBottomBar class.
Definition: PlaylistBottomBar.h:41
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() \nT...
Definition: Widget.h:37