Move Qt Toast Notifications from GraphCanvas into Framework
Move the existing Qt Toast Notification QWidgets, EBuses and logic from the GraphCanvas gem into AzQtComponents and AzToolsFramework so they can be re-used. Signed-off-by: AMZN-alexpete <26804013+AMZN-alexpete@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <AzCore/std/containers/unordered_map.h>
|
||||
#include <AzCore/Serialization/SerializeContext.h>
|
||||
#include <AzToolsFramework/UI/Notifications/ToastBus.h>
|
||||
#include <ScriptCanvas/Core/Graph.h>
|
||||
#include <ScriptCanvas/Bus/GraphBus.h>
|
||||
#include <ScriptCanvas/Bus/NodeIdPair.h>
|
||||
@@ -27,7 +28,6 @@
|
||||
#include <GraphCanvas/Components/Nodes/Wrapper/WrapperNodeBus.h>
|
||||
#include <GraphCanvas/Components/SceneBus.h>
|
||||
#include <GraphCanvas/Components/Slots/Data/DataSlotBus.h>
|
||||
#include <GraphCanvas/Components/ToastBus.h>
|
||||
#include <GraphCanvas/Types/GraphCanvasGraphSerialization.h>
|
||||
#include <GraphCanvas/Editor/GraphModelBus.h>
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace ScriptCanvasEditor
|
||||
, private GraphCanvas::GraphModelRequestBus::Handler
|
||||
, private GraphCanvas::SceneNotificationBus::Handler
|
||||
, private GraphItemCommandNotificationBus::Handler
|
||||
, private GraphCanvas::ToastNotificationBus::MultiHandler
|
||||
, private AzToolsFramework::ToastNotificationBus::MultiHandler
|
||||
, private GeneralEditorNotificationBus::Handler
|
||||
, private AZ::SystemTickBus::Handler
|
||||
{
|
||||
@@ -327,7 +327,7 @@ namespace ScriptCanvasEditor
|
||||
protected:
|
||||
void PostRestore(const UndoData& restoredData) override;
|
||||
|
||||
void UnregisterToast(const GraphCanvas::ToastId& toastId);
|
||||
void UnregisterToast(const AzToolsFramework::ToastId& toastId);
|
||||
|
||||
Graph(const Graph&) = delete;
|
||||
|
||||
@@ -350,7 +350,7 @@ namespace ScriptCanvasEditor
|
||||
void HandleQueuedUpdates();
|
||||
bool IsNodeVersionConverting(const AZ::EntityId& graphCanvasNodeId) const;
|
||||
|
||||
AZStd::unordered_map< GraphCanvas::ToastId, AZ::EntityId > m_toastNodeIds;
|
||||
AZStd::unordered_map< AzToolsFramework::ToastId, AZ::EntityId > m_toastNodeIds;
|
||||
|
||||
// Function Definition Node Extension
|
||||
void HandleFunctionDefinitionExtension(ScriptCanvas::Node* node, GraphCanvas::SlotId graphCanvasSlotId, const GraphCanvas::NodeId& nodeId);
|
||||
|
||||
Reference in New Issue
Block a user