aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangtools/settingswidget.h
blob: b88745f4ed5c12e3faf8c4478a63a07b2f5aa358 (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
45
46
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include "clangtoolssettings.h"

#include <coreplugin/dialogs/ioptionspage.h>

#include <memory>

namespace Utils { class FilePath; }

namespace ClangTools {
namespace Internal {

namespace Ui { class SettingsWidget; }

class SettingsWidget : public Core::IOptionsPageWidget
{
    Q_OBJECT

public:
    static SettingsWidget *instance();

    SettingsWidget();
    ~SettingsWidget() override;

    Utils::FilePath clangTidyPath() const;
    Utils::FilePath clazyStandalonePath() const;

private:
    void apply() final;

    std::unique_ptr<Ui::SettingsWidget> m_ui;
    ClangToolsSettings *m_settings;
};

class ClangToolsOptionsPage final : public Core::IOptionsPage
{
public:
    ClangToolsOptionsPage();
};

} // namespace Internal
} // namespace ClangTools