Gems/GraphCanvas
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// StyleNotificationBus
|
||||
void OnStyleChanged();
|
||||
void OnStyleChanged() override;
|
||||
////
|
||||
|
||||
// GeometryNotificationBus
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// LayerControllerNotificationBus
|
||||
void OnOffsetsChanged(int selectionOffset, int groupOffset);
|
||||
void OnOffsetsChanged(int selectionOffset, int groupOffset) override;
|
||||
////
|
||||
|
||||
private:
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace GraphCanvas
|
||||
|
||||
void SetIsPositionAnimating(bool animating) override;
|
||||
|
||||
void SetAnimationTarget(const AZ::Vector2& targetPoint);
|
||||
void SetAnimationTarget(const AZ::Vector2& targetPoint) override;
|
||||
////
|
||||
|
||||
// VisualNotificationBus
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// AZ::SystemTickBus::Handler
|
||||
void OnSystemTick();
|
||||
void OnSystemTick() override;
|
||||
////
|
||||
|
||||
private:
|
||||
|
||||
+1
-1
@@ -95,7 +95,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// DataSlotNotifications
|
||||
void OnDragDropStateStateChanged(const DragDropState& dragState);
|
||||
void OnDragDropStateStateChanged(const DragDropState& dragState) override;
|
||||
////
|
||||
|
||||
private:
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// NodeNotifications
|
||||
void OnNodeActivated();
|
||||
void OnNodeActivated() override;
|
||||
////
|
||||
|
||||
private:
|
||||
|
||||
@@ -50,9 +50,9 @@ namespace GraphCanvas
|
||||
required.push_back(AZ_CRC("GraphCanvas_StyledGraphicItemService", 0xeae4cdf4));
|
||||
}
|
||||
|
||||
void Init();
|
||||
void Activate();
|
||||
void Deactivate();
|
||||
void Init() override;
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
////
|
||||
|
||||
// EntityBus
|
||||
@@ -64,7 +64,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// NodeNotification
|
||||
void OnNodeActivated();
|
||||
void OnNodeActivated() override;
|
||||
////
|
||||
|
||||
protected:
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// NodeNotification
|
||||
void OnAddedToScene(const AZ::EntityId&);
|
||||
void OnAddedToScene(const AZ::EntityId&) override;
|
||||
////
|
||||
|
||||
// CommentRequestBus
|
||||
|
||||
@@ -163,7 +163,7 @@ namespace GraphCanvas
|
||||
void SubmitValue();
|
||||
void UpdateSizePolicies();
|
||||
|
||||
bool sceneEventFilter(QGraphicsItem*, QEvent* event);
|
||||
bool sceneEventFilter(QGraphicsItem*, QEvent* event) override;
|
||||
|
||||
const AZ::EntityId& GetEntityId() const { return m_entityId; }
|
||||
void SetupProxyWidget();
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// NodeNotifications
|
||||
void OnNodeActivated();
|
||||
void OnNodeActivated() override;
|
||||
|
||||
void OnNodeWrapped(const AZ::EntityId& wrappingNode) override;
|
||||
void OnNodeUnwrapped(const AZ::EntityId& wrappingNode) override;
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// SceneMemberNotificationBus
|
||||
void OnSceneSet(const AZ::EntityId& sceneId);
|
||||
void OnSceneSet(const AZ::EntityId& sceneId) override;
|
||||
////
|
||||
|
||||
// SlotLayoutRequestBus
|
||||
@@ -168,7 +168,7 @@ namespace GraphCanvas
|
||||
|
||||
bool IsSlotGroupVisible(SlotGroup group) const override;
|
||||
void SetSlotGroupVisible(SlotGroup group, bool visible) override;
|
||||
void ClearSlotGroup(SlotGroup group);
|
||||
void ClearSlotGroup(SlotGroup group) override;
|
||||
////
|
||||
|
||||
// StyleNotificationBus
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// GeometryNotifications
|
||||
void OnBoundsChanged();
|
||||
void OnBoundsChanged() override;
|
||||
void OnPositionChanged(const AZ::EntityId& targetEntity, const AZ::Vector2& position) override;
|
||||
////
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace GraphCanvas
|
||||
|
||||
AZ::EntityId GetSourceGroup() const override;
|
||||
|
||||
AZStd::vector< Endpoint > GetRedirectedEndpoints() const;
|
||||
AZStd::vector< Endpoint > GetRedirectedEndpoints() const override;
|
||||
void ForceEndpointRedirection(const AZStd::vector< Endpoint >& endpoints) override;
|
||||
////
|
||||
|
||||
|
||||
@@ -239,7 +239,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// SystemTickBus
|
||||
void OnSystemTick();
|
||||
void OnSystemTick() override;
|
||||
////
|
||||
|
||||
// VisualNotificationBus
|
||||
@@ -446,13 +446,13 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// CommentNotificationBus
|
||||
void OnEditBegin();
|
||||
void OnEditEnd();
|
||||
void OnEditBegin() override;
|
||||
void OnEditEnd() override;
|
||||
|
||||
void OnCommentSizeChanged(const QSizeF& oldSize, const QSizeF& newSize) override;
|
||||
|
||||
void OnCommentFontReloadBegin();
|
||||
void OnCommentFontReloadEnd();
|
||||
void OnCommentFontReloadBegin() override;
|
||||
void OnCommentFontReloadEnd() override;
|
||||
////
|
||||
|
||||
// QGraphicsItem
|
||||
|
||||
@@ -61,13 +61,13 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// AZ::Component
|
||||
void Init();
|
||||
void Activate();
|
||||
void Deactivate();
|
||||
void Init() override;
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
////
|
||||
|
||||
// NodeNotification
|
||||
void OnNodeActivated();
|
||||
void OnNodeActivated() override;
|
||||
////
|
||||
|
||||
void UpdateLayoutParameters();
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace GraphCanvas
|
||||
void SetTranslationKeyedTooltip(const TranslationKeyedString& tooltip) override;
|
||||
const AZStd::string GetTooltip() const override { return m_configuration.GetTooltip(); }
|
||||
|
||||
void SetShowInOutliner(bool showInOutliner) { m_configuration.SetShowInOutliner(showInOutliner); }
|
||||
void SetShowInOutliner(bool showInOutliner) override { m_configuration.SetShowInOutliner(showInOutliner); }
|
||||
bool ShowInOutliner() const override { return m_configuration.GetShowInOutliner(); }
|
||||
|
||||
void AddSlot(const AZ::EntityId& slotId) override;
|
||||
|
||||
@@ -155,9 +155,9 @@ namespace GraphCanvas
|
||||
required.push_back(AZ_CRC("GraphCanvas_StyledGraphicItemService", 0xeae4cdf4));
|
||||
}
|
||||
|
||||
void Init();
|
||||
void Activate();
|
||||
void Deactivate();
|
||||
void Init() override;
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
////
|
||||
|
||||
// WrapperNodeRequestBus
|
||||
|
||||
@@ -29,9 +29,9 @@ namespace GraphCanvas
|
||||
~DataSlotComponent();
|
||||
|
||||
// Component
|
||||
void Init();
|
||||
void Activate();
|
||||
void Deactivate();
|
||||
void Init() override;
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
////
|
||||
|
||||
// SlotRequestBus
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// StyleNotificationBus
|
||||
void OnStyleChanged();
|
||||
void OnStyleChanged() override;
|
||||
////
|
||||
|
||||
private:
|
||||
|
||||
+4
-4
@@ -51,7 +51,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// StyleNotificationBus
|
||||
void OnStyleChanged();
|
||||
void OnStyleChanged() override;
|
||||
////
|
||||
|
||||
private:
|
||||
@@ -88,9 +88,9 @@ namespace GraphCanvas
|
||||
ExecutionSlotLayoutComponent();
|
||||
~ExecutionSlotLayoutComponent() override = default;
|
||||
|
||||
void Init();
|
||||
void Activate();
|
||||
void Deactivate();
|
||||
void Init() override;
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
|
||||
private:
|
||||
ExecutionSlotLayout* m_layout;
|
||||
|
||||
@@ -40,9 +40,9 @@ namespace GraphCanvas
|
||||
~ExtenderSlotComponent();
|
||||
|
||||
// Component
|
||||
void Init();
|
||||
void Activate();
|
||||
void Deactivate();
|
||||
void Init() override;
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
////
|
||||
|
||||
// SceneMemberNotifications
|
||||
|
||||
+4
-4
@@ -53,7 +53,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// StyleNotificationBus
|
||||
void OnStyleChanged();
|
||||
void OnStyleChanged() override;
|
||||
////
|
||||
|
||||
private:
|
||||
@@ -82,9 +82,9 @@ namespace GraphCanvas
|
||||
ExtenderSlotLayoutComponent();
|
||||
~ExtenderSlotLayoutComponent() override = default;
|
||||
|
||||
void Init();
|
||||
void Activate();
|
||||
void Deactivate();
|
||||
void Init() override;
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -27,9 +27,9 @@ namespace GraphCanvas
|
||||
~PropertySlotComponent();
|
||||
|
||||
// Component
|
||||
void Init();
|
||||
void Activate();
|
||||
void Deactivate();
|
||||
void Init() override;
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
////
|
||||
|
||||
// Slot RequestBus
|
||||
@@ -38,7 +38,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// PropertySlotBus
|
||||
const AZ::Crc32& GetPropertyId() const;
|
||||
const AZ::Crc32& GetPropertyId() const override;
|
||||
////
|
||||
|
||||
private:
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ namespace GraphCanvas
|
||||
// SlotNotificationBus
|
||||
void OnRegisteredToNode(const AZ::EntityId& nodeId) override;
|
||||
|
||||
void OnTooltipChanged(const TranslationKeyedString& tooltip);
|
||||
void OnTooltipChanged(const TranslationKeyedString& tooltip) override;
|
||||
////
|
||||
|
||||
// StyleNotificationBus
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace GraphCanvas
|
||||
const AZ::EntityId& GetNode() const override;
|
||||
void SetNode(const AZ::EntityId&) override;
|
||||
|
||||
Endpoint GetEndpoint() const;
|
||||
Endpoint GetEndpoint() const override;
|
||||
|
||||
const AZStd::string GetName() const override { return m_slotConfiguration.m_name.GetDisplayString(); }
|
||||
void SetName(const AZStd::string& name) override;
|
||||
|
||||
@@ -52,16 +52,16 @@ namespace GraphCanvas
|
||||
required.push_back(AZ_CRC("GraphCanvas_SlotService", 0x701eaf6b));
|
||||
}
|
||||
|
||||
void Init();
|
||||
void Activate();
|
||||
void Deactivate();
|
||||
void Init() override;
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
////
|
||||
|
||||
// VisualRequestBus
|
||||
QGraphicsItem* AsGraphicsItem() override;
|
||||
QGraphicsLayoutItem* AsGraphicsLayoutItem() override;
|
||||
|
||||
bool Contains(const AZ::Vector2& position) const;
|
||||
bool Contains(const AZ::Vector2& position) const override;
|
||||
void SetVisible(bool visible) override;
|
||||
bool IsVisible() const override;
|
||||
////
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace GraphCanvas
|
||||
|
||||
protected:
|
||||
// QGraphicsItem
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent* event)
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent* event) override
|
||||
{
|
||||
bool result = false;
|
||||
VisualNotificationBus::EventResult(result, GetEntityId(), &VisualNotifications::OnMousePress, GetEntityId(), event);
|
||||
@@ -48,7 +48,7 @@ namespace GraphCanvas
|
||||
}
|
||||
}
|
||||
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override
|
||||
{
|
||||
bool result = false;
|
||||
VisualNotificationBus::EventResult(result, GetEntityId(), &VisualNotifications::OnMouseRelease, GetEntityId(), event);
|
||||
|
||||
Reference in New Issue
Block a user