Sayonara Player
LocalLibraryMenu.h
1 /* LocalLibraryMenu.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 LOCALLIBRARYMENU_H
22 #define LOCALLIBRARYMENU_H
23 
24 #include <QMenu>
25 #include <QAction>
26 
27 #include "Helper/Settings/SayonaraClass.h"
28 
29 class IconLoader;
31  public QMenu,
32  private SayonaraClass
33 {
34  Q_OBJECT
35 
36 signals:
37  void sig_reload_library();
38  void sig_import_file();
39  void sig_import_folder();
40  void sig_info();
41  void sig_libpath_clicked();
42  void sig_show_album_artists_changed();
43 
44 public:
45  explicit LocalLibraryMenu(QWidget* parent=nullptr);
46  virtual ~LocalLibraryMenu();
47 
48 private:
49  QAction* _reload_library_action=nullptr;
50  QAction* _import_file_action=nullptr;
51  QAction* _import_folder_action=nullptr;
52  QAction* _info_action=nullptr;
53  QAction* _library_path_action=nullptr;
54  QAction* _realtime_search_action=nullptr;
55  QAction* _auto_update=nullptr;
56  QAction* _show_album_artists_action=nullptr;
57  QAction* _show_album_cover_view=nullptr;
58 
59  IconLoader* _icon_loader=nullptr;
60 
61  QList<QAction*> _actions;
62 
63 
64 private slots:
65  void show_album_cover_view_changed();
66  void show_album_artists_changed();
67  void language_changed();
68  void skin_changed();
69 
70  void realtime_search_changed();
71  void auto_update_changed();
72 };
73 
74 #endif // LOCALLIBRARYMENU_H
The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:29
The IconLoader class.
Definition: IconLoader.h:36
Definition: LocalLibraryMenu.h:30