Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Gui
Tagging
GUI_TagEdit.h
1
/* GUI_TagEdit.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 GUI_TAGEDIT_H_
22
#define GUI_TAGEDIT_H_
23
24
#include "Gui/Utils/Widgets/Widget.h"
25
#include "Utils/Pimpl.h"
26
31
namespace
Tagging
32
{
33
class
Editor
;
34
}
35
36
class
QAbstractButton;
37
class
MetaDataList
;
38
class
MetaData
;
39
40
UI_FWD(
GUI_TagEdit
)
41
42
class GUI_TagEdit :
43
public Gui::Widget
44
{
45
Q_OBJECT
46
UI_CLASS(GUI_TagEdit)
47
PIMPL(GUI_TagEdit)
48
49
signals:
50
void
sigOkClicked(
const
MetaDataList
&);
51
void
sigCancelled();
52
53
public
:
54
explicit
GUI_TagEdit(QWidget* parent =
nullptr
);
55
~GUI_TagEdit()
override
;
56
57
void
showDefaultTab();
58
void
showCoverTab();
59
60
void
setMetadata(
const
MetaDataList
& tracks);
61
62
private
slots:
63
void
nextButtonClicked();
64
void
prevButtonClicked();
65
void
undoClicked();
66
void
undoAllClicked();
67
void
loadEntireAlbumClicked();
68
69
void
metadataChanged(
const
MetaDataList
& tracks);
70
void
applyTagFromPathTriggered();
71
void
applyAllTagFromPathTriggered();
72
73
void
commit();
74
void
commitStarted();
75
void
commitFinished();
76
void
progressChanged(
int
val);
77
78
private
:
79
void
setCurrentIndex(
int
index);
80
void
refreshCurrentTrack();
81
void
reset();
82
void
writeChanges(
int
trackIndex);
83
void
runEditor(
Tagging::Editor
* editor);
84
85
protected
:
86
void
showEvent(QShowEvent* e)
override
;
87
void
languageChanged()
override
;
88
};
89
90
#endif
GUI_TagEdit
Definition
GUI_TagEdit.h:44
MetaDataList
Definition
MetaDataList.h:34
MetaData
Definition
MetaData.h:43
Tagging::Editor
Definition
Editor.h:37
Tagging
The GUI_TagEdit class.
Definition
Engine.h:33
Generated on
for Sayonara Player by
1.17.0