From aaccb65b29f59cd8875f98d406a9ea865564bf72 Mon Sep 17 00:00:00 2001 From: Ivenjs <89043222+Ivenjs@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:19:49 +0200 Subject: [PATCH 1/5] Update styleguide.md --- styleguide.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/styleguide.md b/styleguide.md index b7d02de..fbab6da 100644 --- a/styleguide.md +++ b/styleguide.md @@ -6,17 +6,17 @@ Hier finden Sie sämtliche Dokumentation für den Codestyle des SWT-Projekts Squ ```smalltalk MethodName -| y | - -(true or: [false not] or: [nil isNil]) - ifFalse: [self halt]. -y := self size + super size. -{$a . #a . 'a’ . 1 . 1,0} - do: [:each | Transcript - show: each class name; - show: each printString; - show: ' ']. -^ x < y + | y | + + (true or: [false not] or: [nil isNil]) + ifFalse: [self halt]. + y := self size + super size. + {$a . #a . 'a’ . 1 . 1,0} + do: [:each | Transcript + show: each class name; + show: each printString; + show: ' ']. + ^ x < y ``` ## Naming From 0631673ea77aa7fef8a5146c2e14357c12ab1b8c Mon Sep 17 00:00:00 2001 From: Ivenjs <89043222+Ivenjs@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:20:39 +0200 Subject: [PATCH 2/5] Update styleguide.md --- styleguide.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/styleguide.md b/styleguide.md index fbab6da..fabb531 100644 --- a/styleguide.md +++ b/styleguide.md @@ -8,8 +8,7 @@ Hier finden Sie sämtliche Dokumentation für den Codestyle des SWT-Projekts Squ MethodName | y | - (true or: [false not] or: [nil isNil]) - ifFalse: [self halt]. + (true or: [false not] or: [nil isNil]) ifFalse: [self halt]. y := self size + super size. {$a . #a . 'a’ . 1 . 1,0} do: [:each | Transcript From 3b5e148ea11451afffcd2db750b089d177d2f9db Mon Sep 17 00:00:00 2001 From: Ivenjs <89043222+Ivenjs@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:26:39 +0200 Subject: [PATCH 3/5] Update styleguide.md --- styleguide.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/styleguide.md b/styleguide.md index fabb531..f2c5edb 100644 --- a/styleguide.md +++ b/styleguide.md @@ -90,7 +90,19 @@ MethodName 8. Indent, align nested continuation lines **consistently** 9. **Embrace Oneliners** and avoid to break them across lines -10. Use +10. if-statements: Use indentation only if statement becomes to long or when you have branching paths + ```smalltalk + aFirstBool ifTrue: [doSomething]. + anObject isNil + ifFalse: [doSomething] + ifTrue: [doSometingElse]. + VS. + aFirstBool + ifTrue: [doSomething]. + anObject isNil ifFalse: [doSomething] + ifTrue: [doSometingElse]. + ``` +11. Use INDENTATION für Abgrenzung im logischen Fluss 12. **AVOID** line wraps @@ -106,7 +118,7 @@ MethodName VS. self label: self model label. self minimumSize: 35 @ 7. - self when: #reactive perform: #reactiveWindow:. + self when: #reactive perform: #reactiveWindow: ``` 17. NEW LINES for ever From 6d897488bbc4f23d5cc3bc09f90546c714263f12 Mon Sep 17 00:00:00 2001 From: Ivenjs <89043222+Ivenjs@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:27:37 +0200 Subject: [PATCH 4/5] Update styleguide.md --- styleguide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styleguide.md b/styleguide.md index f2c5edb..50e5a4e 100644 --- a/styleguide.md +++ b/styleguide.md @@ -121,7 +121,7 @@ MethodName self when: #reactive perform: #reactiveWindow: ``` 17. NEW LINES - for ever + for every new statement 20. **60 Character** Code Line Width (Window Width) From ba2979629dc383249cf14a795080e073642aba1a Mon Sep 17 00:00:00 2001 From: Ivenjs <89043222+Ivenjs@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:53:07 +0200 Subject: [PATCH 5/5] Update README.md --- README.md | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 94ee88f..407c2a7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,27 @@ # SqueakWhiteboard -Squeak Whiteboard +An interactive whiteboard that can be used to plan, coordinate and brainstorm. -# Vortrag -Einleitung: Alicia -1. Praktik: Iven -2. Praktik: Simon +# How To Use +In order to start your experience, open a workspace and run "WBCanvas new". +A "SqueakWhiteboard" window appears with a toolbar on the lefthandside from which you can invoke different functionalities. + +# What To Do +The toolbar provides buttons to spawn different forms and kinds of elements which can be placed onto the canvas by clicking at the place you want the element to be. +For most elements, you can type some text onto the element directly after. If you just want it blanc, just click anywhere else to defocus the current Element. +If you want to create a line or an arrow, just click on the corresponding button and click once in the canvas for its starting position and a second time to determine the end +of the line or arrow. + +Not satisfied how some of the elements look? Click on said element and resize it by clicking and dragging to its side or the handles in the corners. The popup menu +that appears after clicking on an element can be used to change the color of an element, to change the border color, to duplicate an element or to delete the current element. +If you have spawned a line or an arrow you can convert them to the other one by clicking the right most button in the popup menu. +If you want to add some text to an element (except for lines and arrows) just quickly double-click on an element and start typing! +Of yourse you can also drage and drop them anywhere on the canvas. + +To change the color of all newly spaning element, click on the color wheel in the toolbar and select a color to your liking. + +Sometimes the provided canvas seems to little for all your ideas. Just right click in the canvas and start dragging in order to expand the canvas. + +After some experimenting you might find a devasting error in your planning but don't worry, it happens to all of us! Just click on the trashcan in the toolbar and confirm to erase +everything you have placed so far. + +# Architecture