Sayonara Player
GUI_PlaylistBottomBar.h
1 
2 /* Copyright (C) 2011-2017 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/Helper/SayonaraWidget/SayonaraWidget.h"
24 
25 #include "Helper/Shutdown/Shutdown.h"
26 #include "Helper/Playlist/PlaylistFwd.h"
27 #include "Helper/Pimpl.h"
28 
29 class PlaylistMenu;
30 #ifdef WITH_SHUTDOWN
31  class GUI_Shutdown;
32 #endif
33 
34 namespace Ui { class GUI_PlaylistBottomBar; }
36  public SayonaraWidget
37 {
38  Q_OBJECT
39 
40 signals:
41  void sig_show_numbers_changed(bool active);
42  void sig_playlist_mode_changed(const Playlist::Mode& mode);
43 
44 public:
45  explicit GUI_PlaylistBottomBar(QWidget *parent=nullptr);
46  virtual ~GUI_PlaylistBottomBar();
47 
48  void check_dynamic_play_button();
49 
50 private slots:
51  void btn_menu_pressed(QPoint pos);
52  void rep1_checked(bool checked);
53  void rep_all_checked(bool checked);
54  void shuffle_checked(bool checked);
55  void playlist_mode_changed();
56  void language_changed() override;
57 
58  void _sl_playlist_mode_changed();
59 
60 #ifdef WITH_SHUTDOWN
61  void shutdown_toggled(bool b);
62  void shutdown_closed();
63 #endif
64 
65 private:
67  Ui::GUI_PlaylistBottomBar* ui=nullptr;
68 
69 };
70 
71 #endif // PLAYLISTBOTTOMBAR_H
The Mode class.
Definition: PlaylistMode.h:31
Definition: GUI_SomaFM.h:34
Definition: GUI_PlaylistBottomBar.h:35
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() wi...
Definition: SayonaraWidget.h:36
Definition: PlaylistMenu.h:31
Definition: ui_GUI_PlaylistBottomBar.h:185