|
Class: MultiViewToolApplication
Object
|
+--Model
|
+--ApplicationModel
|
+--ToolApplicationModel
|
+--MultiViewToolApplication
|
+--TerminalApplication
|
+--WorkspaceApplication
- Package:
- stx:libtool
- Category:
- Interface-Smalltalk
- Version:
- rev:
1.61
date: 2019/03/01 15:01:38
- user: cg
- file: MultiViewToolApplication.st directory: libtool
- module: stx stc-classLibrary: libtool
- Author:
- Claus Gittinger
Common code for multiView applications (Workspace, Terminal app and maybe more later)
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:WorkspaceApplication andSelector:#tabMenu
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication 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
|
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
-
-
selectedWorkspaceApplication
-
Return an aoplication of selected 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
-
-
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:
-
windowLabelPrefix
-
-
workspaceSelectionChanged
-
self selected
defaults
-
defaultFileNameForLoad
-
-
defaultFileNameForSave
-
-
defaultFileNameForSaveAll
-
-
defaultPatternLoad
-
initialization
-
hideToolBarButtonCreated: aButton
-
aButton passiveLevel:1.
-
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 that 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
-
-
addWindow: aWindow named: name tabIcon: iconOrNil asFirst: asFirst
-
first - add a name for the first tab
-
addWorkspace
-
-
destroyTab: tabIndex
-
-
doIt
-
-
loadFile: aFileName
-
-
loadFile: aFileName encoding: encodingSymbolOrNil
-
-
loadFile: aFileName encoding: encodingSymbolOrNil label: label
-
-
loadFile: aFileName label: lbl
-
-
menuLoad
-
-
menuPrint
-
-
menuSaveAllAs
-
-
menuSaveAs
-
ws defaultFileNameForFileDialog:file asFilename baseName.
-
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
-
redo
-
-
search
-
-
selectAll
-
-
undo
-
private
-
askForFile: question default: defaultFilename thenDo: aBlock
-
|file doAppend|
-
askForFile: question thenDo: aBlock
-
-
askIfAnyModified: arg1 yesButton: arg2
-
raise an error: must be redefined in concrete subclass(es)
** This method raises an error - it must be redefined in concrete classes **
-
askIfModified: question yesButton: yesButtonText
-
tell user, that code has been modified - let her confirm
-
createWorkspace
-
-
isModifiedWorkspace: aView
-
-
selectedWorkspacesTextView
-
-
setLabel: label
-
-
workspaceViewOfView: aView
-
user actions
-
hideEditToolbar
-
-
hideToolbar
-
|