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

Move methods in ToploDemoPresenter’s protocol ‘demos’ to the class side #192

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions src/Toplo-Demo/ToploDemoPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,8 @@ Class {
#category : #'Toplo-Demo'
}

{ #category : #running }
ToploDemoPresenter class >> menuCommandOn: aBuilder [

<worldMenu>

(aBuilder item: #'Open Toplo Demo')
action: [ self open ];
parent: #Help;
iconName: #group;
withSeparatorAfter
]

{ #category : #running }
ToploDemoPresenter class >> open [

<script>

super open
]

{ #category : #demos }
ToploDemoPresenter >> demo1 [
ToploDemoPresenter class >> demo1 [

<demo>

Expand All @@ -36,7 +16,7 @@ ToploDemoPresenter >> demo1 [
]

{ #category : #demos }
ToploDemoPresenter >> demo2 [
ToploDemoPresenter class >> demo2 [

<demo>
| list colorAssociations |
Expand Down Expand Up @@ -71,7 +51,7 @@ ToploDemoPresenter >> demo2 [
]

{ #category : #demos }
ToploDemoPresenter >> demo3 [
ToploDemoPresenter class >> demo3 [

<demo>
| containerElement radioButtonLightTheme radioButtonDarkTheme checkableGroup |
Expand Down Expand Up @@ -101,6 +81,26 @@ ToploDemoPresenter >> demo3 [
^ containerElement
]

{ #category : #running }
ToploDemoPresenter class >> menuCommandOn: aBuilder [

<worldMenu>

(aBuilder item: #'Open Toplo Demo')
action: [ self open ];
parent: #Help;
iconName: #group;
withSeparatorAfter
]

{ #category : #running }
ToploDemoPresenter class >> open [

<script>

super open
]

{ #category : #private }
ToploDemoPresenter >> drawOnCanvas: anElement [

Expand Down
Loading