Sayonara Player
src
Gui
Covers
GUI_AlternativeCovers.h
1
/* GUI_AlternativeCovers.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
/*
23
* GUI_AlternativeCovers.h
24
*
25
* Created on: Jul 1, 2011
26
* Author: Michael Lugmair (Lucio Carreras)
27
*/
28
29
#ifndef GUI_ALTERNATE_COVERS_H_
30
#define GUI_ALTERNATE_COVERS_H_
31
32
#include "Gui/Utils/Widgets/Dialog.h"
33
#include "Utils/Pimpl.h"
34
#include <QPixmap>
35
36
namespace
Cover
37
{
38
class
Location;
39
}
40
41
UI_FWD(
GUI_AlternativeCovers
)
42
43
48
class
GUI_AlternativeCovers
:
49
public Gui::Dialog
50
{
51
Q_OBJECT
52
PIMPL(
GUI_AlternativeCovers
)
53
UI_CLASS(
GUI_AlternativeCovers
)
54
55
signals:
56
void
sigCoverChanged(
const
Cover::Location
& cl);
57
58
public
:
59
explicit
GUI_AlternativeCovers
(
const
Cover::Location
& cl,
bool
silent, QWidget* parent);
60
~
GUI_AlternativeCovers
()
override
;
61
62
void
setCoverLocation(
const
Cover::Location
& cl);
63
64
public
slots:
65
void
start();
66
void
stop();
67
68
private
:
69
void
initUi();
70
void
reset();
71
void
reloadCombobox();
72
void
initSaveToLibrary();
73
74
private
slots:
75
void
okClicked();
76
void
applyClicked();
77
void
openFileDialog();
78
79
void
coverPressed(
const
QModelIndex& idx);
80
void
coverLookupStarted();
81
void
coverLookupFinished(
bool
);
82
void
coverFound(
const
QPixmap& cover);
83
84
void
readyForProgressbar();
85
86
void
coverServersChanged();
87
void
autostartToggled(
bool
b);
88
void
rbAutosearchToggled(
bool
b);
89
void
wwwActiveChanged();
90
91
void
searchTextEdited(
const
QString& text);
92
93
protected
:
94
void
showEvent(QShowEvent* e)
override
;
95
void
resizeEvent(QResizeEvent* e)
override
;
96
void
languageChanged()
override
;
97
};
98
99
#endif
/* GUI_ALTERNATE_COVERS_H_ */
GUI_AlternativeCovers
The GUI_AlternativeCovers class.
Definition:
GUI_AlternativeCovers.h:50
Cover::Location
The CoverLocation class.
Definition:
CoverLocation.h:39
Generated on Wed Jan 6 2021 00:00:00 for Sayonara Player by
1.8.20