Sayonara Player
src
Gui
Library
Utils
GUI_EditLibrary.h
1
/* GUI_EditLibrary.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
#ifndef GUI_EDITLIBRARY_H
22
#define GUI_EDITLIBRARY_H
23
24
#include "Utils/Pimpl.h"
25
#include "Gui/Utils/Widgets/Dialog.h"
26
27
UI_FWD(
GUI_EditLibrary
)
28
29
34
class
GUI_EditLibrary
:
35
public Gui::Dialog
36
{
37
Q_OBJECT
38
PIMPL(
GUI_EditLibrary
)
39
UI_CLASS(
GUI_EditLibrary
)
40
41
signals:
42
void
sigAccepted();
43
void
sigRejected();
44
45
public
:
46
explicit
GUI_EditLibrary
(
const
QString& name,
const
QString& path, QWidget* parent =
nullptr
);
47
explicit
GUI_EditLibrary
(QWidget* parent =
nullptr
);
48
~
GUI_EditLibrary
()
override
;
49
53
void
reset
();
54
55
enum class
EditMode
56
{
57
New = 0,
58
Edit = 1
59
};
60
61
QString name()
const
;
62
QString path()
const
;
63
64
bool
hasNameChanged()
const
;
65
bool
hasPathChanged()
const
;
66
67
EditMode editMode()
const
;
68
69
private
slots:
70
void
okClicked();
71
void
cancelClicked();
72
void
chooseDirClicked();
73
void
nameEdited(
const
QString& text);
74
75
protected
:
76
void
languageChanged()
override
;
77
void
skinChanged()
override
;
78
};
79
80
#endif // GUI_EDITLIBRARY_H
GUI_EditLibrary
The GUI_EditLibrary class.
Definition:
GUI_EditLibrary.h:36
GUI_EditLibrary::reset
void reset()
Same as GUI_EditLibrary(QWidget* parent=nullptr)
Generated on Wed Jan 6 2021 00:00:00 for Sayonara Player by
1.8.20