Sayonara Player
PlaylistMenu.h
1 /* PlaylistMenu.h */
2 
3 /* Copyright (C) 2011-2017 Lucio Carreras
4  *
5  * This file is part of sayonara player
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef PLAYLISTMENU_H
22 #define PLAYLISTMENU_H
23 
24 #include "Helper/Settings/SayonaraClass.h"
25 
26 #include <QMenu>
27 
28 class GUI_PlaylistEntryLook;
29 class QTimer;
30 
31 class PlaylistMenu :
32  public QMenu,
33  protected SayonaraClass
34 {
35  Q_OBJECT
36 
37 signals:
38  void sig_shutdown(bool);
39 
40 public:
41  explicit PlaylistMenu(QWidget* parent=nullptr);
42  void set_shutdown(bool b);
43 
44 private:
45  QAction* _action_rep1=nullptr;
46  QAction* _action_repAll=nullptr;
47  QAction* _action_append=nullptr;
48  QAction* _action_dynamic=nullptr;
49  QAction* _action_shuffle=nullptr;
50  QAction* _action_gapless=nullptr;
51  QAction* _action_shutdown=nullptr;
52 
53  QTimer* _timer=nullptr;
54 
55  GUI_PlaylistEntryLook* _entry_look_dialog=nullptr;
56 
57  void showEvent(QShowEvent* e) override;
58 
59 private slots:
60 
61  void plm_changed();
62  void change_plm();
63  void timed_out();
64 
65  void language_changed();
66 };
67 
68 #endif // PLAYLISTMENU_H
The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:29
Definition: PlaylistMenu.h:31