SPEC-7179 Removal of precompiled header files

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-07-19 16:37:33 -07:00
committed by GitHub
2047 changed files with 2751 additions and 5803 deletions
@@ -10,6 +10,7 @@
#include <AzCore/std/function/function_base.h>
#include <AzCore/std/function/invoke.h>
#include <AzCore/std/typetraits/remove_cvref.h>
#include <AzCore/std/allocator.h>
#if defined(AZ_COMPILER_MSVC)
# pragma warning( push )
@@ -9,3 +9,16 @@
#pragma once
#include <unistd.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
// types like AZ::u64 require an usigned long long, but inttypes.h has it as unsigned long
#undef PRIX64
#undef PRIx64
#undef PRId64
#undef PRIu64
#define PRIX64 "llX"
#define PRIx64 "llx"
#define PRId64 "lld"
#define PRIu64 "llu"
@@ -8,6 +8,7 @@
#pragma once
#include "time_UnixLike.h"
#include <AzCore/std/chrono/clocks.h>
/**
* This file is to be included from the semaphore.h only. It should NOT be included by the user.
@@ -13,6 +13,9 @@
namespace Physics
{
class ShapeConfiguration;
class MaterialSelection;
/// Listens to requests for physics materials.
class PhysicsMaterialRequests
: public AZ::EBusTraits
@@ -5,10 +5,8 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <stdlib.h>
#include <windows.h>
#include <sysinfoapi.h>
#include <fileapi.h>
#include <AzCore/PlatformIncl.h>
#include <AzCore/IO/Path/Path.h>
#include <AzCore/std/functional.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/RTTI/BehaviorContext.h>
#include <AzCore/Serialization/EditContext.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/Asset/AssetProcessorMessages.h>
#include <AzCore/Serialization/SerializeContext.h>
#include <AzCore/Component/ComponentApplicationBus.h>
@@ -6,8 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/IO/FileIO.h>
#include <AzFramework/Asset/AssetProcessorMessages.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/AssetBrowser/AssetSelectionModel.h>
#include <AzToolsFramework/AssetBrowser/AssetBrowserBus.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/AssetDatabase/AssetDatabaseConnection.h>
#include <sqlite3.h>
@@ -11,6 +11,7 @@
#include <AzCore/UserSettings/UserSettings.h>
#include <AzCore/Asset/AssetCommon.h>
#include <AzCore/std/containers/unordered_map.h>
#include <AzCore/Serialization/SerializeContext.h>
namespace AZ { namespace Data { class AssetData; } }
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "AssetEditorHeader.h"
@@ -9,6 +9,7 @@
#include <AzQtComponents/AzQtComponentsAPI.h>
#include <AzQtComponents/Components/Widgets/ElidingLabel.h>
#include <AzCore/Memory/SystemAllocator.h>
#include <QWidget>
#include <QTimer>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "AssetEditorWidget.h"
@@ -1,29 +0,0 @@
/*
* 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 <AzCore/Memory/Memory.h>
#include <AzCore/Component/Component.h>
// QT
AZ_PUSH_DISABLE_WARNING(4127, "-Wunknown-warning-option") // conditional expression is constant
#include <QtWidgets/QWidget>
AZ_POP_DISABLE_WARNING
#include <QtCore/QEvent>
#include <QtWidgets/QLabel>
#include <QtWidgets/QApplication>
#include <QtWidgets/QScrollArea>
#if defined(AZ_PLATFORM_APPLE_OSX) || defined(AZ_PLATFORM_LINUX)
typedef void* HWND;
typedef void* HMODULE;
typedef quint32 DWORD;
#define _MAX_PATH 260
#define MAX_PATH 260
#endif
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "BaseSliceCommand.h"
#include <AzToolsFramework/Entity/SliceEditorEntityOwnershipServiceBus.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "CreateSliceCommand.h"
#include <AzCore/Asset/AssetManager.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "DetachSubSliceInstanceCommand.h"
#include <AzToolsFramework/API/ToolsApplicationAPI.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EntityStateCommand.h"
#include <AzCore/Component/Entity.h>
#include <AzCore/Component/ComponentApplicationBus.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#if 0
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/Component/ComponentApplicationBus.h>
#include <AzCore/Debug/Profiler.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PushToSliceCommand.h"
#include <AzCore/Component/TransformBus.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "SelectionCommand.h"
#include <AzToolsFramework/API/ToolsApplicationAPI.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "SliceDetachEntityCommand.h"
namespace AzToolsFramework
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/Entity/EditorEntityContextComponent.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/RTTI/RTTI.h>
#include <AzToolsFramework/Entity/EditorEntityFixupComponent.h>
#include <AzToolsFramework/ToolsComponents/GenericComponentWrapper.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorEntityModel.h"
#include "EditorEntitySortBus.h"
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "SliceDataFlagsCommand.h"
#include <AzToolsFramework/Entity/EditorEntityHelpers.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/Component/Entity.h>
#include <AzCore/Slice/SliceMetadataInfoBus.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/RTTI/BehaviorContext.h>
#include <AzFramework/IO/FileOperations.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/Asset/AssetManager.h>
#include <AzCore/Debug/Profiler.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/Component/ComponentApplication.h>
#include <AzCore/Component/EntityUtils.h>
#include <AzCore/IO/FileIO.h>
@@ -62,6 +61,7 @@
#include <AzToolsFramework/Slice/SliceMetadataEntityContextBus.h>
AZ_PUSH_DISABLE_WARNING(4251 4244, "-Wunknown-warning-option") // 4251: class '...' needs to have dll-interface to be used by clients of class '...'
// 4244: 'argument': conversion from 'int' to 'float', possible loss of data
#include <QtWidgets/QApplication>
#include <QtWidgets/QWidget>
#include <QtWidgets/QWidgetAction>
#include <QtWidgets/QMenu>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/SourceControl/LocalFileSCComponent.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/SourceControl/PerforceComponent.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/SourceControl/PerforceConnection.h>
#include <AzFramework/Process/ProcessWatcher.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/SourceControl/QtSourceControlNotificationHandler.h>
#include <AzCore/std/string/string.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "ComponentAssetMimeDataContainer.h"
#include <AzCore/Serialization/SerializeContext.h>
#include <AzCore/Component/Component.h>
@@ -14,6 +14,8 @@
#include <AzCore/RTTI/RTTI.h>
#include <AzCore/Serialization/SerializeContext.h>
#include <QtCore/QString>
namespace AZ
{
struct ClassDataReflection;
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorAssetMimeDataContainer.h"
#include <AzCore/Serialization/SerializeContext.h>
#include <AzCore/Component/Component.h>
@@ -14,6 +14,8 @@
#include <AzCore/RTTI/RTTI.h>
#include <AzCore/Serialization/SerializeContext.h>
#include <QtCore/QString>
namespace AZ
{
struct ClassDataReflection;
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorAssetReference.h"
#include <AzCore/Serialization/SerializeContext.h>
#include <AzCore/Serialization/EditContext.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorComponentBase.h"
#include "TransformComponent.h"
#include "SelectionComponent.h"
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorDisabledCompositionComponent.h"
#include <AzCore/Serialization/EditContext.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorEntityIconComponent.h"
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorEntityIdContainer.h"
#include <AzCore/Serialization/SerializeContext.h>
#include <AzCore/Component/Component.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorLayerComponent.h"
#include <AzCore/IO/FileIO.h>
#include <AzCore/RTTI/ReflectContext.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorLockComponent.h"
#include <AzCore/Serialization/EditContext.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/ToolsComponents/EditorOnlyEntityComponent.h>
#include <AzToolsFramework/API/ToolsApplicationAPI.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorPendingCompositionComponent.h"
#include <AzCore/Serialization/EditContext.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorSelectionAccentSystemComponent.h"
#include <AzCore/Debug/Profiler.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EditorVisibilityComponent.h"
#include <AzCore/Serialization/EditContext.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/Serialization/EditContext.h>
#include <AzCore/Component/ComponentApplicationBus.h>
#include <AzCore/Component/ComponentExport.h>
@@ -6,10 +6,10 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "LayerResult.h"
#include <QString>
#include <AzCore/Debug/Trace.h>
namespace AzToolsFramework
{
@@ -7,6 +7,8 @@
*/
#pragma once
#include <QtCore/QString>
namespace AzToolsFramework
{
namespace Layers
@@ -7,7 +7,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/ToolsComponents/ScriptEditorComponent.h>
#include <AzCore/Script/ScriptSystemBus.h>
#include <AzCore/EBus/Results.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "SelectionComponent.h"
#include <AzCore/Serialization/EditContext.h>
#include <AzToolsFramework/UI/PropertyEditor/PropertyEditorAPI.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "TransformComponent.h"
#include <AzCore/Component/ComponentApplicationBus.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "ComponentPaletteModel.hxx"
namespace AzToolsFramework
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "ComponentPaletteModelFilter.hxx"
#include <AzCore/Serialization/SerializeContext.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "ComponentPaletteUtil.hxx"
#include <AzCore/Debug/Profiler.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "ComponentPaletteModel.hxx"
#include "ComponentPaletteUtil.hxx"
@@ -6,6 +6,7 @@
*
*/
#include <AzCore/PlatformIncl.h>
#include <AzToolsFramework/UI/Docking/DockWidgetUtils.h>
AZ_PUSH_DISABLE_WARNING(4251 4244 4458, "-Wunknown-warning-option") // 4251: 'QTextStream::d_ptr': class 'QScopedPointer<QTextStreamPrivate,QScopedPointerDeleter<T>>' needs to have dll-interface to be used by clients of class 'QTextStream'
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "AddToLayerMenu.h"
#include <AzCore/Component/TransformBus.h>
@@ -22,6 +21,7 @@ AZ_PUSH_DISABLE_WARNING(4251, "-Wunknown-warning-option") // 'QLayoutItem::align
#include <QMenu>
#include <QWidgetAction>
AZ_POP_DISABLE_WARNING
#include <QtWidgets/QLabel>
namespace AzToolsFramework
{
@@ -6,12 +6,13 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/Serialization/SerializeContext.h>
#include <AzCore/Component/ComponentApplication.h>
#include "EditorFrameworkAPI.h"
#include <QtCore/QString>
namespace LegacyFramework
{
const char* appName()
@@ -6,16 +6,15 @@
*
*/
#ifndef EditorFrameworkAPI_H
#define EditorFrameworkAPI_H
#pragma once
#include <AzCore/base.h>
#include <AzCore/Math/Uuid.h>
#include <AzCore/EBus/EBus.h>
#include <AzCore/PlatformIncl.h>
#include <AzCore/Component/EntityId.h>
#include <AzFramework/CommandLine/CommandLine.h>
#pragma once
// this file contains the API for the buses that the framework communicates on to NON-GUI-CLIENTS
// note that this does not include UI messaging, this is for non-ui parts of it!
@@ -24,10 +23,6 @@ namespace AZ
class SerializeContext;
}
#ifdef AZ_PLATFORM_WINDOWS
typedef HINSTANCE HMODULE;
#endif
namespace LegacyFramework
{
// we agree that an entity list is a list of entity IDs
@@ -220,9 +215,7 @@ namespace LegacyFramework
/** (Windows) retrieves the main module of the executable.
* This is always going to be the main executable except in the situation where the framework may be running as a DLL belonging to another process or program.
*/
#ifdef AZ_PLATFORM_WINDOWS
virtual HMODULE GetMainModule() = 0;
#endif
virtual void* GetMainModule() = 0;
virtual const char* GetApplicationName() = 0;
virtual const char* GetApplicationModule() = 0;
@@ -329,5 +322,3 @@ namespace LegacyFramework
typedef AZ::EBus<IPCCommandAPI> IPCCommandBus;
};
#endif
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/PlatformIncl.h>
#include "EditorFrameworkApplication.h"
@@ -54,11 +53,12 @@ AZ_PUSH_DISABLE_WARNING(4251, "-Wunknown-warning-option") // 'QFileInfo::d_ptr':
AZ_POP_DISABLE_OVERRIDE_WARNING
#include <QSharedMemory>
#include <QStandardPaths>
#include <QtWidgets/QApplication>
namespace LegacyFramework
{
ApplicationDesc::ApplicationDesc(const char* name, int argc, char** argv)
: m_applicationModule(NULL)
: m_applicationModule(nullptr)
, m_enableGridmate(true)
, m_enablePerforce(true)
, m_enableGUI(true)
@@ -71,7 +71,7 @@ namespace LegacyFramework
m_applicationName[0] = 0;
if (name)
{
azstrcpy(m_applicationName, _MAX_PATH, name);
azstrcpy(m_applicationName, AZ_MAX_PATH_LEN, name);
}
}
@@ -91,7 +91,7 @@ namespace LegacyFramework
m_enableGUI = other.m_enableGUI;
m_enableGridmate = other.m_enableGridmate;
m_enablePerforce = other.m_enablePerforce;
azstrcpy(m_applicationName, _MAX_PATH, other.m_applicationName);
azstrcpy(m_applicationName, AZ_MAX_PATH_LEN, other.m_applicationName);
m_enableProjectManager = other.m_enableProjectManager;
m_shouldRunAssetProcessor = other.m_shouldRunAssetProcessor;
m_saveUserSettings = other.m_saveUserSettings;
@@ -105,12 +105,12 @@ namespace LegacyFramework
m_isPrimary = true;
m_desiredExitCode = 0;
m_abortRequested = false;
m_applicationEntity = NULL;
m_ptrSystemEntity = NULL;
m_applicationEntity = nullptr;
m_ptrSystemEntity = nullptr;
m_applicationModule[0] = 0;
}
HMODULE Application::GetMainModule()
void* Application::GetMainModule()
{
return m_desc.m_applicationModule;
}
@@ -372,7 +372,7 @@ namespace LegacyFramework
applicationFilePath.append("_app.xml");
AZ_Assert(applicationFilePath.size() <= _MAX_PATH, "Application path longer than expected");
AZ_Assert(applicationFilePath.size() <= AZ_MAX_PATH_LEN, "Application path longer than expected");
qstrcpy(m_applicationFilePath, applicationFilePath.c_str());
// load all application entities, if present:
@@ -25,7 +25,7 @@ namespace LegacyFramework
{
struct ApplicationDesc
{
HMODULE m_applicationModule; // only necessary if you want to attach your application as a DLL plugin to another application, hosting it
void* m_applicationModule; // only necessary if you want to attach your application as a DLL plugin to another application, hosting it
bool m_enableGUI; // false if you want none of the QT or GUI functionality to exist. You cannot use project manager if you do this.
bool m_enableGridmate; // false if you want to not activate the network communications module.
bool m_enablePerforce; // false if you want to not activate perforce SCM integration. note that this will eventually become a plugin anyway
@@ -36,7 +36,7 @@ namespace LegacyFramework
int m_argc;
char** m_argv;
char m_applicationName[_MAX_PATH];
char m_applicationName[AZ_MAX_PATH_LEN];
ApplicationDesc(const char* name = "Application", int argc = 0, char** argv = nullptr);
ApplicationDesc(const ApplicationDesc& other);
@@ -66,7 +66,7 @@ namespace LegacyFramework
virtual bool IsRunningInGUIMode() { return m_desc.m_enableGUI; }
virtual bool RequiresGameProject() { return m_desc.m_enableProjectManager; }
virtual bool ShouldRunAssetProcessor() { return m_desc.m_shouldRunAssetProcessor; }
virtual HMODULE GetMainModule();
virtual void* GetMainModule();
virtual const char* GetApplicationName();
virtual const char* GetApplicationModule();
virtual const char* GetApplicationDirectory();
@@ -132,11 +132,11 @@ namespace LegacyFramework
void CreateApplicationComponent();
void SaveApplicationEntity();
char m_applicationModule[_MAX_PATH];
char m_applicationModule[AZ_MAX_PATH_LEN];
int m_desiredExitCode;
bool m_isPrimary;
volatile bool m_abortRequested; // if you CTRL+C in a console app, this becomes true. its up to you to check...
char m_applicationFilePath[_MAX_PATH];
char m_applicationFilePath[AZ_MAX_PATH_LEN];
ApplicationDesc m_desc;
AzFramework::CommandLine* m_ptrCommandLineParser;
};
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "IPCComponent.h"
#include <AzCore/std/parallel/thread.h>
#include <AzCore/Component/TickBus.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzCore/Component/Component.h>
#include <AzCore/Serialization/SerializeContext.h>
#include <AzToolsFramework/UI/LegacyFramework/UIFrameworkAPI.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "MainWindowSavedState.h"
#include <AzCore/Serialization/SerializeContext.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "UIFramework.hxx"
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "UIFrameworkAPI.h"
#include <AzCore/Math/Uuid.h>
#include <AzCore/std/delegate/delegate.h>
@@ -18,6 +17,7 @@
#include <AzToolsFramework/UI/UICore/OverwritePromptDialog.hxx>
#include <QWindow>
#include <QtGui/QGuiApplication>
namespace AzToolsFramework
{
@@ -49,32 +49,6 @@ namespace AzToolsFramework
};
}
static QWindow* windowForWidget(const QWidget* widget)
{
QWindow* window = widget->windowHandle();
if (window)
{
return window;
}
const QWidget* nativeParent = widget->nativeParentWidget();
if (nativeParent)
{
return nativeParent->windowHandle();
}
return 0;
}
HWND getHWNDForWidget(const QWidget* widget)
{
QWindow* window = windowForWidget(widget);
if (window && window->handle())
{
QPlatformNativeInterface* itf = QGuiApplication::platformNativeInterface();
return static_cast<HWND>(itf->nativeResourceForWindow(QByteArrayLiteral("handle"), window));
}
return 0;
}
bool GetOverwritePromptResult(QWidget* pParentWidget, const char* assetNameToOvewrite)
{
OverwritePromptDialog dlg(pParentWidget);
@@ -52,9 +52,6 @@ namespace AzToolsFramework
// ------------------------------------------------ DESCRIPTOR STRUCTS ----------------------------------------------------
// ------------------------------------------------------------------------------------------------------------------------
// helper function:
HWND getHWNDForWidget(const QWidget* widget);
struct HotkeyDescription
{
enum Scope
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "UIFramework.hxx"
#include <qaction.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "GenericLogPanel.h"
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "LogControl.h"
#include "LoggingCommon.h"
@@ -20,6 +19,7 @@ AZ_POP_DISABLE_WARNING
#include <QScrollBar>
#include <QTableView>
#include <QHeaderView>
#include <QtWidgets/QApplication>
#include "LogPanel_Panel.h"
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "LogPanel_Panel.h"
@@ -33,6 +32,9 @@ AZ_PUSH_DISABLE_WARNING(4244 4251 4800, "-Wunknown-warning-option") // 4244: con
// 4800 'QTextEngine *const ': forcing value to bool 'true' or 'false' (performance warning)
#include <QAbstractTextDocumentLayout>
AZ_POP_DISABLE_WARNING
#include <QtWidgets/QLabel>
#include <QtWidgets/QApplication>
#include <AzQtComponents/Components/Widgets/TabWidget.h>
#include "NewLogTabDialog.h"
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/UI/LegacyFramework/Core/EditorFrameworkAPI.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "TracePrintFLogPanel.h"
#include <QAction>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "ComponentEditor.hxx"
#include "ComponentEditorHeader.hxx"
@@ -36,6 +35,7 @@ AZ_PUSH_DISABLE_WARNING(4251 4244, "-Wunknown-warning-option") // 4251: 'QInputE
// 4244: 'return': conversion from 'qreal' to 'int', possible loss of data
#include <QContextMenuEvent>
AZ_POP_DISABLE_WARNING
#include <QtWidgets/QApplication>
#include <AzToolsFramework/Viewport/ViewportMessages.h>
namespace AzToolsFramework
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "ComponentEditorHeader.hxx"
#include "PropertyRowWidget.hxx"
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "DHQComboBox.hxx"
AZ_PUSH_DISABLE_WARNING(4244 4251, "-Wunknown-warning-option") // 4244: conversion from 'int' to 'float', possible loss of data
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "DHQSlider.hxx"
#include "PropertyQTConstants.h"
#include <QtWidgets/QAbstractSpinBox>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EntityIdQLabel.hxx"
#include <AzCore/Component/ComponentApplicationBus.h>
#include <AzCore/Component/Entity.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "EntityIdQLineEdit.h"
#include <AzCore/Component/ComponentApplicationBus.h>
#include <AzCore/Component/Entity.h>
@@ -8,7 +8,6 @@
#include <AzCore/PlatformDef.h>
AZ_PUSH_DISABLE_WARNING(4127, "-Wunknown-warning-option") // conditional expression is constant
#include "AzToolsFramework_precompiled.h"
#include "EntityPropertyEditor.hxx"
AZ_POP_DISABLE_WARNING
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "InstanceDataHierarchy.h"
#include <AzCore/std/bind/bind.h>
#include <AzCore/std/functional.h>
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyAssetCtrl.hxx"
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyAudioCtrl.h"
#include "PropertyQTConstants.h"
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyBoolComboBoxCtrl.hxx"
#include "PropertyQTConstants.h"
#include "DHQComboBox.hxx"
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include <AzToolsFramework/UI/PropertyEditor/PropertyBoolRadioButtonsCtrl.hxx>
#include <AzToolsFramework/UI/PropertyEditor/PropertyQTConstants.h>
@@ -5,13 +5,13 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyButtonCtrl.hxx"
#include "PropertyQTConstants.h"
#include <QtWidgets/QPushButton>
AZ_PUSH_DISABLE_WARNING(4251, "-Wunknown-warning-option") // 4251: 'QLayoutItem::align': class 'QFlags<Qt::AlignmentFlag>' needs to have dll-interface to be used by clients of class 'QLayoutItem'
#include <QtWidgets/QHBoxLayout>
AZ_POP_DISABLE_WARNING
#include <QtCore/QEvent>
namespace AzToolsFramework
{
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyCRCCtrl.h"
#include "PropertyQTConstants.h"
#include <QRegExp>
@@ -15,6 +14,7 @@ AZ_PUSH_DISABLE_WARNING(4251, "-Wunknown-warning-option") // 4251: 'QLayoutItem:
#include <QHBoxLayout>
AZ_POP_DISABLE_WARNING
#include <QString>
#include <QtCore/QEvent>
namespace AzToolsFramework
{
@@ -6,7 +6,6 @@
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyCheckBoxCtrl.hxx"
#include "PropertyQTConstants.h"
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyColorCtrl.hxx"
#include "PropertyQTConstants.h"
#include <AzQtComponents/Components/Widgets/ColorPicker.h>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include <cmath>
#include "PropertyDoubleSliderCtrl.hxx"
#include "DHQSlider.hxx"
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyDoubleSpinCtrl.hxx"
#include "PropertyQTConstants.h"
#include <QSlider>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyEditorAPI.h"
#include <QtWidgets/QDoubleSpinBox>
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyEntityIdCtrl.hxx"
#include "PropertyQTConstants.h"
@@ -34,6 +33,7 @@ AZ_PUSH_DISABLE_WARNING(4244 4251, "-Wunknown-warning-option") // 4244: conversi
AZ_POP_DISABLE_WARNING
#include <QDropEvent>
#include <QToolButton>
#include <QtWidgets/QApplication>
//just a test to see how it would work to pop a dialog
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
#include "PropertyEnumComboBoxCtrl.hxx"
#include "PropertyQTConstants.h"
#include "DHQComboBox.hxx"

Some files were not shown because too many files have changed in this diff Show More