Code/Editor

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-09-10 20:15:16 -07:00
parent 8554cea0ad
commit 7f157f152d
39 changed files with 524 additions and 524 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ protected:
HIT_SPLINE,
};
void paintEvent(QPaintEvent* e);
void paintEvent(QPaintEvent* e) override;
void resizeEvent(QResizeEvent* event) override;
void mousePressEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event) override;
+1 -1
View File
@@ -83,7 +83,7 @@ protected Q_SLOTS:
void OnIndexDoubleClicked(const QModelIndex& index);
protected:
virtual void OnFileMonitorChange(const SFileChangeInfo& rChange);
void OnFileMonitorChange(const SFileChangeInfo& rChange) override;
void contextMenuEvent(QContextMenuEvent* e) override;
void InitTree();
@@ -123,7 +123,7 @@ public:
void SetVariable(IVariable* pVariable) override;
void SyncReflectedVarToIVar(IVariable* pVariable) override;
void SyncIVarToReflectedVar(IVariable* pVariable) override;
virtual void OnVariableChange(IVariable* var);
void OnVariableChange(IVariable* var) override;
CReflectedVar* GetReflectedVar() override { return m_reflectedVar.data(); }
protected:
+11 -11
View File
@@ -159,15 +159,15 @@ public:
//////////////////////////////////////////////////////////////////////////
// IKeyTimeSet Implementation
virtual int GetKeyTimeCount() const;
virtual float GetKeyTime(int index) const;
virtual void MoveKeyTimes(int numChanges, int* indices, float scale, float offset, bool copyKeys);
virtual bool GetKeyTimeSelected(int index) const;
virtual void SetKeyTimeSelected(int index, bool selected);
virtual int GetKeyCount(int index) const;
virtual int GetKeyCountBound() const;
virtual void BeginEdittingKeyTimes();
virtual void EndEdittingKeyTimes();
int GetKeyTimeCount() const override;
float GetKeyTime(int index) const override;
void MoveKeyTimes(int numChanges, int* indices, float scale, float offset, bool copyKeys) override;
bool GetKeyTimeSelected(int index) const override;
void SetKeyTimeSelected(int index, bool selected) override;
int GetKeyCount(int index) const override;
int GetKeyCountBound() const override;
void BeginEdittingKeyTimes() override;
void EndEdittingKeyTimes() override;
void SetEditLock(bool bLock) { m_bEditLock = bLock; }
@@ -361,8 +361,8 @@ public:
SplineWidget(QWidget* parent);
virtual ~SplineWidget();
void update() { QWidget::update(); }
void update(const QRect& rect) { QWidget::update(rect); }
void update() override { QWidget::update(); }
void update(const QRect& rect) override { QWidget::update(rect); }
QPoint mapFromGlobal(const QPoint& point) const override { return QWidget::mapFromGlobal(point); }
+2 -2
View File
@@ -56,7 +56,7 @@ public:
void setGeometry(const QRect& r) override { QWidget::setGeometry(r); }
void SetTimeRange(const Range& r) { m_timeRange = r; }
void SetTimeMarker(float fTime);
void SetTimeMarker(float fTime) override;
float GetTimeMarker() const { return m_fTimeMarker; }
void SetZoom(float fZoom);
@@ -113,7 +113,7 @@ protected:
void OnLButtonUp(const QPoint& point, Qt::KeyboardModifiers modifiers);
void OnRButtonDown(const QPoint& point, Qt::KeyboardModifiers modifiers);
void OnRButtonUp(const QPoint& point, Qt::KeyboardModifiers modifiers);
void keyPressEvent(QKeyEvent* event);
void keyPressEvent(QKeyEvent* event) override;
// Drawing functions
float ClientToTime(int x);