Sayonara Player
src
Gui
Library
GUI_CoverView.h
1
/* CoverView.h */
2
3
/* Copyright (C) 2011-2019 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 "ItemView.h"
26
27
#include "Utils/Pimpl.h"
28
#include "Utils/Library/Sortorder.h"
29
30
#include "Gui/Utils/Widgets/Widget.h"
31
#include "Gui/Utils/GuiClass.h"
32
33
class
QTableView;
34
class
AbstractLibrary
;
35
class
LocalLibrary
;
36
37
UI_FWD(GUI_CoverView)
38
39
namespace
Library
40
{
41
class
CoverView;
42
47
class
GUI_CoverView
:
48
public
Gui::Widget
49
{
50
Q_OBJECT
51
UI_CLASS(
GUI_CoverView
)
52
53
signals:
54
void
sig_sortorder_changed(
SortOrder
so);
55
void
sig_delete_clicked();
56
void
sig_reload_clicked();
57
58
public
:
59
explicit
GUI_CoverView
(QWidget* parent=
nullptr
);
60
virtual
~
GUI_CoverView
()
override
;
61
62
void
init(
LocalLibrary
* library);
63
bool
is_initialized()
const
;
64
65
IndexSet
selected_items()
const
;
66
void
clear_selections()
const
;
67
68
protected
:
69
void
init_sorting_actions();
70
void
init_zoom_actions();
71
72
void
language_changed()
override
;
73
74
private
:
75
void
zoom_changed();
76
void
sortorder_changed();
77
void
show_artist_changed();
78
79
private
slots:
80
void
combo_sorting_changed(
int
idx);
81
void
combo_zoom_changed(
int
idx);
82
void
close_clicked();
83
void
show_artist_triggered(
bool
b);
84
85
void
show_utils_changed();
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:32
LocalLibrary
Definition:
LocalLibrary.h:35
Library::GUI_CoverView
The GUI_CoverView class.
Definition:
GUI_CoverView.h:47
Library::SortOrder
SortOrder
The SortOrder enum.
Definition:
Sortorder.h:31
Generated on Sun Nov 17 2019 00:00:00 for Sayonara Player by
1.8.16