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 public:
47  LocalLibraryMenu(QWidget* parent=nullptr);
49 
50 private:
51  QAction* _reload_library_action=nullptr;
52  QAction* _import_file_action=nullptr;
53  QAction* _import_folder_action=nullptr;
54  QAction* _info_action=nullptr;
55  QAction* _library_path_action=nullptr;
56  QAction* _realtime_search_action=nullptr;
57  QAction* _auto_update=nullptr;
58 
59  IconLoader* _icon_loader=nullptr;
60 
61  QList<QAction*> _actions;
62 
63 
64 private slots:
65  void language_changed();
66  void skin_changed();
67 
68  void realtime_search_changed();
69  void auto_update_changed();
70 };
71 
72 #endif // LOCALLIBRARYMENU_H
The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:31
The IconLoader class.
Definition: IconLoader.h:39
Definition: LocalLibraryMenu.h:33