Gems/GraphCanvas
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -57,12 +57,12 @@ namespace GraphCanvas
|
||||
GraphCanvasPropertyBus::MultiHandler::BusDisconnect();
|
||||
}
|
||||
|
||||
void AddBusId(const AZ::EntityId& busId) override final
|
||||
void AddBusId(const AZ::EntityId& busId) final
|
||||
{
|
||||
GraphCanvasPropertyBus::MultiHandler::BusConnect(busId);
|
||||
}
|
||||
|
||||
void RemoveBusId(const AZ::EntityId& busId) override final
|
||||
void RemoveBusId(const AZ::EntityId& busId) final
|
||||
{
|
||||
GraphCanvasPropertyBus::MultiHandler::BusDisconnect(busId);
|
||||
}
|
||||
@@ -86,12 +86,12 @@ namespace GraphCanvas
|
||||
|
||||
void Init() override {};
|
||||
|
||||
void Activate()
|
||||
void Activate() override
|
||||
{
|
||||
GraphCanvasPropertyBusHandler::OnActivate(GetEntityId());
|
||||
}
|
||||
|
||||
void Deactivate()
|
||||
void Deactivate() override
|
||||
{
|
||||
GraphCanvasPropertyBusHandler::OnDeactivate();
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// SystemTick
|
||||
void OnSystemTick();
|
||||
void OnSystemTick() override;
|
||||
////
|
||||
|
||||
// TickBus
|
||||
@@ -86,7 +86,7 @@ namespace GraphCanvas
|
||||
|
||||
// GeometryNotificationBus::Handler
|
||||
void OnPositionChanged(const AZ::EntityId& /*targetEntity*/, const AZ::Vector2& /*position*/) override;
|
||||
void OnBoundsChanged();
|
||||
void OnBoundsChanged() override;
|
||||
////
|
||||
|
||||
// ViewNotificationBus
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace GraphCanvas
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool Matches([[maybe_unused]] const AZ::EntityId& object) const
|
||||
bool Matches([[maybe_unused]] const AZ::EntityId& object) const override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace
|
||||
: public AZ::SerializeContext::IDataSerializer
|
||||
{
|
||||
/// 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);
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace
|
||||
}
|
||||
|
||||
/// 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;
|
||||
|
||||
@@ -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!
|
||||
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)isDataBigEndian;
|
||||
@@ -164,7 +164,7 @@ namespace
|
||||
}
|
||||
|
||||
/// 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);
|
||||
QDataStream qtStream(&buffer, QIODevice::ReadOnly);
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace GraphCanvas
|
||||
}
|
||||
|
||||
// SceneMemberNotificationBus::Handler
|
||||
void OnSceneSet(const AZ::EntityId& graphId)
|
||||
void OnSceneSet(const AZ::EntityId& graphId) override
|
||||
{
|
||||
const AZ::EntityId* ownerId = SceneMemberNotificationBus::GetCurrentBusId();
|
||||
|
||||
|
||||
+2
-2
@@ -45,7 +45,7 @@ namespace GraphCanvas
|
||||
m_valueSet.clear();
|
||||
}
|
||||
|
||||
bool HasState() const
|
||||
bool HasState() const override
|
||||
{
|
||||
return !m_valueSet.empty();
|
||||
}
|
||||
@@ -85,7 +85,7 @@ namespace GraphCanvas
|
||||
return releasedValue;
|
||||
}
|
||||
|
||||
const T& GetCalculatedState() const
|
||||
const T& GetCalculatedState() const override
|
||||
{
|
||||
auto valueIter = m_valueSet.begin();
|
||||
return (*valueIter);
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ namespace GraphCanvas
|
||||
m_states.clear();
|
||||
}
|
||||
|
||||
bool HasState() const
|
||||
bool HasState() const override
|
||||
{
|
||||
return !m_states.empty();
|
||||
}
|
||||
@@ -79,7 +79,7 @@ namespace GraphCanvas
|
||||
return releasedValue;
|
||||
}
|
||||
|
||||
const T& GetCalculatedState() const
|
||||
const T& GetCalculatedState() const override
|
||||
{
|
||||
return m_states.back().second;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace GraphCanvas
|
||||
////
|
||||
|
||||
// GraphCanvas::SceneNotifications
|
||||
void OnSelectionChanged();
|
||||
void OnSelectionChanged() override;
|
||||
////
|
||||
|
||||
public Q_SLOTS:
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace GraphCanvas
|
||||
|
||||
// QAbstractTableModel
|
||||
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;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||
@@ -125,7 +125,7 @@ namespace GraphCanvas
|
||||
BookmarkTableSortProxyModel(BookmarkTableSourceModel* sourceModel);
|
||||
~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 ClearFilter();
|
||||
|
||||
@@ -415,7 +415,7 @@ namespace GraphCanvas
|
||||
return index(nextRow, GetSortColumn());
|
||||
}
|
||||
|
||||
void OnDropDownAboutToShow()
|
||||
void OnDropDownAboutToShow() override
|
||||
{
|
||||
beginResetModel();
|
||||
setSourceModel(m_modelInterface->GetDropDownItemModel());
|
||||
@@ -424,7 +424,7 @@ namespace GraphCanvas
|
||||
invalidate();
|
||||
}
|
||||
|
||||
void OnDropDownHidden()
|
||||
void OnDropDownHidden() override
|
||||
{
|
||||
beginResetModel();
|
||||
setSourceModel(nullptr);
|
||||
|
||||
+2
-2
@@ -129,7 +129,7 @@ namespace GraphCanvas
|
||||
ToastId ShowToastAtCursor(const ToastConfiguration& toastConfiguration) override;
|
||||
ToastId ShowToastAtPoint(const QPoint& screenPosition, const QPointF& anchorPoint, const ToastConfiguration& toastConfiguration) override;
|
||||
|
||||
bool IsShowing() const;
|
||||
bool IsShowing() const override;
|
||||
////
|
||||
|
||||
// TickBus
|
||||
@@ -159,7 +159,7 @@ namespace GraphCanvas
|
||||
|
||||
void wheelEvent(QWheelEvent* event) override;
|
||||
|
||||
void focusOutEvent(QFocusEvent* event);
|
||||
void focusOutEvent(QFocusEvent* event) override;
|
||||
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
void moveEvent(QMoveEvent* event) override;
|
||||
|
||||
+2
-2
@@ -27,8 +27,8 @@ namespace GraphCanvas
|
||||
|
||||
void AddIconColorPalette(const AZStd::string& colorPalette);
|
||||
|
||||
void OnStylesUnloaded();
|
||||
void OnStylesLoaded();
|
||||
void OnStylesUnloaded() override;
|
||||
void OnStylesLoaded() override;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
+1
-1
@@ -95,7 +95,7 @@ namespace GraphCanvas
|
||||
const EditorId& GetEditorId() const;
|
||||
|
||||
// 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 Qt::ItemFlags OnFlags() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user