Sayonara Player
src
Gui
Library
CoverView
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
30
class
QTableView;
31
class
AbstractLibrary
;
32
class
LocalLibrary
;
33
34
UI_FWD(GUI_CoverView)
35
36
namespace
Library
37
{
38
class
CoverView;
39
44
class
GUI_CoverView
:
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
idx);
80
void
comboZoomChanged(
int
idx);
81
void
closeClicked();
82
void
showArtistTriggered(
bool
b);
83
84
void
showUtilsChanged();
85
};
86
}
87
88
#endif // ALBUMCOVERVIEW_H
Util::Set
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition:
Set.h:37
Gui::Widget
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() \nT...
Definition:
Widget.h:39
AbstractLibrary
Definition:
AbstractLibrary.h:43
Library
An interface class needed when implementing a library plugin.
Definition:
LocalLibraryWatcher.h:31
LocalLibrary
Definition:
LocalLibrary.h:37
Library::GUI_CoverView
The GUI_CoverView class.
Definition:
GUI_CoverView.h:46
Library::SortOrder
SortOrder
The SortOrder enum.
Definition:
Sortorder.h:32
Generated on Wed Jan 6 2021 00:00:00 for Sayonara Player by
1.8.20