Sayonara Player
PlaylistMenu.h
1 /* PlaylistMenu.h */
2 
3 /* Copyright (C) 2011-2016 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 
22 
23 #ifndef PLAYLISTMENU_H
24 #define PLAYLISTMENU_H
25 
26 #include "Helper/Settings/SayonaraClass.h"
27 
28 #include <QMenu>
29 #include <QAction>
30 #include <QWidget>
31 #include <QTimer>
32 #include <QShowEvent>
33 
34 class GUI_PlaylistEntryLook;
35 
36 class PlaylistMenu :
37  public QMenu,
38  protected SayonaraClass
39 {
40 
41  Q_OBJECT
42 
43 signals:
44  void sig_shutdown(bool);
45 
46 public:
47  PlaylistMenu(QWidget* parent=nullptr);
48  void set_shutdown(bool b);
49 
50 private:
51  QAction* _action_rep1=nullptr;
52  QAction* _action_repAll=nullptr;
53  QAction* _action_append=nullptr;
54  QAction* _action_dynamic=nullptr;
55  QAction* _action_shuffle=nullptr;
56  QAction* _action_gapless=nullptr;
57  QAction* _action_shutdown=nullptr;
58 
59  QTimer* _timer=nullptr;
60 
61  GUI_PlaylistEntryLook* _entry_look_dialog=nullptr;
62 
63  void showEvent(QShowEvent* e) override;
64 
65 private slots:
66 
67  void plm_changed();
68  void change_plm();
69  void timed_out();
70 
71  void language_changed();
72 };
73 
74 
75 
76 #endif // PLAYLISTMENU_H
The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:31
Definition: PlaylistMenu.h:36