Skip to content

Commit

Permalink
Fix menus when changing default font. Update docs for latest released…
Browse files Browse the repository at this point in the history
… VMs.
  • Loading branch information
jvuletich committed May 18, 2022
1 parent fb7a388 commit fde6f1b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
'From Cuis 6.0 [latest update: #5172] on 18 May 2022 at 8:58:36 am'!

!MenuMorph methodsFor: 'geometry' stamp: 'jmv 5/18/2022 08:58:03'!
fontPreferenceChanged
super fontPreferenceChanged.
self adjustSubmorphsLayout.! !


!LabelMorph methodsFor: 'geometry' stamp: 'jmv 5/18/2022 08:56:10'!
fontPreferenceChanged

super fontPreferenceChanged.
self font: (PreferenceNG at: #standardListFont).
self fitContents.! !


!MenuMorph reorganize!
('accessing' addBlankIconsIfNecessary items itemsDo: label lastItem layerNumber stayUp stayUp:)
('construction' add:action: add:action:balloonText: add:action:icon: add:action:icon:enabled: add:subMenu: add:target:action: add:target:action:argument: add:target:action:argument:icon: add:target:action:argumentList: add:target:action:icon: add:targetHighlight:action:argumentList: addItemsFromDictionaries: addLine addServices:for:extraLines: addStayUpIcons addTitle: addUpdating:action: addUpdating:target:action: addUpdating:target:action:argumentList: defaultTarget: labels:lines:selections:)
('control' activeSubmenu: deleteIfPopUp: popUpAdjacentTo:from: popUpAt:forHand:allowKeyboard: popUpAt:forHand:in: popUpAt:forHand:in:allowKeyboard: popUpForHand:in: popUpInWorld popUpInWorld: selectItem: wantsToBeDroppedInto:)
('dropping/grabbing' justDroppedInto:event:)
('events' keyStroke: mouseButton1Down:localPosition: mouseButton1Up:localPosition: mouseButton2Up:localPosition:)
('event handling testing' handlesKeyboard handlesMouseDown:)
('events-processing' handleFocusEvent:)
('geometry' fontPreferenceChanged)
('initialization' defaultBorderWidth defaultColor delete initialize intoWorld:)
('keyboard control' displayFiltered: keyboardFocusChange: moveSelectionDown:event:)
('menu' removeStayUpBox)
('modal control' invokeModal invokeModal: isModalInvokationDone isModalInvokationDone: modalSelection modalSelection:)
('testing' isIncludedInTaskbar)
('private' adjustSubmorphsLayout fitInWorld selectedItem)
('drawing' drawOn:)
('misc' activate:)
('modal progress dialog' displayAt:during: informUserAt:during:)
('halos and balloon help' addHalo:)
!

4 changes: 2 additions & 2 deletions Documentation/GettingStarted-NoCommandLine.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ What follows are instructions for setting up Cuis on Windows or Mac OS X without
* Create a new folder in your machine using Windows Explorer (don't use an existing folder)
* download [`master.zip`](https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/archive/master.zip), saving it to that folder.
* extract the contents of the zip file right there ("extract here")
* download [`squeak.cog.spur_win64x64.zip`](https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202112201228/squeak.cog.spur_win64x64.zip), saving it to yourFolder\Cuis-Smalltalk-Dev-master\ (the folder that was just created while extracting the first zip file).
* download [`squeak.cog.spur_win64x64.zip`](https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202205110711/squeak.cog.spur_win64x64.zip), saving it to yourFolder\Cuis-Smalltalk-Dev-master\ (the folder that was just created while extracting the first zip file).
* extract the contents of the zip file right there ("extract here")
* drop the Cuis6.0-5171.image over the Squeak.exe file. Alternatively, double click on the Squeak.exe file, and when prompted to select an image file, select Cuis6.0-5171.image.
* If you get a message like "This publisher could not be verified. Are you sure you want to run this software?", then untag "Always ask before opening this file" (if present) and click [Run].
Expand All @@ -16,7 +16,7 @@ What follows are instructions for setting up Cuis on Windows or Mac OS X without
* Create a new folder in your machine using Mac Finder (don't use an existing folder)
* download [`master.zip`](https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/archive/master.zip) to your folder
* extract the contents of the zip file (double click on it)
* download [`squeak.cog.spur_macos64x64.dmg`](https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202112201228/squeak.cog.spur_macos64x64.dmg), saving it to your folder
* download [`squeak.cog.spur_macos64x64.dmg`](https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202205110711/squeak.cog.spur_macos64x64.dmg), saving it to your folder
* double click on the dmg file
* Drag Squeak to your folder
* [control]+click on Squeak. [control]+Open in the menu.
Expand Down
14 changes: 7 additions & 7 deletions Documentation/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Cuis Smalltalk is available in 64 bits and 32 bits variants. It also available in the 32 bits V3 (pre Spur) image format. All three of them share the full source code and have essentially the same behavior, providing full portability for your code between them. These instructions are for the recommended format for each system, although most systems support all of them.

In general, we recommend using VMs from [OpenSmalltalk GitHub releases](https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/latest). In addition, the [SqueakJS](https://squeak.js.org) JavaScript Squeak VM that can run in a web browser can run our -32 and our -v3 images.
In general, we recommend using VMs from [OpenSmalltalk GitHub releases](https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/latest). In addition, the [SqueakJS](https://squeak.js.org) JavaScript Squeak VM that can run Cuis.

These instructions assume you have the Git code versioning system installed in your system. This has the advantage to set you up to easily contribute code back to Cuis packages, using Git pull requests. If you prefer not to use Git, see details at the end of this document. If you are on Windows or Mac, and prefer not using the command line, you might follow [Getting started using Mac Finder or Windows Explorer](GettingStarted-NoCommandLine.md).

Expand Down Expand Up @@ -41,7 +41,7 @@ Note: For 32 bits Linux on Intel/AMD, use ```*_linux32x86_*``` vm and the ```*-3
```
cd MyProject
rm -r cogspur
wget -O cogspur.tgz https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202112201228/squeak.cog.spur_linux64x64.tar.gz
wget -O cogspur.tgz https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202205110711/squeak.cog.spur_linux64x64.tar.gz
tar -zxvf cogspur.tgz
mv ./sqcogspur64linuxht ./cogspur
```
Expand All @@ -66,7 +66,7 @@ Log out and log back in, or reboot the machine.
### Get and set up an appropriate VM ###
```
cd MyProject
curl -L -o CogSpur.dmg https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202112201228/squeak.cog.spur_macos64x64.dmg
curl -L -o CogSpur.dmg https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202205110711/squeak.cog.spur_macos64x64.dmg
Open Finder on your folder
Double click on the dmg file
Drag Squeak.app to your MyProject folder
Expand All @@ -88,7 +88,7 @@ Note: For 32 bits Windows, use ```*_win32x86_*``` vm and the ```*-32.image``` Cu
```
cd MyProject
rm -r cogspur
curl -k -L -o cogspur.zip https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202112201228/squeak.cog.spur_win64x64.zip
curl -k -L -o cogspur.zip https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202205110711/squeak.cog.spur_win64x64.zip
unzip cogspur.zip -d cogspur
```

Expand All @@ -103,7 +103,7 @@ cogspur/Squeak.exe Cuis-Smalltalk-Dev/Cuis6.0-5171.image
```
cd MyProject
rm -r cogspur
wget -O cogspur.tgz https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202112201228/squeak.cog.spur_linux32ARMv6.tar.gz
wget -O cogspur.tgz https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202205110711/squeak.cog.spur_linux32ARMv6.tar.gz
tar -zxvf cogspur.tgz
mv ./sqcogspurlinuxhtRPi ./cogspur
```
Expand All @@ -126,15 +126,15 @@ Note: JIT (Just In Time) compiling is disabled by ChromeOS. This means that *_sq
```
cd MyProject
rm -r cogspur
wget -O cogspur.tgz https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202112201228/squeak.cog.spur_linux32x86.tar.gz
wget -O cogspur.tgz https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202205110711/squeak.cog.spur_linux32x86.tar.gz
tar -zxvf cogspur.tgz
mv ./sqcogspurlinuxht ./cogspur
```
### For ARM CPUs: Get and set up an appropriate VM ###
```
cd MyProject
rm -r stkspur
wget -O stkspur.tgz https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202112201228/squeak.stack.spur_linux32ARMv6.tar.gz
wget -O stkspur.tgz https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/download/202205110711/squeak.stack.spur_linux32ARMv6.tar.gz
tar -zxvf stkspur.tgz
mv ./sqstkspurlinuxhtRPi ./stkspur
```
Expand Down

0 comments on commit fde6f1b

Please sign in to comment.