aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/beautifier/generalsettings.h
blob: 0be68b98e354cd5dfa7a4a9dd877d4bc462188eb (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
// Copyright (C) 2016 Lorenz Haas
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <utils/mimeutils.h>

#include <coreplugin/dialogs/ioptionspage.h>

namespace Beautifier::Internal {

class GeneralSettings : public Core::PagedSettings
{
public:
    GeneralSettings();

    QList<Utils::MimeType> allowedMimeTypes() const;

    Utils::BoolAspect autoFormatOnSave{this};
    Utils::BoolAspect autoFormatOnlyCurrentProject{this};
    Utils::SelectionAspect autoFormatTools{this};
    Utils::StringAspect autoFormatMime{this};
};

} // Beautifier::Internal