Created manager for selection, integrated into Mixer. Work in progress.

This commit is contained in:
brunoherbelin
2020-06-14 01:33:31 +02:00
parent aa211fe39b
commit fb1c9e5f96
11 changed files with 202 additions and 72 deletions

7
View.h
View File

@@ -58,9 +58,7 @@ public:
return Cursor();
}
// select sources provided a start and end selection points in screen coordinates
virtual void select(glm::vec2, glm::vec2);
virtual void selectall();
virtual void deselect();
virtual void select(glm::vec2, glm::vec2) {}
virtual void restoreSettings();
virtual void saveSettings();
@@ -73,7 +71,6 @@ public:
protected:
Mode mode_;
class Selection *selection_;
};
@@ -120,7 +117,9 @@ public:
std::pair<Node *, glm::vec2> pick(glm::vec3 point) override;
Cursor grab (glm::vec2 from, glm::vec2 to, Source *s, std::pair<Node *, glm::vec2> pick) override;
Cursor over (glm::vec2, Source*, std::pair<Node *, glm::vec2>) override;
void select(glm::vec2, glm::vec2) override;
class Box *selection_box_;
};
class LayerView : public View