Sayonara Player
GUI_CoverEdit.h
1/* GUI_CoverEdit.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#ifndef GUI_COVEREDIT_H
24#define GUI_COVEREDIT_H
25
26#include "Gui/Utils/Widgets/Widget.h"
27#include "Utils/Pimpl.h"
28
29UI_FWD(GUI_CoverEdit)
30
31namespace Tagging
32{
33 class Editor;
34}
35
36class MetaData;
37class MetaDataList;
38class QPixmap;
39
40namespace Tagging
41{
42 class Editor;
43}
44
46 public Gui::Widget
47{
48 Q_OBJECT
49 PIMPL(GUI_CoverEdit)
50 UI_CLASS(GUI_CoverEdit)
51
52 public:
53 GUI_CoverEdit(Tagging::Editor* tagEditor, QWidget* parent);
54 ~GUI_CoverEdit() override;
55
56 void setCurrentIndex(int index);
57
58 void refreshCurrentTrack();
59 void reset();
60 void updateTrack(int index);
61
62 private:
63 void refreshOriginalCover();
64 void refreshReplacementCover();
65
66 private slots:
67 void coverChanged();
68 void replaceToggled(bool b);
69 void btnAllToggled(bool b);
70
71 protected:
72 void showEvent(QShowEvent* event) override;
73 void languageChanged() override;
74};
75
76#endif // GUI_COVEREDIT_H
Definition: GUI_CoverEdit.h:47
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() \nT...
Definition: Widget.h:39
The MetaDataList class.
Definition: MetaDataList.h:39
The MetaData class.
Definition: MetaData.h:47
The TagEdit class Metadata has to be added using the set_metadata(const MetaDataList&) method....
Definition: Editor.h:43
The GUI_TagEdit class.
Definition: GenreFetcher.h:34