You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.2 KiB
C++
87 lines
2.2 KiB
C++
/*
|
|
* 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/Serialization/SerializeContext.h>
|
|
#include <AzCore/Serialization/EditContext.h>
|
|
#include <AzCore/RTTI/RTTI.h>
|
|
#include <AzCore/Math/Vector3.h>
|
|
#include <QIcon>
|
|
|
|
|
|
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;
|
|
bool m_autoSaveTagPoints;
|
|
};
|
|
|
|
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 AssetBrowserSearch
|
|
{
|
|
AZ_TYPE_INFO(AssetBrowserSearch, "{9FBFCD24-9452-49DF-99F4-2711443CEAAE}")
|
|
|
|
int m_maxNumberOfItemsShownInSearch;
|
|
};
|
|
|
|
Files m_files;
|
|
ExternalEditors m_editors;
|
|
AutoBackup m_autoBackup;
|
|
AssetBrowserSearch m_assetBrowserSearch;
|
|
QIcon m_icon;
|
|
};
|
|
|
|
|