Skip to content

Commit

Permalink
complements
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilaire Fernandes committed Aug 4, 2024
1 parent 300ab8e commit 175da05
Show file tree
Hide file tree
Showing 312 changed files with 342 additions and 336 deletions.
2 changes: 1 addition & 1 deletion docs/A-Clock-Morph.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/A-brief-introduction-to-Inspectors.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/A-brief-introduction-to-the-system-Browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Back-to-Spacewar_0021-Morphs.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Beginnings.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Block-syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Building-your-specialized-Morph.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Class-_002d-Model-of-Communicating-Entities.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Code-Management-_0028Solutions_0029.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Code-Management.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Collections-detailed.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Communicating-entities.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Control-Flow-Messaging-_0028Solutions_0029.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Control-Flow-Messaging.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Control-flow-with-block-and-message.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Cuis-system-classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
46 changes: 26 additions & 20 deletions docs/Daily-Workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down Expand Up @@ -194,15 +194,20 @@ <h4 class="subsection"><span>9.5.1 Automate your image<a class="copiable-link" h
<div class="center"><img class="image" src="ch10-ImageSetUp.png" alt="ch10-ImageSetUp">
</div><div class="caption"><p><strong class="strong">Figure 9.13: </strong>Environment of an image started with the set up script</p></div></div>
<a class="index-entry-id" id="index-morph-world"></a>
<p>Let&rsquo;s start by removing the open windows:
<p>Let&rsquo;s start by removing the open windows.
The code is placed in a block which is sent the message &lsquo;#fork&lsquo;
in order to wait for the environment to be properly initialized.
</p>
<div class="example smallexample">
<pre class="example-preformatted">| list |
&quot;Delete all windows but the taskbar&quot;
self runningWorld doOneCycleNow.
list := UISupervisor ui submorphs reject: [:aMorph |
aMorph is: #TaskbarMorph].
list do: [:each | each delete].
<pre class="example-preformatted">| world morph area extent |
world := UISupervisor ui.
[
| area extent morph | &quot;used later&quot;
UISupervisor whenUIinSafeState: [
children := world submorphs reject: [:aMorph | aMorph is: #TaskbarMorph].
children do: [:child | child delete].
]
] fork
</pre></div>

<p>The whole user interface world of Cuis-Smalltalk is a kind of Morph, a
Expand All @@ -213,12 +218,11 @@ <h4 class="subsection"><span>9.5.1 Automate your image<a class="copiable-link" h
but the taskbar &ndash; really <code class="code">#reject:</code> it &ndash; we <code class="code">#delete</code> them
from the world.
</p>
<p>Next, we change the preferences:
<p>Next, we change the preferences.
Place the following code after the line above that deletes the children.
</p>
<div class="example smallexample">
<pre class="example-preformatted">| list morph |
../..
&quot;Change to Dark theme&quot;
<pre class="example-preformatted">&quot;Change to Dark theme&quot;
Feature require: #'Theme-Themes'.
DarkTheme beCurrent.
&quot;Adjust font size&quot;
Expand All @@ -245,10 +249,10 @@ <h4 class="subsection"><span>9.5.1 Automate your image<a class="copiable-link" h
compute a quarter of this free area extent (half in width and half
in height make a quarter of the whole free area):
</p>
<p>Place the following code after the previous code.
</p>
<div class="example smallexample">
<pre class="example-preformatted">| list morph area extent |
../..
&quot;Compute the available free space for windows placement&quot;
<pre class="example-preformatted">&quot;Compute the available free space for windows placement&quot;
area := RealEstateAgent maximumUsableArea
extendBy: 0 @ morph morphHeight negated.
extent := area extent // 2.
Expand All @@ -259,14 +263,14 @@ <h4 class="subsection"><span>9.5.1 Automate your image<a class="copiable-link" h
</p>
<div class="example smallexample">
<pre class="example-preformatted">&quot;Open a few System Browsers&quot;
BrowserWindow openBrowser
Browser open
morphPosition: 0 @ 0;
morphExtent: extent.
BrowserWindow openBrowser
Browser open
morphPosition: area width // 2 @ 0;
morphExtent: extent.
&quot;Open a System Browser on a specific class&quot;
morph := BrowserWindow openBrowser
morph := Browser open
morphPosition: area extent // 2;
morphExtent: extent.
morph model setClass: Integer selector: nil.
Expand All @@ -278,9 +282,11 @@ <h4 class="subsection"><span>9.5.1 Automate your image<a class="copiable-link" h
when asking for a new Workspace, Cuis-Smalltalk does not answer the created
instance, we have to search it in the windows of the world.
</p>
<p>Place the following code after the previous code.
</p>
<div class="example smallexample">
<pre class="example-preformatted">&quot;Open a Workspace with some default contents&quot;
morph := Workspace openWorkspace.
morph := Workspace open.
morph model actualContents: '&quot;Some code&quot;
1 + 2.
&quot;Other code&quot;
Expand All @@ -289,7 +295,7 @@ <h4 class="subsection"><span>9.5.1 Automate your image<a class="copiable-link" h
morphPosition: 0 @ (area height // 2);
morphExtent: extent x @ (2 / 3 * extent y).
&quot;Open a transcript for logs&quot;
TranscriptWindow openTranscript
Transcript open
morphPosition: 0 @ (area height // 2 + (2 / 3 * extent y));
morphExtent: extent x @ (1 / 3 * extent y).
</pre></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/Debug-and-Exception-Handling.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Documents-Copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/E_002dexeRectMorph.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/E_002dimg1.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Ellipse-Morph.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Events-_0028Solutions_0029.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Events.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Explore-OOP-from-the-Browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/FloatPrecision.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/FractionPrecision.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Fun-with-collections.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Fun-with-variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Going-Vector.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Golden-Rules-of-the-Smalltalk-Guild.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
2 changes: 1 addition & 1 deletion docs/Halt_0021.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Compilation : July 23, 2024
Compilation : August 4, 2024
Documentation source: https://github.com/Cuis-Smalltalk/TheCuisBook
Expand Down
Loading

0 comments on commit 175da05

Please sign in to comment.