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
45 public Gui::Widget
46 {
47 Q_OBJECT
48 UI_CLASS(GUI_CoverView)
49
50 signals:
51 void sigSortorderChanged(SortOrder so);
52 void sigDeleteClicked();
53 void sigReloadClicked();
54
55 public:
56 explicit GUI_CoverView(QWidget* parent = nullptr);
57 virtual ~GUI_CoverView() override;
58
59 void init(LocalLibrary* library);
60 bool isInitialized() const;
61
62 IndexSet selectedItems() const;
63 void clearSelections() const;
64
65 protected:
66 void initSortingActions();
67 void initZoomActions();
68
69 void languageChanged() override;
70
71 void showEvent(QShowEvent* e) override;
72
73 private:
74 void zoomChanged();
75 void sortorderChanged();
76 void showArtistChanged();
77
78 private slots:
79 void comboSortingChanged(int index);
80 void comboZoomChanged(int index);
81 void closeClicked();
82 void showArtistTriggered(bool showArtist);
83
84 void showUtilsChanged();
85 };
86}
87
88#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
The GUI_CoverView class.
Definition: GUI_CoverView.h:46
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
SortOrder
The SortOrder enum.
Definition: Sortorder.h:32
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31