-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from hpi-swa-teaching/refactor/frcroth
Refactor minor style changes
- Loading branch information
Showing
52 changed files
with
119 additions
and
100 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/RichTextEditing-Core.package/RichTextDocument.class/instance/asString.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
asString | ||
|
||
^ self text string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/RichTextEditing-Core.package/RichTextDocument.class/instance/dateLastSaved.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
dateLastSaved | ||
|
||
^ self timestampLastSaved first |
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Core.package/RichTextDocument.class/instance/isUnsavedDocument.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
isUnsavedDocument | ||
|
||
^ self timeLastSaved = nil | ||
^ self timestampLastSaved isNil |
4 changes: 0 additions & 4 deletions
4
packages/RichTextEditing-Core.package/RichTextDocument.class/instance/timeLastSaved..st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Core.package/RichTextDocument.class/instance/timeLastSaved.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
timeLastSaved | ||
|
||
^ timeLastSaved | ||
^ self timestampLastSaved second |
4 changes: 4 additions & 0 deletions
4
packages/RichTextEditing-Core.package/RichTextDocument.class/instance/timestampLastSaved..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
timestampLastSaved: aDateAndTime | ||
|
||
timestampLastSaved := aDateAndTime |
4 changes: 4 additions & 0 deletions
4
packages/RichTextEditing-Core.package/RichTextDocument.class/instance/timestampLastSaved.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
timestampLastSaved | ||
|
||
^ timestampLastSaved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Core.package/RichTextEditorModel.class/instance/saveText.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
saving and loading | ||
saveText | ||
|
||
self bufferDocument timeLastSaved: Time dateAndTimeNow. | ||
self bufferDocument timestampLastSaved: Time dateAndTimeNow. | ||
self targetDocument copy: self bufferDocument. | ||
self noUnacceptedEdits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/RichTextEditing-Core.package/RichTextEditorModel.class/instance/showInfoDialog..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
user interface | ||
showInfoDialog: aString | ||
|
||
^ UserDialogBoxMorph new | ||
title: self label; | ||
label: aString; | ||
exclusive: false; | ||
createButton: 'OK' translated value: true; | ||
openInWorld; | ||
yourself |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../RichTextEditing-Core.package/RichTextPlainTextExportStrategy.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...RichTextEditing-Core.package/RichTextStructureEditor.class/instance/buildChildrenWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
toolbuilder | ||
buildChildrenWith: aBuilder | ||
|
||
^ {self buildStructureFieldWith: aBuilder. | ||
self buildStyleFieldWith: aBuilder. | ||
self buildTextPreviewFieldWith: aBuilder. | ||
self buildAddStructureButtonWith: aBuilder. | ||
self buildFontButtonWith: aBuilder. | ||
self buildFontResetButtonWith: aBuilder. | ||
self buildColorButtonWith: aBuilder. | ||
self buildColorResetButtonWith: aBuilder. | ||
self buildRemoveStructureButtonWith: aBuilder. | ||
self buildIncreasePriorityButtonWith: aBuilder. | ||
self buildDecreasePriorityButtonWith: aBuilder. | ||
self buildAcceptTemplateButtonWith: aBuilder. | ||
self buildTemplateFieldWith: aBuilder} |
17 changes: 2 additions & 15 deletions
17
packages/RichTextEditing-Core.package/RichTextStructureEditor.class/instance/buildWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
toolbuilder | ||
buildWith: aBuilder | ||
|
||
| windowSpec | | ||
windowSpec := aBuilder pluggableWindowSpec new. | ||
windowSpec | ||
model: self; | ||
label: 'Structure Editor'; | ||
children: { | ||
self buildStructureFieldWith: aBuilder. | ||
self buildStyleFieldWith: aBuilder. | ||
self buildTextPreviewFieldWith: aBuilder. | ||
self buildAddStructureButtonWith: aBuilder. | ||
self buildFontButtonWith: aBuilder. | ||
self buildFontResetButtonWith: aBuilder. | ||
self buildColorButtonWith: aBuilder. | ||
self buildColorResetButtonWith: aBuilder. | ||
self buildRemoveStructureButtonWith: aBuilder. | ||
self buildIncreasePriorityButtonWith: aBuilder. | ||
self buildDecreasePriorityButtonWith: aBuilder. | ||
|
||
self buildAcceptTemplateButtonWith: aBuilder. | ||
self buildTemplateFieldWith: aBuilder}. | ||
children: (self buildChildrenWith: aBuilder). | ||
^ aBuilder build: windowSpec |
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Core.package/RichTextStructureEditor.class/instance/update..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
change | ||
update: aParameter | ||
|
||
(aParameter = #font or: [aParameter = #color]) | ||
(#(font color) includes: aParameter) | ||
ifTrue: [self updateLoremIpsum. self document textChanged]. | ||
|
||
super update: aParameter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Core.package/TextStructure.class/class/hyperlinkTo..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
predefined | ||
hyperlinkTo: url | ||
|
||
^ self new: #hyperlink from: {TextURL new url: url}. | ||
^ self new: #hyperlink from: {TextURL new url: url} |
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Core.package/TextStructure.class/class/new.from..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
instance creation | ||
new: aSymbol from: aCollection | ||
|
||
^ (self new: aSymbol) attributes: aCollection asSet. | ||
^ (self new: aSymbol) attributes: aCollection asSet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...s/RichTextEditing-Tests.package/RichTextDocumentTests.class/instance/structureIsListed.st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.