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
42
UI_FWD(
GUI_AlternativeCovers
)
43
44
45
50
class
GUI_AlternativeCovers
:
51
public Gui::Dialog
52
{
53
Q_OBJECT
54
PIMPL(
GUI_AlternativeCovers
)
55
UI_CLASS(
GUI_AlternativeCovers
)
56
57
signals:
58
void
sigCoverChanged(
const
Cover::Location
& cl);
59
60
public
:
61
explicit
GUI_AlternativeCovers
(
const
Cover::Location
& cl,
bool
silent, QWidget* parent);
62
~
GUI_AlternativeCovers
()
override
;
63
64
void
setCoverLocation(
const
Cover::Location
& cl);
65
66
67
public
slots:
68
void
start();
69
void
stop();
70
71
72
private
:
73
void
initUi();
74
void
reset();
75
void
reloadCombobox();
76
void
initSaveToLibrary();
77
78
private
slots:
79
void
okClicked();
80
void
applyClicked();
81
void
searchClicked();
82
void
openFileDialog();
83
84
void
coverPressed(
const
QModelIndex& idx);
85
void
coverLookupStarted();
86
void
coverLookupFinished(
bool
);
87
void
coverFound(
const
QPixmap& cover);
88
89
void
readyForProgressbar();
90
91
void
coverServersChanged();
92
void
autostartToggled(
bool
b);
93
void
rbAutosearchToggled(
bool
b);
94
void
wwwActiveChanged();
95
96
void
searchTextEdited(
const
QString& text);
97
98
99
protected
:
100
void
showEvent(QShowEvent* e)
override
;
101
void
resizeEvent(QResizeEvent* e)
override
;
102
void
languageChanged()
override
;
103
};
104
105
#endif
/* GUI_ALTERNATE_COVERS_H_ */
GUI_AlternativeCovers
The GUI_AlternativeCovers class.
Definition:
GUI_AlternativeCovers.h:50
Cover::Location
The CoverLocation class.
Definition:
CoverLocation.h:38
Generated on Mon May 25 2020 00:00:00 for Sayonara Player by
1.8.17