Sayonara Player
BottomBar.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/Playlist/PlaylistFwd.h"
27 #include "Utils/Pimpl.h"
28 #include "Utils/Macros.h"
29 
30 class PlaylistMenu;
31 #ifdef SAYONARA_WITH_SHUTDOWN
32  class GUI_Shutdown;
33 #endif
34 
40  public Gui::Widget
41 {
42  Q_OBJECT
44 
45 signals:
46  void sig_show_numbers_changed(bool active);
47  void sig_playlist_mode_changed(const Playlist::Mode& mode);
48 
49 public:
50  explicit GUI_PlaylistBottomBar(QWidget *parent=nullptr);
51  virtual ~GUI_PlaylistBottomBar();
52 
53  void check_dynamic_play_button();
54 
55 protected:
56  void language_changed() override;
57  void skin_changed() override;
58  void showEvent(QShowEvent* e) override;
59  void resizeEvent(QResizeEvent* e) override;
60 
61 private slots:
62  void rep1_checked(bool checked);
63  void rep_all_checked(bool checked);
64  void shuffle_checked(bool checked);
65  void playlist_mode_changed();
66  void gapless_clicked();
67 
68 
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 #endif // PLAYLISTBOTTOMBAR_H
The Mode class.
Definition: PlaylistMode.h:42
The GUI_PlaylistBottomBar class.
Definition: BottomBar.h:39
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() \nT...
Definition: Widget.h:37