Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor tools #123

Closed
MariusDoe opened this issue Jun 5, 2022 · 0 comments
Closed

Refactor tools #123

MariusDoe opened this issue Jun 5, 2022 · 0 comments
Labels
13 Story Points 13 time units

Comments

@MariusDoe
Copy link
Contributor

MariusDoe commented Jun 5, 2022

As a developer, I want to refactor the tool system. The code is all over the place and adding new tools is tedious and error-prone. Refactoring should improve code quality, thus making the addition of new tools easier.

Implementation idea
  • a base class M2Tool with methods activate, userAction{ClickAt:,MoveDrawing:,StopDrawing}, deactivate
    • subclass M2BrushTool (pencil, eraser, circle, triangle) with a Pen
    • subclass M2MorphTool with an M2TemporaryGeometricMorph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
13 Story Points 13 time units
Projects
None yet
Development

No branches or pull requests

3 participants