Sayonara Player
GUI_CoverView.h
1 /* CoverView.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 
22 #ifndef ALBUMCOVERVIEW_H
23 #define ALBUMCOVERVIEW_H
24 
25 #include "ItemView.h"
26 
27 #include "Utils/Pimpl.h"
28 #include "Utils/Library/Sortorder.h"
29 
30 #include "GUI/Utils/Widgets/Widget.h"
31 #include "GUI/Utils/GuiClass.h"
32 
33 class QTableView;
34 class AbstractLibrary;
35 class LocalLibrary;
36 
37 UI_FWD(GUI_CoverView)
38 
39 namespace Library
40 {
41  class CoverView;
42 
43  class GUI_CoverView :
44  public Gui::Widget
45  {
46  Q_OBJECT
47  UI_CLASS(GUI_CoverView)
48 
49  signals:
50  void sig_sortorder_changed(SortOrder so);
51  void sig_delete_clicked();
52 
53  public:
54  explicit GUI_CoverView(QWidget* parent=nullptr);
55  virtual ~GUI_CoverView();
56 
57  void init(LocalLibrary* library);
58  bool is_initialized() const;
59 
60  Library::CoverView* table_view() const;
61 
62 
63  protected:
64  void init_sorting_actions();
65  void init_zoom_actions();
66 
67  void language_changed() override;
68 
69  private:
70  void zoom_changed();
71  void sortorder_changed();
72  void show_artist_changed();
73 
74  private slots:
75  void combo_sorting_changed(int idx);
76  void combo_zoom_changed(int idx);
77  void close_clicked();
78  void show_artist_triggered(bool b);
79 
80  void show_utils_changed();
81  };
82 }
83 
84 #endif // ALBUMCOVERVIEW_H
Definition: GUI_CoverView.h:43
Definition: AbstractLibrary.h:47
Definition: LocalLibrary.h:35
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() wi...
Definition: Widget.h:38
An interface class needed when implementing a library plugin.
Definition: CachingThread.h:31
Definition: CoverView.h:36