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
22
#ifndef ALBUMCOVERVIEW_H
23
#define ALBUMCOVERVIEW_H
24
25
#include "Utils/Pimpl.h"
26
#include "Utils/Library/Sortorder.h"
27
28
#include "Gui/Utils/Widgets/Widget.h"
29
#include "Gui/Utils/GuiClass.h"
30
31
class
QTableView;
32
class
AbstractLibrary
;
33
class
LocalLibrary
;
34
35
UI_FWD(GUI_CoverView)
36
37
namespace
Library
38
{
39
class
CoverView;
40
45
class
GUI_CoverView
:
46
public
Gui::Widget
47
{
48
Q_OBJECT
49
UI_CLASS(
GUI_CoverView
)
50
51
signals:
52
void
sigSortorderChanged(
SortOrder
so);
53
void
sigDeleteClicked();
54
void
sigReloadClicked();
55
56
public
:
57
explicit
GUI_CoverView
(QWidget* parent=
nullptr
);
58
virtual
~
GUI_CoverView
()
override
;
59
60
void
init(
LocalLibrary
* library);
61
bool
isInitialized()
const
;
62
63
IndexSet
selectedItems()
const
;
64
void
clearSelections()
const
;
65
66
protected
:
67
void
initSortingActions();
68
void
initZoomActions();
69
70
void
languageChanged()
override
;
71
72
void
showEvent(QShowEvent* e)
override
;
73
74
private
:
75
void
zoomChanged();
76
void
sortorderChanged();
77
void
showArtistChanged();
78
79
private
slots:
80
void
comboSortingChanged(
int
idx);
81
void
comboZoomChanged(
int
idx);
82
void
closeClicked();
83
void
showArtistTriggered(
bool
b);
84
85
void
showUtilsChanged();
86
};
87
}
88
89
#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:35
Gui::Widget
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() \nT...
Definition:
Widget.h:37
AbstractLibrary
Definition:
AbstractLibrary.h:41
Library
An interface class needed when implementing a library plugin.
Definition:
LocalLibraryWatcher.h:30
LocalLibrary
Definition:
LocalLibrary.h:35
Library::GUI_CoverView
The GUI_CoverView class.
Definition:
GUI_CoverView.h:45
Library::SortOrder
SortOrder
The SortOrder enum.
Definition:
Sortorder.h:31
Generated on Mon May 25 2020 00:00:00 for Sayonara Player by
1.8.17