1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include "Include/IPreferencesPage.h"
- #include <AzCore/RTTI/TypeInfoSimple.h>
- #include <AzCore/RTTI/RTTIMacros.h>
- #include <AzCore/Math/Vector3.h>
- #include <QIcon>
- namespace AZ
- {
- class SerializeContext;
- }
- class CEditorPreferencesPage_Files
- : public IPreferencesPage
- {
- public:
- AZ_RTTI(CEditorPreferencesPage_Files, "{5574AAD2-7619-4C61-A095-CBE70BDB3BF3}", IPreferencesPage)
- static void Reflect(AZ::SerializeContext& serialize);
- CEditorPreferencesPage_Files();
- virtual ~CEditorPreferencesPage_Files() = default;
- virtual const char* GetCategory() override { return "General Settings"; }
- virtual const char* GetTitle() override { return "Files"; }
- virtual QIcon& GetIcon() override;
- virtual void OnApply() override;
- virtual void OnCancel() override {}
- virtual bool OnQueryCancel() override { return true; }
- private:
- void InitializeSettings();
- struct Files
- {
- AZ_TYPE_INFO(Files, "{9952889C-2A03-4A8B-8ECB-27A2BCC9D7F6}")
- AZStd::string m_standardTempDirectory;
- AZStd::string m_saveLocation;
- int m_backupOnSaveMaxCount;
- bool m_autoNumberSlices;
- bool m_backupOnSave;
- };
- struct ExternalEditors
- {
- AZ_TYPE_INFO(ExternalEditors, "{6D04DAA8-C0DF-4AFE-B263-9B95619B2527}")
- AZStd::string m_scripts;
- AZStd::string m_shaders;
- AZStd::string m_BSpaces;
- AZStd::string m_textures;
- AZStd::string m_animations;
- };
- struct AutoBackup
- {
- AZ_TYPE_INFO(AutoBackup, "{C4EC2E11-EBE4-4DAE-B1E2-EB4C8731ECEE}")
- bool m_enabled;
- int m_timeInterval;
- int m_maxCount;
- int m_remindTime;
- };
- struct AssetBrowserSettings
- {
- AZ_TYPE_INFO(AssetBrowserSettings, "{5F407EC4-BBD1-4A87-92DB-D938D7127BB0}")
- AZ::u64 m_maxNumberOfItemsShownInSearch;
- };
- Files m_files;
- ExternalEditors m_editors;
- AutoBackup m_autoBackup;
- AssetBrowserSettings m_assetBrowserSettings;
- QIcon m_icon;
- };
|