-
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.
- Loading branch information
Showing
336 changed files
with
808 additions
and
907 deletions.
There are no files selected for viewing
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
10 changes: 10 additions & 0 deletions
10
...es/RichTextEditing-Core.package/RichTextDocument.class/class/hasStructure.for.from.to..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 @@ | ||
utilities | ||
hasStructure: aSymbol for: aText from: start to: end | ||
|
||
aText isEmpty | ||
ifTrue: [^ false]. | ||
|
||
^ (aText runs copyFrom: start to: end) allSatisfy: [:attributes | | ||
attributes anySatisfy: [:attribute | | ||
attribute isTextStructure ifTrue: [ | ||
attribute structureIdentifier = aSymbol] ifFalse: [false]]] |
10 changes: 0 additions & 10 deletions
10
...ichTextEditing-Core.package/RichTextDocument.class/class/hasStructure.forText.from.to..st
This file was deleted.
Oops, something went wrong.
5 changes: 4 additions & 1 deletion
5
packages/RichTextEditing-Core.package/RichTextDocument.class/instance/hash.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,7 @@ | ||
comparing | ||
hash | ||
|
||
^ (((self textStructures hash) bitXor: (self text hash)) bitXor: (self name hash)) bitXor: (self timeLastSaved hash) | ||
^ (((self textStructures hash) | ||
bitXor: (self text hash)) | ||
bitXor: (self name hash)) | ||
bitXor: (self timeLastSaved hash) |
4 changes: 2 additions & 2 deletions
4
packages/RichTextEditing-Core.package/RichTextDocument.class/instance/textRuns..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 | ||
textRuns: anArray | ||
textRuns: aRunArray | ||
|
||
self text runs: anArray | ||
self text runs: aRunArray |
3 changes: 1 addition & 2 deletions
3
...ages/RichTextEditing-Core.package/RichTextDocument.class/instance/textStructureSymbols.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,5 +1,4 @@ | ||
text structures | ||
textStructureSymbols | ||
|
||
^ self textStructures collect: [:each | | ||
each structureIdentifier] | ||
^ self textStructures collect: [:each | each structureIdentifier] |
8 changes: 5 additions & 3 deletions
8
packages/RichTextEditing-Core.package/RichTextDocument.class/instance/wordcount.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,8 +1,10 @@ | ||
count | ||
wordcount | ||
|
||
| prev bool byteString| | ||
| prev bool byteString | | ||
byteString := self asByteArray. | ||
prev := self emptyChars first. | ||
^ (byteString count: [:each | bool := ((self emptyChars includes: each) not and: [ | ||
self emptyChars includes: prev]). prev := each. bool ]) | ||
^ (byteString count: [:each | | ||
bool := ((self emptyChars includes: each) not and: [ | ||
self emptyChars includes: prev]). | ||
prev := each. bool]) |
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
...ichTextEditing-Core.package/RichTextDocumentReadStream.class/instance/beginOfStructure.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
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
3 changes: 2 additions & 1 deletion
3
packages/RichTextEditing-Core.package/RichTextEditor.class/instance/URLRegex.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,5 @@ | ||
constants | ||
URLRegex | ||
|
||
^ RxMatcher forString: '^https?\:\/\/([0-9a-zA-Z\-]+\.)*[0-9a-zA-Z]+(\/[0-9a-zA-Z\-\.\?\&\=\%]+)*$' | ||
^ RxMatcher forString: | ||
'^https?\:\/\/([0-9a-zA-Z\-]+\.)*[0-9a-zA-Z]+(\/[0-9a-zA-Z\-\.\?\&\=\%]+)*$' |
6 changes: 3 additions & 3 deletions
6
packages/RichTextEditing-Core.package/RichTextEditor.class/instance/isStructureShortcut..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 @@ | ||
input events | ||
isStructureShortcut: aKeyboardEvent | ||
|
||
^aKeyboardEvent controlKeyPressed and: [ | ||
aKeyboardEvent shiftPressed] and: [ | ||
self class structureKeymap includes: aKeyboardEvent keyCharacter] | ||
^ aKeyboardEvent controlKeyPressed and: [ | ||
aKeyboardEvent shiftPressed] and: [ | ||
self class structureKeymap includes: aKeyboardEvent keyCharacter] |
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
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
7 changes: 4 additions & 3 deletions
7
packages/RichTextEditing-Core.package/RichTextEditorModel.class/instance/postBuildWith..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,8 @@ | ||
toolbuilder | ||
postBuildWith: aBuilder | ||
|
||
self textView: (aBuilder widgetAt: 'textView'). | ||
self footer: (aBuilder widgetAt: 'footer'). | ||
self updateFooter. | ||
self | ||
textView: (aBuilder widgetAt: 'textView'); | ||
footer: (aBuilder widgetAt: 'footer'); | ||
updateFooter. | ||
self editor model: self |
1 change: 1 addition & 0 deletions
1
...s/RichTextEditing-Core.package/RichTextEditorModel.class/instance/removeTextAttribute..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
10 changes: 4 additions & 6 deletions
10
...ance/saveDocumentInSaverWithNamePrompt.st → ...ss/instance/saveDocumentWithNamePrompt.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,13 +1,11 @@ | ||
saving and loading | ||
saveDocumentInSaverWithNamePrompt | ||
saveDocumentWithNamePrompt | ||
|
||
| name | | ||
name := UIManager default request: 'Save as...'. | ||
name = '' | ||
ifFalse: [ | ||
self saver | ||
addSave: self targetDocument | ||
(name = '') ifFalse: [ | ||
self saver addSave: self targetDocument | ||
underName: name. | ||
self | ||
self | ||
setCurrentSave: name; | ||
noUnacceptedEdits] |
Oops, something went wrong.