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

Zoom und Scrollbars #85

Merged
merged 38 commits into from
Jun 28, 2021
Merged

Zoom und Scrollbars #85

merged 38 commits into from
Jun 28, 2021

Conversation

DevSchmidtchen
Copy link
Contributor

@DevSchmidtchen DevSchmidtchen commented Jun 17, 2021

Closes #85
Closes #1

@DevSchmidtchen
Copy link
Contributor Author

DevSchmidtchen commented Jun 17, 2021

TODO:

  • Scrollbars
  • Tests (vorherige Tests, Zoom, Scrollbars)
  • Mausrad
  • GripMorph
  • Tools (Geometric Forms, Pencil, Eraser) auch auf ViewPort korrekt angezeigt
  • Text funktioniert nicht
  • M2DSuperclass umbenennen
  • Coding Standards
  • Klassenkommentare
  • Initialisierung Canvas

Currently known issues:

  • Undo doesn't work with current implementation of geometric forms

Copy link
Contributor

@ClFeSc ClFeSc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some old issues remain and some new have come into life.

Comment on lines +2 to +3
brushSize: anObject
self context brushSize: anObject
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
brushSize: anObject
self context brushSize: anObject
brushSize: aNumber
self context brushSize: aNumber

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided not to write the variable type in methods in the delegation category since these methods are only supposed to pass the method call to the context without having knowledge of the type of data they are receiving.

Comment on lines +2 to +3
self context currentGeometricForm: anObject
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
currentGeometricForm: anObject
self context currentGeometricForm: anObject
currentGeometricForm: aSymbol
self context currentGeometricForm: aSymbol

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided not to write the variable type in methods in the delegation category since these methods are only supposed to pass the method call to the context without having knowledge of the type of data they are receiving.

Comment on lines +2 to +3
self context isErasing: anObject
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
isErasing: anObject
self context isErasing: anObject
isErasing: aBoolean
self context isErasing: aBoolean

Comment on lines +2 to +3
self context isFillingGeometricForm: anObject
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
isFillingGeometricForm: anObject
self context isFillingGeometricForm: anObject
isFillingGeometricForm: aBoolean
self context isFillingGeometricForm: aBoolean

Comment on lines +2 to +3
self context mode: anObject
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
mode: anObject
self context mode: anObject
mode: aSymbol
self context mode: aSymbol

@ClFeSc ClFeSc marked this pull request as ready for review June 27, 2021 09:44
ClFeSc and others added 2 commits June 27, 2021 12:08
Co-authored-by: Maximilian Franz <maximilian.franz@student.hpi.de>
@@ -1,5 +1,5 @@
undo
userActionClickAt: aPoint
(self isInTextMode or: [self isInEditingTextMode])
ifFalse: [self createUserActionWithStart: aPoint].
self context isInAnyDrawingMode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary since the viewport always checks this condition before calling the method.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in 9bc3233.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also apply to similar methods like M2Backend>>userActionStopDrawing.

@DevSchmidtchen DevSchmidtchen merged commit dc3a0f6 into dev Jun 28, 2021
@ClFeSc ClFeSc deleted the feature/37-zoom branch July 1, 2021 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Temporary Canvas shows preview outside the real canvas
6 participants