Sayonara Player
GUI_CoverView.h
1/* CoverView.h */
2
3/* Copyright (C) 2011-2020 Michael Lugmair (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 ALBUMCOVERVIEW_H
22#define ALBUMCOVERVIEW_H
23
24#include "Utils/Pimpl.h"
25#include "Utils/Library/Sortorder.h"
26
27#include "Gui/Utils/Widgets/Widget.h"
28#include "Gui/Utils/GuiClass.h"
29
30class QTableView;
31class AbstractLibrary;
32class LocalLibrary;
33
34UI_FWD(GUI_CoverView)
35
36namespace Library
37{
38 class CoverView;
39
41 public Gui::Widget
42 {
43 Q_OBJECT
44 UI_CLASS_SHARED_PTR(GUI_CoverView)
45
46 signals:
47 void sigSortorderChanged(SortOrder so);
48 void sigDeleteClicked();
49 void sigReloadClicked();
50
51 public:
52 explicit GUI_CoverView(QWidget* parent = nullptr);
53 virtual ~GUI_CoverView() override;
54
55 void init(LocalLibrary* library);
56 bool isInitialized() const;
57
58 IndexSet selectedItems() const;
59 void clearSelections() const;
60
61 protected:
62 void languageChanged() override;
63 void showEvent(QShowEvent* e) override;
64
65 private:
66 void zoomChanged();
67 void sortorderChanged();
68 void showArtistChanged();
69
70 private slots:
71 void comboSortingChanged(int index);
72 void comboZoomChanged(int index);
73 void closeClicked();
74 void showArtistTriggered(bool showArtist);
75
76 void showUtilsChanged();
77 };
78}
79
80#endif // ALBUMCOVERVIEW_H
Definition: AbstractLibrary.h:44
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() \nT...
Definition: Widget.h:39
Definition: GUI_CoverView.h:42
Definition: LocalLibrary.h:38
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:37
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31