Fix perspective and local adjustments cursor icons

Correctly override the getCursor virtual function.
This commit is contained in:
Lawrence Lee
2021-05-14 22:20:25 -07:00
parent c41eb24760
commit 1b7ddf2b31
4 changed files with 4 additions and 4 deletions

View File

@@ -268,7 +268,7 @@ bool ControlLineManager::getEdited(void) const
return edited; return edited;
} }
CursorShape ControlLineManager::getCursor(int objectID) const CursorShape ControlLineManager::getCursor(int objectID, int xPos, int yPos) const
{ {
return cursor; return cursor;
} }

View File

@@ -109,7 +109,7 @@ public:
bool pick1(bool picked) override; bool pick1(bool picked) override;
bool pick3(bool picked) override; bool pick3(bool picked) override;
bool drag1(int modifierKey) override; bool drag1(int modifierKey) override;
CursorShape getCursor(int objectID) const; CursorShape getCursor(int objectID, int xPos, int yPos) const override;
bool mouseOver(int modifierKey) override; bool mouseOver(int modifierKey) override;
void switchOffEditMode(void) override; void switchOffEditMode(void) override;
}; };

View File

@@ -2196,7 +2196,7 @@ void ControlSpotPanel::updateCurveOpacity(const Gtk::TreeModel::Row& selectedRow
} }
} }
CursorShape ControlSpotPanel::getCursor(int objectID) const CursorShape ControlSpotPanel::getCursor(int objectID, int xPos, int yPos) const
{ {
// printf("Object ID: %d\n", objectID); // printf("Object ID: %d\n", objectID);

View File

@@ -267,7 +267,7 @@ private:
void updateControlSpotCurve(const Gtk::TreeModel::Row& row); void updateControlSpotCurve(const Gtk::TreeModel::Row& row);
void deleteControlSpotCurve(Gtk::TreeModel::Row& row); void deleteControlSpotCurve(Gtk::TreeModel::Row& row);
void updateCurveOpacity(const Gtk::TreeModel::Row& selectedRow); void updateCurveOpacity(const Gtk::TreeModel::Row& selectedRow);
CursorShape getCursor(int objectID) const; CursorShape getCursor(int objectID, int xPos, int yPos) const override;
bool mouseOver(int modifierKey) override; bool mouseOver(int modifierKey) override;
bool button1Pressed(int modifierKey) override; bool button1Pressed(int modifierKey) override;
bool button1Released() override; bool button1Released() override;