Sayonara Player
TabMenu.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 PLAYLISTTABMENU_H
21 #define PLAYLISTTABMENU_H
22 
23 #include "GUI/Utils/Widgets/WidgetTemplate.h"
24 #include "MenuEntry.h"
25 #include "Utils/Pimpl.h"
26 
27 #include <QMenu>
28 
29 class PreferenceAction;
30 
32  public Gui::WidgetTemplate<QMenu>
33 {
34  Q_OBJECT
35  PIMPL(PlaylistTabMenu)
36 
37 signals:
38  void sig_delete_clicked();
39  void sig_save_clicked();
40  void sig_save_as_clicked();
41  void sig_close_clicked();
42  void sig_close_others_clicked();
43  void sig_reset_clicked();
44  void sig_rename_clicked();
45  void sig_clear_clicked();
46  void sig_open_file_clicked();
47  void sig_open_dir_clicked();
48  void sig_save_to_file_clicked();
49 
50 protected:
51  void language_changed() override;
52  void skin_changed() override;
53 
54 
55 public:
56  explicit PlaylistTabMenu(QWidget* parent=nullptr);
57  ~PlaylistTabMenu();
58 
59  void show_menu_items(PlaylistMenuEntries entries);
60  void show_close(bool b);
61 
62  void add_preference_action(PreferenceAction* action);
63 };
64 
65 #endif // PLAYLISTTABMENU_H
Template for Sayonara Widgets. This template is responsible for holding a reference to the settings...
Definition: WidgetTemplate.h:47
Definition: TabMenu.h:31
Definition: PreferenceAction.h:35