Gems/GraphCanvas
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
+2
-1
@@ -22,10 +22,11 @@ namespace GraphCanvas
|
||||
{
|
||||
}
|
||||
|
||||
using ContextMenuAction::RefreshAction;
|
||||
void RefreshAction() override
|
||||
{
|
||||
const AZ::EntityId& graphId = GetGraphId();
|
||||
const AZ::EntityId& targetId = GetTargetId();
|
||||
const AZ::EntityId& targetId = GetTargetId();
|
||||
|
||||
bool canAlignSelection = false;
|
||||
SceneRequestBus::EventResult(canAlignSelection, graphId, &SceneRequests::HasMultipleSelection);
|
||||
|
||||
+2
-1
@@ -30,7 +30,8 @@ namespace GraphCanvas
|
||||
|
||||
bool IsInSubMenu() const override;
|
||||
AZStd::string GetSubMenuPath() const override;
|
||||
|
||||
|
||||
using AlignmentContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
|
||||
private:
|
||||
|
||||
+1
@@ -22,6 +22,7 @@ namespace GraphCanvas
|
||||
{
|
||||
}
|
||||
|
||||
using ContextMenuAction::RefreshAction;
|
||||
void RefreshAction(const GraphId& graphId, const AZ::EntityId& targetId) override
|
||||
{
|
||||
AZ_UNUSED(targetId);
|
||||
|
||||
+2
@@ -25,6 +25,8 @@ namespace GraphCanvas
|
||||
using ContextMenuAction::RefreshAction;
|
||||
|
||||
void RefreshAction() override;
|
||||
|
||||
using CommentContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
}
|
||||
|
||||
+1
@@ -20,6 +20,7 @@ namespace GraphCanvas
|
||||
AddBookmarkMenuAction(QObject* parent);
|
||||
virtual ~AddBookmarkMenuAction() = default;
|
||||
|
||||
using ConstructContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
}
|
||||
|
||||
+1
@@ -20,6 +20,7 @@ namespace GraphCanvas
|
||||
AddCommentMenuAction(QObject* parent);
|
||||
virtual ~AddCommentMenuAction() = default;
|
||||
|
||||
using ConstructContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
}
|
||||
|
||||
+3
@@ -28,6 +28,7 @@ namespace GraphCanvas
|
||||
bool IsInSubMenu() const override;
|
||||
AZStd::string GetSubMenuPath() const override;
|
||||
|
||||
using ConstructContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
|
||||
private:
|
||||
@@ -52,6 +53,7 @@ namespace GraphCanvas
|
||||
bool IsInSubMenu() const override;
|
||||
AZStd::string GetSubMenuPath() const override;
|
||||
|
||||
using ConstructContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
|
||||
private:
|
||||
@@ -69,6 +71,7 @@ namespace GraphCanvas
|
||||
CreatePresetFromSelection(QObject* parent = nullptr);
|
||||
virtual ~CreatePresetFromSelection();
|
||||
|
||||
using ContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
|
||||
static ActionGroupId GetCreateConstructContextMenuActionGroupId()
|
||||
|
||||
+1
@@ -22,6 +22,7 @@ namespace GraphCanvas
|
||||
|
||||
void SetEnableState(bool enableState);
|
||||
|
||||
using DisableContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
|
||||
private:
|
||||
|
||||
+1
@@ -22,6 +22,7 @@ namespace GraphCanvas
|
||||
{
|
||||
}
|
||||
|
||||
using ContextMenuAction::RefreshAction;
|
||||
void RefreshAction(const GraphId& graphId, const AZ::EntityId& targetId) override
|
||||
{
|
||||
AZ_UNUSED(targetId);
|
||||
|
||||
+6
@@ -22,6 +22,7 @@ namespace GraphCanvas
|
||||
CutGraphSelectionMenuAction(QObject* parent);
|
||||
virtual ~CutGraphSelectionMenuAction() = default;
|
||||
|
||||
using EditContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -34,6 +35,7 @@ namespace GraphCanvas
|
||||
CopyGraphSelectionMenuAction(QObject* parent);
|
||||
virtual ~CopyGraphSelectionMenuAction() = default;
|
||||
|
||||
using EditContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -49,6 +51,8 @@ namespace GraphCanvas
|
||||
virtual ~PasteGraphSelectionMenuAction() = default;
|
||||
|
||||
void RefreshAction() override;
|
||||
|
||||
using EditContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -61,6 +65,7 @@ namespace GraphCanvas
|
||||
DeleteGraphSelectionMenuAction(QObject* parent);
|
||||
virtual ~DeleteGraphSelectionMenuAction() = default;
|
||||
|
||||
using EditContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -73,6 +78,7 @@ namespace GraphCanvas
|
||||
DuplicateGraphSelectionMenuAction(QObject* parent);
|
||||
virtual ~DuplicateGraphSelectionMenuAction() = default;
|
||||
|
||||
using EditContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
}
|
||||
|
||||
+1
@@ -22,6 +22,7 @@ namespace GraphCanvas
|
||||
{
|
||||
}
|
||||
|
||||
using ContextMenuAction::RefreshAction;
|
||||
void RefreshAction(const GraphId& graphId, const AZ::EntityId& targetId) override
|
||||
{
|
||||
AZ_UNUSED(targetId);
|
||||
|
||||
+10
@@ -25,6 +25,8 @@ namespace GraphCanvas
|
||||
using ContextMenuAction::RefreshAction;
|
||||
|
||||
void RefreshAction() override;
|
||||
|
||||
using NodeGroupContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
|
||||
private:
|
||||
@@ -43,6 +45,8 @@ namespace GraphCanvas
|
||||
using ContextMenuAction::RefreshAction;
|
||||
|
||||
void RefreshAction() override;
|
||||
|
||||
using NodeGroupContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -58,6 +62,8 @@ namespace GraphCanvas
|
||||
using ContextMenuAction::RefreshAction;
|
||||
|
||||
void RefreshAction() override;
|
||||
|
||||
using NodeGroupContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -73,6 +79,8 @@ namespace GraphCanvas
|
||||
using ContextMenuAction::RefreshAction;
|
||||
|
||||
void RefreshAction() override;
|
||||
|
||||
using NodeGroupContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -88,6 +96,8 @@ namespace GraphCanvas
|
||||
using ContextMenuAction::RefreshAction;
|
||||
|
||||
void RefreshAction() override;
|
||||
|
||||
using NodeGroupContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
}
|
||||
|
||||
+4
-2
@@ -21,12 +21,14 @@ namespace GraphCanvas
|
||||
|
||||
ManageUnusedSlotsMenuAction(QObject* parent, bool hideSlots);
|
||||
virtual ~ManageUnusedSlotsMenuAction() = default;
|
||||
|
||||
|
||||
using NodeContextMenuAction::RefreshAction;
|
||||
void RefreshAction(const GraphId& grpahId, const AZ::EntityId& targetId) override;
|
||||
|
||||
using NodeContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const GraphId& graphId, const AZ::Vector2&) override;
|
||||
|
||||
private:
|
||||
|
||||
bool m_hideSlots = true;
|
||||
AZ::EntityId m_targetId;
|
||||
};
|
||||
|
||||
+2
@@ -25,6 +25,7 @@ namespace GraphCanvas
|
||||
bool IsInSubMenu() const override;
|
||||
AZStd::string GetSubMenuPath() const override;
|
||||
|
||||
using SceneContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -40,6 +41,7 @@ namespace GraphCanvas
|
||||
bool IsInSubMenu() const override;
|
||||
AZStd::string GetSubMenuPath() const override;
|
||||
|
||||
using SceneContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
}
|
||||
|
||||
+18
@@ -22,7 +22,10 @@ namespace GraphCanvas
|
||||
AddSlotMenuAction(QObject* parent);
|
||||
virtual ~AddSlotMenuAction() = default;
|
||||
|
||||
using SlotContextMenuAction::RefreshAction;
|
||||
void RefreshAction() override;
|
||||
|
||||
using SlotContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -35,7 +38,10 @@ namespace GraphCanvas
|
||||
RemoveSlotMenuAction(QObject* parent);
|
||||
virtual ~RemoveSlotMenuAction() = default;
|
||||
|
||||
using SlotContextMenuAction::RefreshAction;
|
||||
void RefreshAction() override;
|
||||
|
||||
using SlotContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -49,7 +55,10 @@ namespace GraphCanvas
|
||||
ClearConnectionsMenuAction(QObject* parent);
|
||||
virtual ~ClearConnectionsMenuAction() = default;
|
||||
|
||||
using SlotContextMenuAction::RefreshAction;
|
||||
void RefreshAction() override;
|
||||
|
||||
using SlotContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -66,7 +75,10 @@ namespace GraphCanvas
|
||||
ResetToDefaultValueMenuAction(QObject* parent);
|
||||
virtual ~ResetToDefaultValueMenuAction() = default;
|
||||
|
||||
using SlotContextMenuAction::RefreshAction;
|
||||
void RefreshAction() override;
|
||||
|
||||
using SlotContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -79,7 +91,10 @@ namespace GraphCanvas
|
||||
ToggleReferenceStateAction(QObject* parent);
|
||||
virtual ~ToggleReferenceStateAction() = default;
|
||||
|
||||
using SlotContextMenuAction::RefreshAction;
|
||||
void RefreshAction() override;
|
||||
|
||||
using SlotContextMenuAction::TriggerAction;
|
||||
SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
@@ -92,7 +107,10 @@ namespace GraphCanvas
|
||||
PromoteToVariableAction(QObject* parent);
|
||||
virtual ~PromoteToVariableAction() = default;
|
||||
|
||||
using SlotContextMenuAction::RefreshAction;
|
||||
void RefreshAction() override;
|
||||
|
||||
using SlotContextMenuAction::TriggerAction;
|
||||
GraphCanvas::ContextMenuAction::SceneReaction TriggerAction(const AZ::Vector2& scenePos) override;
|
||||
};
|
||||
|
||||
|
||||
+2
@@ -55,6 +55,8 @@ namespace GraphCanvas
|
||||
|
||||
struct AssetEditorWindowConfig
|
||||
{
|
||||
virtual ~AssetEditorWindowConfig() = default;
|
||||
|
||||
/// General AssetEditor config parameters
|
||||
EditorId m_editorId;
|
||||
AZStd::string_view m_baseStyleSheet;
|
||||
|
||||
Reference in New Issue
Block a user