Spot removal : differentiating source/dest, betted cursor handling

+ some code cleanup from floessie (see issue #2239)
This commit is contained in:
Hombre
2019-09-01 02:08:48 +02:00
parent 4b7e8b7705
commit 82e7caa635
14 changed files with 222 additions and 132 deletions

View File

@@ -57,6 +57,13 @@ class Spot : public ToolParamBlock, public FoldableToolPanel, public rtengine::T
{
private:
enum class DraggedSide {
NONE,
SOURCE,
TARGET
};
DraggedSide draggedSide; // tells which of source or target is being dragged
int lastObject; // current object that is hovered
int activeSpot; // currently active spot, being edited
std::vector<rtengine::procparams::SpotEntry> spots; // list of edited spots
@@ -103,7 +110,7 @@ public:
void setBatchMode (bool batchMode) override;
// EditSubscriber interface
CursorShape getCursor (int objectID) const override;
CursorShape getCursor (int objectID, int xPos, int yPos) const override;
bool mouseOver (int modifierKey) override;
bool button1Pressed (int modifierKey) override;
bool button1Released () override;