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