2022-08-19 15:59:36 +02:00
|
|
|
// 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
|
2014-09-25 11:11:58 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2014-09-25 11:11:58 +02:00
|
|
|
|
2018-01-17 15:08:30 +01:00
|
|
|
#include "clangtoolssettings.h"
|
2014-09-25 11:11:58 +02:00
|
|
|
|
2020-01-08 17:45:16 +01:00
|
|
|
#include <coreplugin/dialogs/ioptionspage.h>
|
2014-09-25 11:11:58 +02:00
|
|
|
|
2018-08-29 15:58:13 +02:00
|
|
|
#include <memory>
|
|
|
|
|
|
2021-08-12 09:19:55 +02:00
|
|
|
namespace Utils { class FilePath; }
|
|
|
|
|
|
2018-03-14 12:58:12 +01:00
|
|
|
namespace ClangTools {
|
2014-09-25 11:11:58 +02:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2019-08-27 16:09:39 +02:00
|
|
|
namespace Ui { class SettingsWidget; }
|
2014-09-25 11:11:58 +02:00
|
|
|
|
2020-01-08 17:45:16 +01:00
|
|
|
class SettingsWidget : public Core::IOptionsPageWidget
|
2014-09-25 11:11:58 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2019-10-21 14:59:57 +02:00
|
|
|
static SettingsWidget *instance();
|
|
|
|
|
|
2020-01-08 17:45:16 +01:00
|
|
|
SettingsWidget();
|
2019-08-27 16:09:39 +02:00
|
|
|
~SettingsWidget() override;
|
2019-09-13 10:49:14 +02:00
|
|
|
|
2021-08-12 09:19:55 +02:00
|
|
|
Utils::FilePath clangTidyPath() const;
|
|
|
|
|
Utils::FilePath clazyStandalonePath() const;
|
2019-10-21 14:59:57 +02:00
|
|
|
|
2014-09-25 11:11:58 +02:00
|
|
|
private:
|
2020-01-08 17:45:16 +01:00
|
|
|
void apply() final;
|
|
|
|
|
|
2019-08-27 16:09:39 +02:00
|
|
|
std::unique_ptr<Ui::SettingsWidget> m_ui;
|
2018-01-17 15:08:30 +01:00
|
|
|
ClangToolsSettings *m_settings;
|
2014-09-25 11:11:58 +02:00
|
|
|
};
|
|
|
|
|
|
2020-02-03 09:18:49 +01:00
|
|
|
class ClangToolsOptionsPage final : public Core::IOptionsPage
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ClangToolsOptionsPage();
|
|
|
|
|
};
|
|
|
|
|
|
2014-09-25 11:11:58 +02:00
|
|
|
} // namespace Internal
|
2018-03-14 12:58:12 +01:00
|
|
|
} // namespace ClangTools
|