|
Class: TextEditor (private in FileApplicationNoteBook
This class is only visible from within
FileApplicationNoteBook.
Object
|
+--Model
|
+--ApplicationModel
|
+--AbstractFileApplicationNoteBookComponent
|
+--FileApplicationNoteBook::TextEditor
- Package:
- stx:libtool
- Category:
- Interface-Tools-File
- Owner:
- FileApplicationNoteBook
a previewer-plugin for plain text
Offers edit, hex-display and diff functions.
defaults
-
checkModifiedDelayTime
-
seconds
-
defaultTagsBrowserVisible
-
-
tabStringFor: aApplicationType
-
the formatString shown in a tab (language translated)
-
wantNewApplicationAnyway
-
does the subapp want separate new app tabs,
or reuse any already open isntance of it?
help specs
-
helpSpec
-
This resource specification was automatically generated
by the UIHelpTool of ST/X.
image specs
-
hideToolBarIcon
-
interface specs
-
windowSpec
-
This resource specification was automatically generated
by the UIPainter of ST/X.
Usage example(s):
UIPainter new openOnClass:FileApplicationNoteBook::TextEditor andSelector:#windowSpec
FileApplicationNoteBook::TextEditor new openInterface:#windowSpec
FileApplicationNoteBook::TextEditor open
|
-
xwindowSpec
-
This resource specification was automatically generated
by the UIPainter of ST/X.
menu specs
-
menu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileApplicationNoteBook::TextEditor andSelector:#menu
(Menu new fromLiteralArrayEncoding:(FileApplicationNoteBook::TextEditor menu)) startUp
|
-
menuEditorOperationsForHTML
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileApplicationNoteBook::TextEditor andSelector:#menuEditorOperationsForHTML
(Menu new fromLiteralArrayEncoding:(FileApplicationNoteBook::TextEditor menuEditorOperationsForHTML)) startUp
|
-
menuEditorOperationsForNormalText
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileApplicationNoteBook::TextEditor andSelector:#menuEditorOperationsForNormalText
(Menu new fromLiteralArrayEncoding:(FileApplicationNoteBook::TextEditor menuEditorOperationsForNormalText)) startUp
|
-
menuEditorOperationsForOther
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
-
menuEditorOperationsForSourceCode
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileApplicationNoteBook::TextEditor andSelector:#menuEditorOperationsForSourceCode
(Menu new fromLiteralArrayEncoding:(FileApplicationNoteBook::TextEditor menuEditorOperationsForSourceCode)) startUp
|
accessing
-
compressTabsOnSave: aBoolean
-
some files should never be written with spaces replaced by
tabs (eg: python source code, if it did not originally have tabs)
-
fileEncoding
-
-
fileEncoding: newEncoding
-
-
item: aDirContentsItem
-
true
-
lockFileEncoding: aBoolean
-
-
presentation
-
return the current presentation (either #hexDump or #asText)
-
presentation: aSymbol
-
change the presentation (either #hexDump or #asText)
-
semaChangeItem
-
-
type: aType
-
actions
-
accept
-
-
askForChangeWithReload: doReload
-
ask for save changes;
if modified and answered true, the current contents is written back (accepted)
-
askForChangeWithReload: doReload forClose: forClose
-
ask for save changes;
if modified and answered true, the current contents is written back (accepted)
-
changeInformation
-
-
changeInformationForModified: aSymbol
-
-
characterEncodingInDump: anEencodingSymbol
-
-
doClose
-
(comment from inherited method)
tell the NoteBookApplication to close me
-
doPrint
-
print the contents
-
doSaveAs
-
-
editOperationAddAnchorHTML
-
-
editOperationAddImageHTML
-
-
editOperationEscapeSpecialCharactersHTML
-
withSpecialHTMLCharactersEscaped:sel.
-
editOperationIndentCode
-
-
editOperationToggleBoldHTML
-
-
editOperationToggleCodeHTML
-
-
editOperationToggleHTML: info start: whatStart end: whatEnd
-
whatStart and whatEnd are the brackets to search for
-
editOperationToggleItalicHTML
-
-
editOperationUndentCode
-
-
getContents
-
old
-
getContentsAsTextWithSizeLimit: sizeLimitOrNil
-
returns the contents as unicode
-
getContentsAsTextWithSizeLimit: sizeLimitOrNilArg lastPart: showLastPartOrNil
-
returns the contents as unicode
-
getHashForContents: contents
-
-
hideEditorOperationsToolBar
-
-
openDiffView
-
asText
-
radixInDump: radix
-
-
readStream: aStream lineDelimiter: aCharacter encoding: fileEncodingArg
-
read from aStream, answer its contents as StringCollection.
The file's lines are delimited by aCharacter.
If encoding is nonNil, the file is assumed to be coded according to
that symbol, and #decodeString: should be able to convert it into unicode.
Always returns a unicode string.
-
readStream: aStream lineDelimiter: lineDelimiter sizeLimit: sizeLimitOrNil encoding: fileEncodingArg
-
read from aStream, answer its contents as StringCollection.
The file's lines are delimited by aCharacter.
If encoding is nonNil, the file is assumed to be coded according to
that symbol, and #decodeString: should be able to convert it into unicode.
Always returns a unicode string.
-
reload
-
self withWaitCursorDo:[
-
saveFileAs
-
-
saveWithAskForFilename: ask
-
-
searchForPattern: aContentsPattern ignoreCase: ign
-
is that a good idea ?
-
selectInBrowser
-
-
setContents
-
-
setContentsFor: aUnicodeText
-
-
showEditorOperationsToolBar
-
-
tagSelected: aTag
-
otherwise, it might jump back to show the selection
-
updateSameFilesFor: aFilename
-
here force reload for other applications
-
validateEditViewsFontEncoding
-
aspects
-
canEdit
-
-
compressTabsOnSaveHolder
-
some files should never be written with spaces replaced by
tabs (eg: python source code, if it did not originally have tabs)
-
cursorColLabelHolder
-
-
cursorLineAndColumnLabelHolder
-
-
cursorLineLabelHolder
-
-
editModeInsert
-
-
editModeInsertAndSelect
-
-
editModeOverwrite
-
-
editView
-
-
editorOperationsMenuSpecHolder
-
-
editorOperationsToolBarNotVisibleHolder
-
-
editorOperationsToolBarVisibleHolder
-
-
enableHexToggle
-
-
enableReload
-
-
enableSave
-
-
enableSaveAs
-
-
enableSelectInBrowser
-
-
fileContentsModel
-
-
fileEncodingHolder
-
-
itemChanged
-
-
itemRemoved
-
-
lockFileEncodingHolder
-
-
modeLabelHolder
-
-
modeLabelMenu
-
-
modifiedChannel
-
-
presentationHolder
-
-
printAsHexDump
-
-
viewModifiedChannel
-
aspects-visibility
-
closeButtonShown
-
^ self isEmbeddedApplication.
-
diffTextButtonVisible
-
true
-
doItMenuButtonVisible
-
-
inspectItMenuButtonVisible
-
-
printItMenuButtonVisible
-
-
saveAsButtonVisible
-
-
saveButtonVisible
-
true
-
selectInBrowserButtonVisible
-
-
tagsBrowserVisibleHolder
-
change & update
-
changeTextColorForChanged
-
indicate (by changing the text's color) that the text was changed by someone else
(usually a browinsh red color)
-
editorOperationsToolBarVisibilityChanged
-
-
itemModified
-
-
postBuildTagsBrowser: aTagsBrowserCanvas
-
-
tagsBrowserVisibilityChanged
-
-
update: something with: aParameter from: changedObject
-
(comment from inherited method)
dependent is notified of some change -
Default is to try update:with:
-
updateTagsBrowser
-
initialization
-
initialize
-
nil defaults to 'iso8859-1' "
-
postBuildTextEditor: aWidget
-
I don't want any non-smalltalk code to be syntaxhighlighted!
-
setUpTextView
-
care for any contents specific settings for the editor
For example:
- change the parenthesis-spec of the editor to include $< .. $> if the
shown document is an html- or xml document,
- change the editorOperationsMenu
-
setupEditorOperationsMenuForMimeType: mimeType
-
does not work - why?
printing
-
printOn: aStream
-
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.
The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.
private-process
-
checkItemForChanges
-
file contents has been changed by someone else
-
checkItemForChangesWithNewSetup
-
-
releaseCheckModify
-
-
setupCheckModify
-
queries
-
additionalInfo
-
-
hasMD5
-
-
isModified
-
-
isShowingHexDumpHolder
-
-
isTextEditor
-
startup & release
-
closeRequest
-
asks for permission before closing
-
editorOperationsMenuSpecForMimeType: mimeType
-
-
getEditorClass
-
-
hideEditorOperationsToolBarButtonCreated: aButton
-
-
postOpenWith: aBuilder
-
self item isNil ifTrue:[
-
release
-
release my resources
|