Removes UIFrameworkAPI.cpp from AzToolsFramework

Removes aztoolsframework_win_files.cmake (aztoolsframework_windows_files.cmake is the actual used one)

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-12-01 12:15:20 -08:00
parent 643bc70c1e
commit e2091f2451
3 changed files with 0 additions and 102 deletions
@@ -1,67 +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
*
*/
#include "UIFrameworkAPI.h"
#include <AzCore/Math/Uuid.h>
#include <AzCore/std/delegate/delegate.h>
#ifdef Q_OS_WIN
# include <QtGui/qpa/qplatformnativeinterface.h>
#endif
#include <AzToolsFramework/UI/UICore/OverwritePromptDialog.hxx>
#include <QWindow>
#include <QtGui/QGuiApplication>
namespace AzToolsFramework
{
namespace
{
// an aggregator utility which essentially provides the operation of returning the last result of an ebus event
// which returned something which returns a non-false value (like for example if its a pointer, then the last non-null value)
template<class T>
struct EBusLastNonNullResult
{
T value;
EBusLastNonNullResult() { value = NULL; }
AZ_FORCE_INLINE void operator=(const T& rhs)
{
if (rhs)
{
value = rhs;
}
}
AZ_FORCE_INLINE T& operator->() { return value; }
};
template<class T>
struct EBusAnyTrueResult
{
T value;
AZ_FORCE_INLINE void operator=(const T& rhs) { value = rhs || value; }
AZ_FORCE_INLINE T& operator->() { return value; }
};
}
bool GetOverwritePromptResult(QWidget* pParentWidget, const char* assetNameToOvewrite)
{
OverwritePromptDialog dlg(pParentWidget);
if (assetNameToOvewrite)
{
dlg.UpdateLabel(QString::fromUtf8(assetNameToOvewrite));
}
if (!dlg.exec() == QDialog::Accepted)
{
return false;
}
return dlg.m_result;
}
}
@@ -1,34 +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
#
#
set(FILES
UI/LegacyFramework/MainWindowSavedState.h
UI/LegacyFramework/MainWindowSavedState.cpp
UI/LegacyFramework/UIFramework.hxx
UI/LegacyFramework/UIFramework.cpp
UI/LegacyFramework/UIFrameworkAPI.h
UI/LegacyFramework/UIFrameworkAPI.cpp
UI/LegacyFramework/UIFrameworkPreferences.cpp
UI/LegacyFramework/Resources/sharedResources.qrc
UI/LegacyFramework/Core/EditorContextBus.h
UI/LegacyFramework/Core/EditorFrameworkAPI.h
UI/LegacyFramework/Core/EditorFrameworkAPI.cpp
UI/LegacyFramework/Core/EditorFrameworkApplication.h
UI/LegacyFramework/Core/EditorFrameworkApplication.cpp
UI/LegacyFramework/Core/IPCComponent.h
UI/LegacyFramework/Core/IPCComponent.cpp
UI/LegacyFramework/CustomMenus/CustomMenusAPI.h
UI/LegacyFramework/CustomMenus/CustomMenusComponent.cpp
UI/UICore/OverwritePromptDialog.hxx
UI/UICore/OverwritePromptDialog.cpp
UI/UICore/OverwritePromptDialog.ui
UI/UICore/SaveChangesDialog.hxx
UI/UICore/SaveChangesDialog.cpp
UI/UICore/SaveChangesDialog.ui
ToolsFileUtils/ToolsFileUtils_win.cpp
)
@@ -12,7 +12,6 @@ set(FILES
UI/LegacyFramework/UIFramework.hxx
UI/LegacyFramework/UIFramework.cpp
UI/LegacyFramework/UIFrameworkAPI.h
UI/LegacyFramework/UIFrameworkAPI.cpp
UI/LegacyFramework/UIFrameworkPreferences.cpp
UI/LegacyFramework/Resources/sharedResources.qrc
UI/LegacyFramework/Core/EditorContextBus.h