|
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
-
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
-
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
-
-
doPrint
-
print the contents
-
doSaveAs
-
-
editOperationAddAnchorHTML
-
-
editOperationAddImageHTML
-
-
editOperationEscapeSpecialCharactersHTML
-
-
editOperationIndentCode
-
-
editOperationToggleBoldHTML
-
-
editOperationToggleCodeHTML
-
-
editOperationToggleHTML: info start: whatStart end: whatEnd
-
-
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
-
-
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
-
self fileContentsModel value:text string.
-
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' "
printing
-
printOn: aStream
-
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
-
-
postBuildTextEditor: aWidget
-
I don't want any non-smalltalk code to be syntaxhighlighted!
-
postOpenWith: aBuilder
-
self item isNil ifTrue:[
-
release
-
release my resources
-
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?
|