Enhanced edit mechanism, with "element picking" possibility

This commit is contained in:
Hombre
2016-03-03 00:25:10 +01:00
parent 98dd99103d
commit 06c26ff1b3
11 changed files with 706 additions and 288 deletions

View File

@@ -392,7 +392,7 @@ void CurveEditor::switchOffEditMode ()
EditSubscriber::switchOffEditMode(); // disconnect
}
bool CurveEditor::mouseOver(int modifierKey)
bool CurveEditor::mouseOver(const int modifierKey)
{
EditDataProvider* provider = getEditProvider();
subGroup->pipetteMouseOver(provider, modifierKey);
@@ -400,7 +400,7 @@ bool CurveEditor::mouseOver(int modifierKey)
return true; // return true will ask the preview to be redrawn, for the cursor
}
bool CurveEditor::button1Pressed(int modifierKey)
bool CurveEditor::button1Pressed(const int modifierKey)
{
EditDataProvider* provider = getEditProvider();
@@ -422,7 +422,7 @@ bool CurveEditor::button1Released()
return true;
}
bool CurveEditor::drag1(int modifierKey)
bool CurveEditor::drag1(const int modifierKey)
{
EditDataProvider* provider = getEditProvider();
subGroup->pipetteDrag(provider, modifierKey);
@@ -430,7 +430,7 @@ bool CurveEditor::drag1(int modifierKey)
return false;
}
CursorShape CurveEditor::getCursor(int objectID)
CursorShape CurveEditor::getCursor(const int objectID)
{
if (remoteDrag) {
return CSResizeHeight;