2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2018 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2018-03-10 18:45:06 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
2020-04-17 15:30:05 +02:00
|
|
|
|
2021-03-23 15:58:16 +01:00
|
|
|
#include <coreplugin/dialogs/ioptionspage.h>
|
2020-04-17 15:30:05 +02:00
|
|
|
|
2021-03-23 15:58:16 +01:00
|
|
|
#include <utils/aspects.h>
|
2018-03-10 18:45:06 +01:00
|
|
|
|
|
|
|
|
namespace CMakeProjectManager {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
enum AfterAddFileAction : int {
|
2021-03-26 16:54:40 +01:00
|
|
|
AskUser,
|
|
|
|
|
CopyFilePath,
|
|
|
|
|
NeverCopyFilePath
|
2018-03-10 18:45:06 +01:00
|
|
|
};
|
|
|
|
|
|
2021-03-26 16:54:40 +01:00
|
|
|
class CMakeSpecificSettings final : public Utils::AspectContainer
|
2018-03-10 18:45:06 +01:00
|
|
|
{
|
2021-03-23 15:58:16 +01:00
|
|
|
Q_DECLARE_TR_FUNCTIONS(CMakeProjectManager::Internal::CMakeSpecificSettings)
|
|
|
|
|
|
2018-03-10 18:45:06 +01:00
|
|
|
public:
|
2021-03-23 15:58:16 +01:00
|
|
|
CMakeSpecificSettings();
|
|
|
|
|
|
2021-03-26 16:54:40 +01:00
|
|
|
Utils::SelectionAspect afterAddFileSetting;
|
|
|
|
|
Utils::StringAspect ninjaPath;
|
|
|
|
|
Utils::BoolAspect packageManagerAutoSetup;
|
|
|
|
|
Utils::BoolAspect askBeforeReConfigureInitialParams;
|
2022-07-04 08:54:24 +02:00
|
|
|
Utils::BoolAspect showSourceSubFolders;
|
2021-03-23 15:58:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class CMakeSpecificSettingsPage final : public Core::IOptionsPage
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit CMakeSpecificSettingsPage(CMakeSpecificSettings *settings);
|
2018-03-10 18:45:06 +01:00
|
|
|
};
|
|
|
|
|
|
2021-03-23 15:58:16 +01:00
|
|
|
} // Internal
|
|
|
|
|
} // CMakeProjectManager
|