Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Gui
Library
CoverView
GUI_CoverView.h
1
/* CoverView.h */
2
3
/* Copyright (C) 2011-2024 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
40
class
GUI_CoverView :
41
public
Gui::Widget
42
{
43
Q_OBJECT
44
UI_CLASS_SHARED_PTR(GUI_CoverView)
45
46
signals:
47
void
sigSortorderChanged(AlbumSortorder 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
AbstractLibrary
Definition
AbstractLibrary.h:41
Gui::Widget
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() \nT...
Definition
Widget.h:39
Library::CoverView
Definition
CoverView.h:38
LocalLibrary
Definition
LocalLibrary.h:38
Generated on
for Sayonara Player by
1.17.0