|
Class: MultiViewToolApplication
Object
|
+--Model
|
+--ApplicationModel
|
+--ToolApplicationModel
|
+--MultiViewToolApplication
|
+--TerminalApplication
|
+--WorkspaceApplication
- Package:
- stx:libtool
- Category:
- Interface-Smalltalk
- Version:
- rev:
1.82
date: 2023/09/07 20:52:52
- user: stefan
- file: MultiViewToolApplication.st directory: libtool
- module: stx stc-classLibrary: libtool
Common code for multiView applications (Workspace, Terminal app and maybe more later)
copyrightCOPYRIGHT (c) 2004 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
defaults
-
defaultEditToolbarVisible
-
-
defaultInfoVisible
-
-
defaultToolbarVisible
-
help specs
-
helpSpec
-
(comment from inherited method)
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:MultiViewToolApplication andSelector:#windowSpec
MultiViewToolApplication new openInterface:#windowSpec
MultiViewToolApplication open
|
menu specs
-
editToolBarMenu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
-
mainMenu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:MultiViewToolApplication andSelector:#mainMenu
(Menu new fromLiteralArrayEncoding:(MultiViewToolApplication mainMenu)) startUp
|
-
tabMenu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:MultiViewToolApplication andSelector:#tabMenu
(Menu new fromLiteralArrayEncoding:(MultiViewToolApplication tabMenu)) startUp
|
-
toolBarMenu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:MultiViewToolApplication andSelector:#toolBarMenu
(Menu new fromLiteralArrayEncoding:(MultiViewToolApplication toolBarMenu)) startUp
|
-
viewMenu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:MultiViewToolApplication andSelector:#viewMenu
(Menu new fromLiteralArrayEncoding:(MultiViewToolApplication viewMenu)) startUp
|
-
viewMenuExtraSlice
-
queries
-
isAbstract
-
-
isVisualStartable
-
return true, if this application can be started via #open.
(to allow start of a change browser via double-click in the browser)
accessing
-
selectedWorkspace
-
the currently selected (active) workspace
-
selectedWorkspaceApplication
-
Return an aoplication of selected (active) workspace or nil,
is currently selected workspace is not an embedded
ApplicationModel
-
tabMenuAt: index
-
for now: if that buffer is modified, do not allow removing.
-
workspaceHolder
-
holds the current (active tab's) view
-
workspaces
-
aspects
-
editToolBarVisibleHolder
-
-
hasEditToolBar
-
-
hasInfoLabel
-
-
infoVisibleHolder
-
-
selectedWorkspaceIndexHolder
-
-
tabList
-
-
toolBarVisibleHolder
-
aspects-queries
-
canRemoveAllWorkspacesExcept: idx
-
-
canRemoveWorkspace
-
-
canRemoveWorkspace: idx
-
and:[ (self workspacesTextViewAt:(self selectedWorkspaceIndexHolder value))
-
hasMultipleBuffersHolder
-
-
hasSelectionInActiveWorkspace
-
-
hasSelectionInActiveWorkspaceAndEditorIsNotReadonly
-
-
hasTextInActiveWorkspace
-
change & update
-
infoVisibilityChanged
-
#CodeView.
-
toolBarVisibilityChanged
-
force it to recompute its dimension
-
update: something with: aParameter from: changedObject
-
(comment from inherited method)
dependent is notified of some change -
Default is to try update:with:
-
updateLabelOfSelectedWorkspaceForFile: filename
-
-
windowLabelPrefix
-
-
workspaceSelectionChanged
-
self selected
defaults
-
defaultFileNameForLoad
-
-
defaultFileNameForSave
-
-
defaultFileNameForSaveAll
-
-
defaultPatternLoad
-
initialization
-
hideToolBarButtonCreated: aButton
-
aButton passiveLevel:1.
-
initialize
-
-
postBuildWith: aBuilder
-
(comment from inherited method)
this is sent after an interface is built from a spec,
but only iff the appModel is not the same as the topView's app
(i.e. if it is not a build for the same appModel again).
In the other case, postBuildAsSubcanvasWith is invoked.
Can be redefined in subclasses for additional setup after
the view has been built, but not yet opened.
menu-actions
-
addWindow: aWindow named: name
-
-
addWindow: aWindow named: name asFirst: asFirst
-
-
addWindow: aWindow named: name tabIcon: iconOrNil
-
add aWindow as a new tab
-
addWindow: aWindow named: name tabIcon: iconOrNil asFirst: asFirst
-
add aWindow as a new tab
-
addWorkspace
-
-
destroyTab: tabIndex
-
-
doIt
-
-
loadFile: aFileName
-
-
loadFile: aFileName encoding: encodingSymbolOrNil
-
-
loadFile: aFileName encoding: encodingSymbolOrNil label: label
-
load a file into the current tab
-
loadFile: aFileName label: lbl
-
-
menuLoad
-
-
menuPrint
-
-
menuSaveAllAs
-
saves all buffers into one common file
-
menuSaveAs
-
open a dialog asking for a filename,
then ask the current tab to save its contents there.
-
newWorkspace
-
-
openFontDialog
-
-
openSTXDocumentation
-
opens the top documentation file
-
openSettingsDialog
-
#('Debugger' #'AbstractSettingsApplication::DebuggerSettingsAppl' )
-
printIt
-
-
removeAllWorkspacesExcept: wsIndex
-
-
removeWorkspace
-
-
removeWorkspace: wsIndex
-
to force change (update workspaceHolder - even if same index)
-
renameWorkspace
-
-
renameWorkspace: wsIndex
-
-
renameWorkspace: wsIndex to: newName
-
menu-actions-editing
-
copySelection
-
-
cutSelection
-
-
paste
-
-
paste: aString
-
special code, to catch exeception sent from a scrolled view,
which has a different receiver tha v
-
pasteOrReplace
-
-
redo
-
-
search
-
-
selectAll
-
-
sendToSelectedWorkspacesTextView: selector
-
-
undo
-
private
-
askForFile: question default: defaultFilename forSave: forSaveBoolean allowAppend: allowAppend thenDo: aBlock
-
ask for the name of a file, then evaluate aBlock with the entered name
and a boolean whether append was choosen
-
askForFile: question default: defaultFilename forSave: forSaveBoolean thenDo: aBlock
-
ask for the name of a file, then evaluate aBlock with the entered name
and a boolean whether append was choosen
-
askForFile: question default: defaultFilename thenDo: aBlock
-
|file doAppend|
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
askForFile: question thenDo: aBlock
-
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
askIfAnyModified: arg1 yesButton: arg2
-
raise an error: must be redefined in concrete subclass(es)
** This method must be redefined in concrete classes (subclassResponsibility) **
-
askIfModified: question yesButton: yesButtonText
-
tell user, that code has been modified - let her confirm
-
createWorkspace
-
create a view to be put into a tab
-
isModifiedWorkspace: aView
-
** This method must be redefined in concrete classes (subclassResponsibility) **
-
selectedWorkspacesTextView
-
-
setLabel: label
-
-
workspaceViewOfView: aView
-
if called during early init phase
user actions
-
hideEditToolbar
-
-
hideToolbar
-
|