2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2015-08-14 13:25:31 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2015-08-14 13:25:31 +02:00
|
|
|
|
2023-07-26 18:29:20 +02:00
|
|
|
#include <utils/aspects.h>
|
2018-08-24 10:56:13 +02:00
|
|
|
|
2023-07-26 18:29:20 +02:00
|
|
|
namespace Core::Internal {
|
2015-08-14 13:25:31 +02:00
|
|
|
|
2023-07-26 18:29:20 +02:00
|
|
|
class SystemSettings final : public Utils::AspectContainer
|
2015-08-14 13:25:31 +02:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
SystemSettings();
|
2023-07-26 18:29:20 +02:00
|
|
|
|
|
|
|
|
Utils::BoolAspect autoSaveModifiedFiles{this};
|
|
|
|
|
Utils::IntegerAspect autoSaveInterval{this};
|
|
|
|
|
|
|
|
|
|
Utils::BoolAspect autoSaveAfterRefactoring{this};
|
|
|
|
|
|
|
|
|
|
Utils::BoolAspect autoSuspendEnabled{this};
|
|
|
|
|
Utils::IntegerAspect autoSuspendMinDocumentCount{this};
|
|
|
|
|
|
|
|
|
|
Utils::BoolAspect warnBeforeOpeningBigFiles{this};
|
|
|
|
|
Utils::IntegerAspect bigFileSizeLimitInMB{this};
|
|
|
|
|
|
|
|
|
|
Utils::IntegerAspect maxRecentFiles{this};
|
|
|
|
|
|
|
|
|
|
Utils::SelectionAspect reloadSetting{this};
|
|
|
|
|
|
|
|
|
|
#ifdef ENABLE_CRASHPAD
|
|
|
|
|
Utils::BoolAspect enableCrashReporting{this};
|
|
|
|
|
Utils::BoolAspect showCrashButton{this};
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
Utils::BoolAspect askBeforeExit{this};
|
2015-08-14 13:25:31 +02:00
|
|
|
};
|
|
|
|
|
|
2023-07-26 18:29:20 +02:00
|
|
|
SystemSettings &systemSettings();
|
|
|
|
|
|
|
|
|
|
} // Core::Internal
|