forked from KDE/ghostwriter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
themeeditordialog.h
52 lines (42 loc) · 1.02 KB
/
themeeditordialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* SPDX-FileCopyrightText: 2014-2022 Megan Conkle <[email protected]>
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef THEMEEDITORDIALOG_H
#define THEMEEDITORDIALOG_H
#include <QDialog>
#include <QScopedPointer>
#include "theme.h"
namespace ghostwriter
{
/**
* Theme editor dialog which allows the user modify a theme for the
* application's look and feel.
*/
class ThemeEditorDialogPrivate;
class ThemeEditorDialog : public QDialog
{
Q_OBJECT
Q_DECLARE_PRIVATE(ThemeEditorDialog)
public:
/**
* Constructor. Takes the theme to to be edited as a parameter.
*/
ThemeEditorDialog(const Theme &theme, QWidget *parent = nullptr);
/**
* Destructor.
*/
~ThemeEditorDialog();
/**
* Returns the theme selected if action was to accept.
*/
const Theme &theme() const;
private slots:
void accept() override;
void reject() override;
private:
QScopedPointer<ThemeEditorDialogPrivate> d_ptr;
};
} // namespace ghostwriter
#endif // THEMEEDITORDIALOG_H