Skip to content

Commit

Permalink
AlbSubtextElementUpdateStrategy>>onInstalledIn:
Browse files Browse the repository at this point in the history
 remove whenLayoutedDoOnce:
  • Loading branch information
plantec committed Dec 25, 2023
1 parent b838470 commit 7572acc
Show file tree
Hide file tree
Showing 257 changed files with 2,563 additions and 3,041 deletions.
16 changes: 7 additions & 9 deletions src/Album-Examples/AlbEditorShortcutExamples.class.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
Class {
#name : 'AlbEditorShortcutExamples',
#superclass : 'Object',
#category : 'Album-Examples-Shortcuts',
#package : 'Album-Examples',
#tag : 'Shortcuts'
#name : #AlbEditorShortcutExamples,
#superclass : #Object,
#category : 'Album-Examples-Shortcuts'
}

{ #category : 'accessing' }
{ #category : #accessing }
AlbEditorShortcutExamples >> deleteOneLetterAfterCursorWithSelection [
<gtExample>
| anEditorElement anEditor |
Expand Down Expand Up @@ -34,7 +32,7 @@ AlbEditorShortcutExamples >> deleteOneLetterAfterCursorWithSelection [
^ anEditorElement
]

{ #category : 'accessing' }
{ #category : #accessing }
AlbEditorShortcutExamples >> deleteOneLetterAfterCursorWithSelectionBeforeCursor [
<gtExample>
| anEditorElement anEditor |
Expand All @@ -59,7 +57,7 @@ AlbEditorShortcutExamples >> deleteOneLetterAfterCursorWithSelectionBeforeCursor
^ anEditorElement
]

{ #category : 'accessing' }
{ #category : #accessing }
AlbEditorShortcutExamples >> deleteOneLetterBeforeCursorWithSelection [
<gtExample>
| anEditorElement anEditor |
Expand All @@ -84,7 +82,7 @@ AlbEditorShortcutExamples >> deleteOneLetterBeforeCursorWithSelection [
^ anEditorElement
]

{ #category : 'accessing' }
{ #category : #accessing }
AlbEditorShortcutExamples >> deleteOneLetterBeforeCursorWithSelectionAfterCursor [
<gtExample>
| anEditorElement anEditor |
Expand Down
14 changes: 6 additions & 8 deletions src/Album-Examples/AlbEditorTextFlowLayoutExamples.class.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
Class {
#name : 'AlbEditorTextFlowLayoutExamples',
#superclass : 'Object',
#category : 'Album-Examples-Layout',
#package : 'Album-Examples',
#tag : 'Layout'
#name : #AlbEditorTextFlowLayoutExamples,
#superclass : #Object,
#category : 'Album-Examples-Layout'
}

{ #category : 'instance creation' }
{ #category : #'instance creation' }
AlbEditorTextFlowLayoutExamples >> container [
<gtExample>
| anElement |
Expand All @@ -25,7 +23,7 @@ AlbEditorTextFlowLayoutExamples >> container [
^ anElement
]

{ #category : 'examples - layout' }
{ #category : #'examples - layout' }
AlbEditorTextFlowLayoutExamples >> container_extent [
<gtExample>
| aContainer |
Expand All @@ -38,7 +36,7 @@ AlbEditorTextFlowLayoutExamples >> container_extent [
^ aContainer
]

{ #category : 'examples - layout' }
{ #category : #'examples - layout' }
AlbEditorTextFlowLayoutExamples >> layout_no_memory_leak [
<gtExample>
| aContainer |
Expand Down
26 changes: 12 additions & 14 deletions src/Album-Examples/AlbEmbeddedEditorExamples.class.st
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
Class {
#name : 'AlbEmbeddedEditorExamples',
#superclass : 'AlbTextEditorExamples',
#name : #AlbEmbeddedEditorExamples,
#superclass : #AlbTextEditorExamples,
#traits : 'TAlbTextEditorFixedMeasurerExamples',
#classTraits : 'TAlbTextEditorFixedMeasurerExamples classTrait',
#category : 'Album-Examples-Editor',
#package : 'Album-Examples',
#tag : 'Editor'
#category : 'Album-Examples-Editor'
}

{ #category : 'instance creation' }
{ #category : #'instance creation' }
AlbEmbeddedEditorExamples >> editorFor: aText [
<return: #AlbEditorElement>
| anEditor aRopedText |
Expand Down Expand Up @@ -37,7 +35,7 @@ AlbEmbeddedEditorExamples >> editorFor: aText [
^ anEditor
]

{ #category : 'examples - embedded' }
{ #category : #'examples - embedded' }
AlbEmbeddedEditorExamples >> editorWithEmbeddedEditor [

<gtExample>
Expand All @@ -47,19 +45,19 @@ AlbEmbeddedEditorExamples >> editorWithEmbeddedEditor [
^ ed
]

{ #category : 'examples - embedded' }
{ #category : #'examples - embedded' }
AlbEmbeddedEditorExamples >> elementWithEmbeddedEditor [
<gtExample>

^ self newElement editor: self editorWithEmbeddedEditor
]

{ #category : 'private - instance creation' }
{ #category : #'private - instance creation' }
AlbEmbeddedEditorExamples >> embeddedEditorText [
^ 'Hello world' asRopedText
]

{ #category : 'examples - embedded' }
{ #category : #'examples - embedded' }
AlbEmbeddedEditorExamples >> embeddedTextEditorElement [
"<gtExample>"
| anEditorElement |
Expand All @@ -83,12 +81,12 @@ AlbEmbeddedEditorExamples >> embeddedTextEditorElement [
^ anEditorElement
]

{ #category : 'private - instance creation' }
{ #category : #'private - instance creation' }
AlbEmbeddedEditorExamples >> mainEditorText [
^ self newThreeLineText fontSize: 20
]

{ #category : 'private' }
{ #category : #private }
AlbEmbeddedEditorExamples >> makeFixedMeasurement: aTextEditor [

aTextEditor
Expand All @@ -101,14 +99,14 @@ AlbEmbeddedEditorExamples >> makeFixedMeasurement: aTextEditor [
aTextElement ]
]

{ #category : 'examples - embedded' }
{ #category : #'examples - embedded' }
AlbEmbeddedEditorExamples >> newThreeLineText [
<gtExample>

^ ('first' , String cr , 'second' , String cr , 'third') asRopedText
]

{ #category : 'examples - embedded' }
{ #category : #'examples - embedded' }
AlbEmbeddedEditorExamples >> textWithEmbeddedEditor [
<script: 'self new textWithEmbeddedEditor'>
| aText |
Expand Down
Loading

0 comments on commit 7572acc

Please sign in to comment.