Sayonara Player
GUI_PlaylistBottomBar.h
1 
2 /* Copyright (C) 2011-2016 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 
21 
22 
23 #ifndef PLAYLISTBOTTOMBAR_H
24 #define PLAYLISTBOTTOMBAR_H
25 
26 #include "GUI/Helper/SayonaraWidget/SayonaraWidget.h"
27 #include "GUI/Playlist/ui_GUI_PlaylistBottomBar.h"
28 
29 #include "Helper/Shutdown/Shutdown.h"
30 #include "Helper/PlaylistMode.h"
31 
32 #include "Components/Playlist/Playlist.h"
33 
34 class PlaylistMenu;
35 #ifdef WITH_SHUTDOWN
36  class GUI_Shutdown;
37 #endif
38 
40  public SayonaraWidget,
42 {
43  Q_OBJECT
44 
45 signals:
46  void sig_show_numbers_changed(bool active);
47  void sig_playlist_mode_changed(const PlaylistMode& mode);
48 
49 public:
50  explicit GUI_PlaylistBottomBar(QWidget *parent=nullptr);
51  virtual ~GUI_PlaylistBottomBar();
52 
53  void check_dynamic_play_button();
54  void set_playlist_type(Playlist::Type playlist_type);
55 
56 private slots:
57 
58  void btn_menu_pressed(QPoint pos);
59 
60  void rep1_checked(bool checked);
61  void rep_all_checked(bool checked);
62  void shuffle_checked(bool checked);
63  void playlist_mode_changed();
64 
65  void _sl_playlist_mode_changed();
66 
67 #ifdef WITH_SHUTDOWN
68  void shutdown_toggled(bool b);
69  void shutdown_closed();
70 #endif
71 
72 
73 private:
74  PlaylistMode _plm;
75  PlaylistMenu* _playlist_menu=nullptr;
76 
77 #ifdef WITH_SHUTDOWN
78  GUI_Shutdown* _ui_shutdown=nullptr;
79 #endif
80 };
81 
82 
83 
84 #endif // PLAYLISTBOTTOMBAR_H
Definition: PlaylistMode.h:34
Definition: GUI_PlaylistBottomBar.h:39
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() wi...
Definition: SayonaraWidget.h:41
Definition: PlaylistMenu.h:36
Definition: ui_GUI_PlaylistBottomBar.h:201