aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangtools/runsettingswidget.h
blob: 8a42a3279324c875f49e0b585136b8c1c388fe34 (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) 2019 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 <cppeditor/clangdiagnosticconfig.h>

#include <QWidget>

namespace CppEditor {
class ClangDiagnosticConfigsSelectionWidget;
}

namespace ClangTools {
namespace Internal {

class RunSettings;

namespace Ui {
class RunSettingsWidget;
}

class RunSettingsWidget : public QWidget
{
    Q_OBJECT

public:
    explicit RunSettingsWidget(QWidget *parent = nullptr);
    ~RunSettingsWidget();

    CppEditor::ClangDiagnosticConfigsSelectionWidget *diagnosticSelectionWidget();

    void fromSettings(const RunSettings &s);
    RunSettings toSettings() const;

signals:
    void changed();

private:
    Ui::RunSettingsWidget *m_ui;
};

} // namespace Internal
} // namespace ClangTools