Files
qt-creator/src/plugins/clangtools/settingswidget.h

47 lines
921 B
C
Raw Normal View History

// 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
#pragma once
2014-09-25 11:11:58 +02:00
#include "clangtoolssettings.h"
2014-09-25 11:11:58 +02:00
#include <coreplugin/dialogs/ioptionspage.h>
2014-09-25 11:11:58 +02:00
#include <memory>
namespace Utils { class FilePath; }
namespace ClangTools {
2014-09-25 11:11:58 +02:00
namespace Internal {
namespace Ui { class SettingsWidget; }
2014-09-25 11:11:58 +02:00
class SettingsWidget : public Core::IOptionsPageWidget
2014-09-25 11:11:58 +02:00
{
Q_OBJECT
public:
static SettingsWidget *instance();
SettingsWidget();
~SettingsWidget() override;
Utils::FilePath clangTidyPath() const;
Utils::FilePath clazyStandalonePath() const;
2014-09-25 11:11:58 +02:00
private:
void apply() final;
std::unique_ptr<Ui::SettingsWidget> m_ui;
ClangToolsSettings *m_settings;
2014-09-25 11:11:58 +02:00
};
class ClangToolsOptionsPage final : public Core::IOptionsPage
{
public:
ClangToolsOptionsPage();
};
2014-09-25 11:11:58 +02:00
} // namespace Internal
} // namespace ClangTools