Gems/GraphCanvas
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -163,14 +163,14 @@ namespace GraphCanvas
|
|||||||
}
|
}
|
||||||
|
|
||||||
// StateController<RootGraphicsItemDisplayState>
|
// StateController<RootGraphicsItemDisplayState>
|
||||||
void OnStateChanged([[maybe_unused]] const RootGraphicsItemDisplayState& displayState)
|
void OnStateChanged([[maybe_unused]] const RootGraphicsItemDisplayState& displayState) override
|
||||||
{
|
{
|
||||||
UpdateActualDisplayState();
|
UpdateActualDisplayState();
|
||||||
}
|
}
|
||||||
////
|
////
|
||||||
|
|
||||||
// TickBus
|
// TickBus
|
||||||
void OnTick(float delta, AZ::ScriptTimePoint)
|
void OnTick(float delta, AZ::ScriptTimePoint) override
|
||||||
{
|
{
|
||||||
m_currentAnimationTime += delta;
|
m_currentAnimationTime += delta;
|
||||||
|
|
||||||
@@ -191,7 +191,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// RootGraphicsItemRequestBus
|
// RootGraphicsItemRequestBus
|
||||||
void AnimatePositionTo(const QPointF& scenePoint, const AZStd::chrono::milliseconds& duration)
|
void AnimatePositionTo(const QPointF& scenePoint, const AZStd::chrono::milliseconds& duration) override
|
||||||
{
|
{
|
||||||
if (!IsAnimating())
|
if (!IsAnimating())
|
||||||
{
|
{
|
||||||
@@ -231,7 +231,7 @@ namespace GraphCanvas
|
|||||||
GeometryRequestBus::Event(GetEntityId(), &GeometryRequests::SetAnimationTarget, m_targetPoint);
|
GeometryRequestBus::Event(GetEntityId(), &GeometryRequests::SetAnimationTarget, m_targetPoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CancelAnimation()
|
void CancelAnimation() override
|
||||||
{
|
{
|
||||||
m_currentAnimationTime = m_animationDuration;
|
m_currentAnimationTime = m_animationDuration;
|
||||||
CleanUpAnimation();
|
CleanUpAnimation();
|
||||||
@@ -315,7 +315,7 @@ namespace GraphCanvas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RootGraphicsItemEnabledState GetEnabledState() const
|
RootGraphicsItemEnabledState GetEnabledState() const override
|
||||||
{
|
{
|
||||||
return m_enabledState;
|
return m_enabledState;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -57,7 +57,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// StyleNotificationBus
|
// StyleNotificationBus
|
||||||
void OnStyleChanged();
|
void OnStyleChanged() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// GeometryNotificationBus
|
// GeometryNotificationBus
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// LayerControllerNotificationBus
|
// LayerControllerNotificationBus
|
||||||
void OnOffsetsChanged(int selectionOffset, int groupOffset);
|
void OnOffsetsChanged(int selectionOffset, int groupOffset) override;
|
||||||
////
|
////
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ namespace GraphCanvas
|
|||||||
|
|
||||||
void SetIsPositionAnimating(bool animating) override;
|
void SetIsPositionAnimating(bool animating) override;
|
||||||
|
|
||||||
void SetAnimationTarget(const AZ::Vector2& targetPoint);
|
void SetAnimationTarget(const AZ::Vector2& targetPoint) override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// VisualNotificationBus
|
// VisualNotificationBus
|
||||||
|
|||||||
+1
-1
@@ -81,7 +81,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// AZ::SystemTickBus::Handler
|
// AZ::SystemTickBus::Handler
|
||||||
void OnSystemTick();
|
void OnSystemTick() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
+1
-1
@@ -95,7 +95,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// DataSlotNotifications
|
// DataSlotNotifications
|
||||||
void OnDragDropStateStateChanged(const DragDropState& dragState);
|
void OnDragDropStateStateChanged(const DragDropState& dragState) override;
|
||||||
////
|
////
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// NodeNotifications
|
// NodeNotifications
|
||||||
void OnNodeActivated();
|
void OnNodeActivated() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -50,9 +50,9 @@ namespace GraphCanvas
|
|||||||
required.push_back(AZ_CRC("GraphCanvas_StyledGraphicItemService", 0xeae4cdf4));
|
required.push_back(AZ_CRC("GraphCanvas_StyledGraphicItemService", 0xeae4cdf4));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Init();
|
void Init() override;
|
||||||
void Activate();
|
void Activate() override;
|
||||||
void Deactivate();
|
void Deactivate() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// EntityBus
|
// EntityBus
|
||||||
@@ -64,7 +64,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// NodeNotification
|
// NodeNotification
|
||||||
void OnNodeActivated();
|
void OnNodeActivated() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// NodeNotification
|
// NodeNotification
|
||||||
void OnAddedToScene(const AZ::EntityId&);
|
void OnAddedToScene(const AZ::EntityId&) override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// CommentRequestBus
|
// CommentRequestBus
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ namespace GraphCanvas
|
|||||||
void SubmitValue();
|
void SubmitValue();
|
||||||
void UpdateSizePolicies();
|
void UpdateSizePolicies();
|
||||||
|
|
||||||
bool sceneEventFilter(QGraphicsItem*, QEvent* event);
|
bool sceneEventFilter(QGraphicsItem*, QEvent* event) override;
|
||||||
|
|
||||||
const AZ::EntityId& GetEntityId() const { return m_entityId; }
|
const AZ::EntityId& GetEntityId() const { return m_entityId; }
|
||||||
void SetupProxyWidget();
|
void SetupProxyWidget();
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// NodeNotifications
|
// NodeNotifications
|
||||||
void OnNodeActivated();
|
void OnNodeActivated() override;
|
||||||
|
|
||||||
void OnNodeWrapped(const AZ::EntityId& wrappingNode) override;
|
void OnNodeWrapped(const AZ::EntityId& wrappingNode) override;
|
||||||
void OnNodeUnwrapped(const AZ::EntityId& wrappingNode) override;
|
void OnNodeUnwrapped(const AZ::EntityId& wrappingNode) override;
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// SceneMemberNotificationBus
|
// SceneMemberNotificationBus
|
||||||
void OnSceneSet(const AZ::EntityId& sceneId);
|
void OnSceneSet(const AZ::EntityId& sceneId) override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// SlotLayoutRequestBus
|
// SlotLayoutRequestBus
|
||||||
@@ -168,7 +168,7 @@ namespace GraphCanvas
|
|||||||
|
|
||||||
bool IsSlotGroupVisible(SlotGroup group) const override;
|
bool IsSlotGroupVisible(SlotGroup group) const override;
|
||||||
void SetSlotGroupVisible(SlotGroup group, bool visible) override;
|
void SetSlotGroupVisible(SlotGroup group, bool visible) override;
|
||||||
void ClearSlotGroup(SlotGroup group);
|
void ClearSlotGroup(SlotGroup group) override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// StyleNotificationBus
|
// StyleNotificationBus
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// GeometryNotifications
|
// GeometryNotifications
|
||||||
void OnBoundsChanged();
|
void OnBoundsChanged() override;
|
||||||
void OnPositionChanged(const AZ::EntityId& targetEntity, const AZ::Vector2& position) override;
|
void OnPositionChanged(const AZ::EntityId& targetEntity, const AZ::Vector2& position) override;
|
||||||
////
|
////
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ namespace GraphCanvas
|
|||||||
|
|
||||||
AZ::EntityId GetSourceGroup() const override;
|
AZ::EntityId GetSourceGroup() const override;
|
||||||
|
|
||||||
AZStd::vector< Endpoint > GetRedirectedEndpoints() const;
|
AZStd::vector< Endpoint > GetRedirectedEndpoints() const override;
|
||||||
void ForceEndpointRedirection(const AZStd::vector< Endpoint >& endpoints) override;
|
void ForceEndpointRedirection(const AZStd::vector< Endpoint >& endpoints) override;
|
||||||
////
|
////
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// SystemTickBus
|
// SystemTickBus
|
||||||
void OnSystemTick();
|
void OnSystemTick() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// VisualNotificationBus
|
// VisualNotificationBus
|
||||||
@@ -446,13 +446,13 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// CommentNotificationBus
|
// CommentNotificationBus
|
||||||
void OnEditBegin();
|
void OnEditBegin() override;
|
||||||
void OnEditEnd();
|
void OnEditEnd() override;
|
||||||
|
|
||||||
void OnCommentSizeChanged(const QSizeF& oldSize, const QSizeF& newSize) override;
|
void OnCommentSizeChanged(const QSizeF& oldSize, const QSizeF& newSize) override;
|
||||||
|
|
||||||
void OnCommentFontReloadBegin();
|
void OnCommentFontReloadBegin() override;
|
||||||
void OnCommentFontReloadEnd();
|
void OnCommentFontReloadEnd() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// QGraphicsItem
|
// QGraphicsItem
|
||||||
|
|||||||
@@ -61,13 +61,13 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// AZ::Component
|
// AZ::Component
|
||||||
void Init();
|
void Init() override;
|
||||||
void Activate();
|
void Activate() override;
|
||||||
void Deactivate();
|
void Deactivate() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// NodeNotification
|
// NodeNotification
|
||||||
void OnNodeActivated();
|
void OnNodeActivated() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
void UpdateLayoutParameters();
|
void UpdateLayoutParameters();
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ namespace GraphCanvas
|
|||||||
void SetTranslationKeyedTooltip(const TranslationKeyedString& tooltip) override;
|
void SetTranslationKeyedTooltip(const TranslationKeyedString& tooltip) override;
|
||||||
const AZStd::string GetTooltip() const override { return m_configuration.GetTooltip(); }
|
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(); }
|
bool ShowInOutliner() const override { return m_configuration.GetShowInOutliner(); }
|
||||||
|
|
||||||
void AddSlot(const AZ::EntityId& slotId) override;
|
void AddSlot(const AZ::EntityId& slotId) override;
|
||||||
|
|||||||
@@ -155,9 +155,9 @@ namespace GraphCanvas
|
|||||||
required.push_back(AZ_CRC("GraphCanvas_StyledGraphicItemService", 0xeae4cdf4));
|
required.push_back(AZ_CRC("GraphCanvas_StyledGraphicItemService", 0xeae4cdf4));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Init();
|
void Init() override;
|
||||||
void Activate();
|
void Activate() override;
|
||||||
void Deactivate();
|
void Deactivate() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// WrapperNodeRequestBus
|
// WrapperNodeRequestBus
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ namespace GraphCanvas
|
|||||||
~DataSlotComponent();
|
~DataSlotComponent();
|
||||||
|
|
||||||
// Component
|
// Component
|
||||||
void Init();
|
void Init() override;
|
||||||
void Activate();
|
void Activate() override;
|
||||||
void Deactivate();
|
void Deactivate() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// SlotRequestBus
|
// SlotRequestBus
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// StyleNotificationBus
|
// StyleNotificationBus
|
||||||
void OnStyleChanged();
|
void OnStyleChanged() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
+4
-4
@@ -51,7 +51,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// StyleNotificationBus
|
// StyleNotificationBus
|
||||||
void OnStyleChanged();
|
void OnStyleChanged() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -88,9 +88,9 @@ namespace GraphCanvas
|
|||||||
ExecutionSlotLayoutComponent();
|
ExecutionSlotLayoutComponent();
|
||||||
~ExecutionSlotLayoutComponent() override = default;
|
~ExecutionSlotLayoutComponent() override = default;
|
||||||
|
|
||||||
void Init();
|
void Init() override;
|
||||||
void Activate();
|
void Activate() override;
|
||||||
void Deactivate();
|
void Deactivate() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ExecutionSlotLayout* m_layout;
|
ExecutionSlotLayout* m_layout;
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ namespace GraphCanvas
|
|||||||
~ExtenderSlotComponent();
|
~ExtenderSlotComponent();
|
||||||
|
|
||||||
// Component
|
// Component
|
||||||
void Init();
|
void Init() override;
|
||||||
void Activate();
|
void Activate() override;
|
||||||
void Deactivate();
|
void Deactivate() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// SceneMemberNotifications
|
// SceneMemberNotifications
|
||||||
|
|||||||
+4
-4
@@ -53,7 +53,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// StyleNotificationBus
|
// StyleNotificationBus
|
||||||
void OnStyleChanged();
|
void OnStyleChanged() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -82,9 +82,9 @@ namespace GraphCanvas
|
|||||||
ExtenderSlotLayoutComponent();
|
ExtenderSlotLayoutComponent();
|
||||||
~ExtenderSlotLayoutComponent() override = default;
|
~ExtenderSlotLayoutComponent() override = default;
|
||||||
|
|
||||||
void Init();
|
void Init() override;
|
||||||
void Activate();
|
void Activate() override;
|
||||||
void Deactivate();
|
void Deactivate() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ namespace GraphCanvas
|
|||||||
~PropertySlotComponent();
|
~PropertySlotComponent();
|
||||||
|
|
||||||
// Component
|
// Component
|
||||||
void Init();
|
void Init() override;
|
||||||
void Activate();
|
void Activate() override;
|
||||||
void Deactivate();
|
void Deactivate() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// Slot RequestBus
|
// Slot RequestBus
|
||||||
@@ -38,7 +38,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// PropertySlotBus
|
// PropertySlotBus
|
||||||
const AZ::Crc32& GetPropertyId() const;
|
const AZ::Crc32& GetPropertyId() const override;
|
||||||
////
|
////
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
+1
-1
@@ -49,7 +49,7 @@ namespace GraphCanvas
|
|||||||
// SlotNotificationBus
|
// SlotNotificationBus
|
||||||
void OnRegisteredToNode(const AZ::EntityId& nodeId) override;
|
void OnRegisteredToNode(const AZ::EntityId& nodeId) override;
|
||||||
|
|
||||||
void OnTooltipChanged(const TranslationKeyedString& tooltip);
|
void OnTooltipChanged(const TranslationKeyedString& tooltip) override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// StyleNotificationBus
|
// StyleNotificationBus
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ namespace GraphCanvas
|
|||||||
const AZ::EntityId& GetNode() const override;
|
const AZ::EntityId& GetNode() const override;
|
||||||
void SetNode(const AZ::EntityId&) 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(); }
|
const AZStd::string GetName() const override { return m_slotConfiguration.m_name.GetDisplayString(); }
|
||||||
void SetName(const AZStd::string& name) override;
|
void SetName(const AZStd::string& name) override;
|
||||||
|
|||||||
@@ -52,16 +52,16 @@ namespace GraphCanvas
|
|||||||
required.push_back(AZ_CRC("GraphCanvas_SlotService", 0x701eaf6b));
|
required.push_back(AZ_CRC("GraphCanvas_SlotService", 0x701eaf6b));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Init();
|
void Init() override;
|
||||||
void Activate();
|
void Activate() override;
|
||||||
void Deactivate();
|
void Deactivate() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// VisualRequestBus
|
// VisualRequestBus
|
||||||
QGraphicsItem* AsGraphicsItem() override;
|
QGraphicsItem* AsGraphicsItem() override;
|
||||||
QGraphicsLayoutItem* AsGraphicsLayoutItem() override;
|
QGraphicsLayoutItem* AsGraphicsLayoutItem() override;
|
||||||
|
|
||||||
bool Contains(const AZ::Vector2& position) const;
|
bool Contains(const AZ::Vector2& position) const override;
|
||||||
void SetVisible(bool visible) override;
|
void SetVisible(bool visible) override;
|
||||||
bool IsVisible() const override;
|
bool IsVisible() const override;
|
||||||
////
|
////
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace GraphCanvas
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// QGraphicsItem
|
// QGraphicsItem
|
||||||
void mousePressEvent(QGraphicsSceneMouseEvent* event)
|
void mousePressEvent(QGraphicsSceneMouseEvent* event) override
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
VisualNotificationBus::EventResult(result, GetEntityId(), &VisualNotifications::OnMousePress, GetEntityId(), event);
|
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;
|
bool result = false;
|
||||||
VisualNotificationBus::EventResult(result, GetEntityId(), &VisualNotifications::OnMouseRelease, GetEntityId(), event);
|
VisualNotificationBus::EventResult(result, GetEntityId(), &VisualNotifications::OnMouseRelease, GetEntityId(), event);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// RootGraphicsItemNotificationBus
|
// RootGraphicsItemNotificationBus
|
||||||
void OnDisplayStateChanged(RootGraphicsItemDisplayState oldState, RootGraphicsItemDisplayState newState);
|
void OnDisplayStateChanged(RootGraphicsItemDisplayState oldState, RootGraphicsItemDisplayState newState) override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// NodePropertiesRequestBus
|
// NodePropertiesRequestBus
|
||||||
@@ -56,7 +56,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// NodePropertyRequestBus
|
// NodePropertyRequestBus
|
||||||
void SetDisabled(bool disabled);
|
void SetDisabled(bool disabled) override;
|
||||||
|
|
||||||
void SetNodePropertyDisplay(NodePropertyDisplay* nodePropertyDisplay) override;
|
void SetNodePropertyDisplay(NodePropertyDisplay* nodePropertyDisplay) override;
|
||||||
NodePropertyDisplay* GetNodePropertyDisplay() const override;
|
NodePropertyDisplay* GetNodePropertyDisplay() const override;
|
||||||
|
|||||||
@@ -57,12 +57,12 @@ namespace GraphCanvas
|
|||||||
GraphCanvasPropertyBus::MultiHandler::BusDisconnect();
|
GraphCanvasPropertyBus::MultiHandler::BusDisconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddBusId(const AZ::EntityId& busId) override final
|
void AddBusId(const AZ::EntityId& busId) final
|
||||||
{
|
{
|
||||||
GraphCanvasPropertyBus::MultiHandler::BusConnect(busId);
|
GraphCanvasPropertyBus::MultiHandler::BusConnect(busId);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RemoveBusId(const AZ::EntityId& busId) override final
|
void RemoveBusId(const AZ::EntityId& busId) final
|
||||||
{
|
{
|
||||||
GraphCanvasPropertyBus::MultiHandler::BusDisconnect(busId);
|
GraphCanvasPropertyBus::MultiHandler::BusDisconnect(busId);
|
||||||
}
|
}
|
||||||
@@ -86,12 +86,12 @@ namespace GraphCanvas
|
|||||||
|
|
||||||
void Init() override {};
|
void Init() override {};
|
||||||
|
|
||||||
void Activate()
|
void Activate() override
|
||||||
{
|
{
|
||||||
GraphCanvasPropertyBusHandler::OnActivate(GetEntityId());
|
GraphCanvasPropertyBusHandler::OnActivate(GetEntityId());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Deactivate()
|
void Deactivate() override
|
||||||
{
|
{
|
||||||
GraphCanvasPropertyBusHandler::OnDeactivate();
|
GraphCanvasPropertyBusHandler::OnDeactivate();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// SystemTick
|
// SystemTick
|
||||||
void OnSystemTick();
|
void OnSystemTick() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// TickBus
|
// TickBus
|
||||||
@@ -86,7 +86,7 @@ namespace GraphCanvas
|
|||||||
|
|
||||||
// GeometryNotificationBus::Handler
|
// GeometryNotificationBus::Handler
|
||||||
void OnPositionChanged(const AZ::EntityId& /*targetEntity*/, const AZ::Vector2& /*position*/) override;
|
void OnPositionChanged(const AZ::EntityId& /*targetEntity*/, const AZ::Vector2& /*position*/) override;
|
||||||
void OnBoundsChanged();
|
void OnBoundsChanged() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// ViewNotificationBus
|
// ViewNotificationBus
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace GraphCanvas
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Matches([[maybe_unused]] const AZ::EntityId& object) const
|
bool Matches([[maybe_unused]] const AZ::EntityId& object) const override
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ namespace
|
|||||||
: public AZ::SerializeContext::IDataSerializer
|
: public AZ::SerializeContext::IDataSerializer
|
||||||
{
|
{
|
||||||
/// Store the class data into a binary buffer
|
/// Store the class data into a binary buffer
|
||||||
virtual size_t Save(const void* classPtr, AZ::IO::GenericStream& stream, bool isDataBigEndian /*= false*/)
|
size_t Save(const void* classPtr, AZ::IO::GenericStream& stream, bool isDataBigEndian /*= false*/) override
|
||||||
{
|
{
|
||||||
auto variant = reinterpret_cast<const QVariant*>(classPtr);
|
auto variant = reinterpret_cast<const QVariant*>(classPtr);
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ namespace
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Convert binary data to text
|
/// Convert binary data to text
|
||||||
virtual size_t DataToText(AZ::IO::GenericStream& in, AZ::IO::GenericStream& out, bool isDataBigEndian /*= false*/)
|
size_t DataToText(AZ::IO::GenericStream& in, AZ::IO::GenericStream& out, bool isDataBigEndian /*= false*/) override
|
||||||
{
|
{
|
||||||
(void)isDataBigEndian;
|
(void)isDataBigEndian;
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ namespace
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Convert text data to binary, to support loading old version formats. We must respect text version if the text->binary format has changed!
|
/// Convert text data to binary, to support loading old version formats. We must respect text version if the text->binary format has changed!
|
||||||
virtual size_t TextToData(const char* text, unsigned int textVersion, AZ::IO::GenericStream& stream, bool isDataBigEndian = false)
|
size_t TextToData(const char* text, unsigned int textVersion, AZ::IO::GenericStream& stream, bool isDataBigEndian = false) override
|
||||||
{
|
{
|
||||||
(void)textVersion;
|
(void)textVersion;
|
||||||
(void)isDataBigEndian;
|
(void)isDataBigEndian;
|
||||||
@@ -164,7 +164,7 @@ namespace
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Load the class data from a stream.
|
/// Load the class data from a stream.
|
||||||
virtual bool Load(void* classPtr, AZ::IO::GenericStream& in, unsigned int, bool isDataBigEndian = false)
|
bool Load(void* classPtr, AZ::IO::GenericStream& in, unsigned int, bool isDataBigEndian = false) override
|
||||||
{
|
{
|
||||||
QByteArray buffer = ReadAll(in);
|
QByteArray buffer = ReadAll(in);
|
||||||
QDataStream qtStream(&buffer, QIODevice::ReadOnly);
|
QDataStream qtStream(&buffer, QIODevice::ReadOnly);
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace GraphCanvas
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SceneMemberNotificationBus::Handler
|
// SceneMemberNotificationBus::Handler
|
||||||
void OnSceneSet(const AZ::EntityId& graphId)
|
void OnSceneSet(const AZ::EntityId& graphId) override
|
||||||
{
|
{
|
||||||
const AZ::EntityId* ownerId = SceneMemberNotificationBus::GetCurrentBusId();
|
const AZ::EntityId* ownerId = SceneMemberNotificationBus::GetCurrentBusId();
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -45,7 +45,7 @@ namespace GraphCanvas
|
|||||||
m_valueSet.clear();
|
m_valueSet.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HasState() const
|
bool HasState() const override
|
||||||
{
|
{
|
||||||
return !m_valueSet.empty();
|
return !m_valueSet.empty();
|
||||||
}
|
}
|
||||||
@@ -85,7 +85,7 @@ namespace GraphCanvas
|
|||||||
return releasedValue;
|
return releasedValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const T& GetCalculatedState() const
|
const T& GetCalculatedState() const override
|
||||||
{
|
{
|
||||||
auto valueIter = m_valueSet.begin();
|
auto valueIter = m_valueSet.begin();
|
||||||
return (*valueIter);
|
return (*valueIter);
|
||||||
|
|||||||
+2
-2
@@ -43,7 +43,7 @@ namespace GraphCanvas
|
|||||||
m_states.clear();
|
m_states.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HasState() const
|
bool HasState() const override
|
||||||
{
|
{
|
||||||
return !m_states.empty();
|
return !m_states.empty();
|
||||||
}
|
}
|
||||||
@@ -79,7 +79,7 @@ namespace GraphCanvas
|
|||||||
return releasedValue;
|
return releasedValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const T& GetCalculatedState() const
|
const T& GetCalculatedState() const override
|
||||||
{
|
{
|
||||||
return m_states.back().second;
|
return m_states.back().second;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ namespace GraphCanvas
|
|||||||
////
|
////
|
||||||
|
|
||||||
// GraphCanvas::SceneNotifications
|
// GraphCanvas::SceneNotifications
|
||||||
void OnSelectionChanged();
|
void OnSelectionChanged() override;
|
||||||
////
|
////
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ namespace GraphCanvas
|
|||||||
|
|
||||||
// QAbstractTableModel
|
// QAbstractTableModel
|
||||||
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||||
int columnCount(const QModelIndex& index = QModelIndex()) const;
|
int columnCount(const QModelIndex& index = QModelIndex()) const override;
|
||||||
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
|
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
|
||||||
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||||
@@ -125,7 +125,7 @@ namespace GraphCanvas
|
|||||||
BookmarkTableSortProxyModel(BookmarkTableSourceModel* sourceModel);
|
BookmarkTableSortProxyModel(BookmarkTableSourceModel* sourceModel);
|
||||||
~BookmarkTableSortProxyModel() override = default;
|
~BookmarkTableSortProxyModel() override = default;
|
||||||
|
|
||||||
bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const;
|
bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const override;
|
||||||
|
|
||||||
void SetFilter(const QString& filter);
|
void SetFilter(const QString& filter);
|
||||||
void ClearFilter();
|
void ClearFilter();
|
||||||
|
|||||||
@@ -415,7 +415,7 @@ namespace GraphCanvas
|
|||||||
return index(nextRow, GetSortColumn());
|
return index(nextRow, GetSortColumn());
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnDropDownAboutToShow()
|
void OnDropDownAboutToShow() override
|
||||||
{
|
{
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
setSourceModel(m_modelInterface->GetDropDownItemModel());
|
setSourceModel(m_modelInterface->GetDropDownItemModel());
|
||||||
@@ -424,7 +424,7 @@ namespace GraphCanvas
|
|||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnDropDownHidden()
|
void OnDropDownHidden() override
|
||||||
{
|
{
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
setSourceModel(nullptr);
|
setSourceModel(nullptr);
|
||||||
|
|||||||
+2
-2
@@ -129,7 +129,7 @@ namespace GraphCanvas
|
|||||||
ToastId ShowToastAtCursor(const ToastConfiguration& toastConfiguration) override;
|
ToastId ShowToastAtCursor(const ToastConfiguration& toastConfiguration) override;
|
||||||
ToastId ShowToastAtPoint(const QPoint& screenPosition, const QPointF& anchorPoint, const ToastConfiguration& toastConfiguration) override;
|
ToastId ShowToastAtPoint(const QPoint& screenPosition, const QPointF& anchorPoint, const ToastConfiguration& toastConfiguration) override;
|
||||||
|
|
||||||
bool IsShowing() const;
|
bool IsShowing() const override;
|
||||||
////
|
////
|
||||||
|
|
||||||
// TickBus
|
// TickBus
|
||||||
@@ -159,7 +159,7 @@ namespace GraphCanvas
|
|||||||
|
|
||||||
void wheelEvent(QWheelEvent* event) override;
|
void wheelEvent(QWheelEvent* event) override;
|
||||||
|
|
||||||
void focusOutEvent(QFocusEvent* event);
|
void focusOutEvent(QFocusEvent* event) override;
|
||||||
|
|
||||||
void resizeEvent(QResizeEvent* event) override;
|
void resizeEvent(QResizeEvent* event) override;
|
||||||
void moveEvent(QMoveEvent* event) override;
|
void moveEvent(QMoveEvent* event) override;
|
||||||
|
|||||||
+2
-2
@@ -27,8 +27,8 @@ namespace GraphCanvas
|
|||||||
|
|
||||||
void AddIconColorPalette(const AZStd::string& colorPalette);
|
void AddIconColorPalette(const AZStd::string& colorPalette);
|
||||||
|
|
||||||
void OnStylesUnloaded();
|
void OnStylesUnloaded() override;
|
||||||
void OnStylesLoaded();
|
void OnStylesLoaded() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -95,7 +95,7 @@ namespace GraphCanvas
|
|||||||
const EditorId& GetEditorId() const;
|
const EditorId& GetEditorId() const;
|
||||||
|
|
||||||
// Child Overrides
|
// Child Overrides
|
||||||
virtual bool LessThan(const GraphCanvasTreeItem* graphItem) const;
|
bool LessThan(const GraphCanvasTreeItem* graphItem) const override;
|
||||||
virtual QVariant OnData(const QModelIndex& index, int role) const;
|
virtual QVariant OnData(const QModelIndex& index, int role) const;
|
||||||
virtual Qt::ItemFlags OnFlags() const;
|
virtual Qt::ItemFlags OnFlags() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user