Removes GraphWidgetCallback from Gems/EMotionFX

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-12-22 16:46:33 -08:00
parent 87f32e0659
commit 6cefe610b8
2 changed files with 0 additions and 41 deletions
@@ -1,37 +0,0 @@
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
// include required headers
#include <MCore/Source/StandardHeaders.h>
#include "../StandardPluginsConfig.h"
#include <QPainter>
namespace EMStudio
{
// forward declarations
class NodeGraphWidget;
// the graph widget callback base class
class GraphWidgetCallback
{
MCORE_MEMORYOBJECTCATEGORY(GraphWidgetCallback, EMFX_DEFAULT_ALIGNMENT, MEMCATEGORY_STANDARDPLUGINS_ANIMGRAPH);
public:
// constructor and destructor
GraphWidgetCallback(NodeGraphWidget* graphWidget) { m_graphWidget = graphWidget; }
virtual ~GraphWidgetCallback() {}
virtual void DrawOverlay(QPainter& painter) = 0;
protected:
NodeGraphWidget* m_graphWidget;
};
} // namespace EMStudio
@@ -27,7 +27,6 @@ namespace EMStudio
// forward declarations
class NodeGraph;
class GraphNode;
class GraphWidgetCallback;
class NodePort;
class NodeConnection;
class AnimGraphPlugin;
@@ -53,8 +52,6 @@ namespace EMStudio
void SetActiveGraph(NodeGraph* graph);
NodeGraph* GetActiveGraph() const;
void SetCallback(GraphWidgetCallback* callback);
MCORE_INLINE GraphWidgetCallback* GetCallback() { return m_callback; }
MCORE_INLINE const QPoint& GetMousePos() const { return m_mousePos; }
MCORE_INLINE void SetMousePos(const QPoint& pos) { m_mousePos = pos; }
MCORE_INLINE void SetShowFPS(bool showFPS) { m_showFps = showFPS; }
@@ -138,7 +135,6 @@ namespace EMStudio
int m_curHeight;
GraphNode* m_moveNode; // the node we're moving
NodeGraph* m_activeGraph = nullptr;
GraphWidgetCallback* m_callback;
QFont m_font;
QFontMetrics* m_fontMetrics;
AZ::Debug::Timer m_renderTimer;