blob: 1ef6154fc0121a6068df6642a0f2ad09c5129098 (
plain)
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
|
// Copyright (C) 2016 Lorenz Haas
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <utils/mimeutils.h>
#include <QList>
namespace Beautifier {
namespace Internal {
class GeneralSettings
{
public:
explicit GeneralSettings();
static GeneralSettings *instance();
void read();
void save();
bool autoFormatOnSave() const;
void setAutoFormatOnSave(bool autoFormatOnSave);
QString autoFormatTool() const;
void setAutoFormatTool(const QString &autoFormatTool);
QList<Utils::MimeType> autoFormatMime() const;
QString autoFormatMimeAsString() const;
void setAutoFormatMime(const QList<Utils::MimeType> &autoFormatMime);
void setAutoFormatMime(const QString &mimeList);
bool autoFormatOnlyCurrentProject() const;
void setAutoFormatOnlyCurrentProject(bool autoFormatOnlyCurrentProject);
private:
bool m_autoFormatOnSave = false;
bool m_autoFormatOnlyCurrentProject = true;
QString m_autoFormatTool;
QList<Utils::MimeType> m_autoFormatMime;
};
} // namespace Internal
} // namespace Beautifier
|