Grafoscopio/repository/Grafoscopio/GrafoscopioCodeModel.class.st
2020-05-09 18:40:58 +00:00

39 lines
705 B
Smalltalk

Class {
#name : #GrafoscopioCodeModel,
#superclass : #ComposableModel,
#instVars : [
'body'
],
#category : #'Grafoscopio-UI'
}
{ #category : #specs }
GrafoscopioCodeModel class >> defaultSpec [
^ SpecLayout composed add: #body
]
{ #category : #accessing }
GrafoscopioCodeModel >> body [
^ body
]
{ #category : #accessing }
GrafoscopioCodeModel >> body: anObject [
body := anObject
]
{ #category : #API }
GrafoscopioCodeModel >> content: aGrafoscopioNodeContent [
body
presentationClass: GTPlayground
startOn: (GTPlayPage new saveContent: aGrafoscopioNodeContent)
]
{ #category : #initialization }
GrafoscopioCodeModel >> initializeWidgets [
body := GlamourPresentationModel new.
]