eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'MultiViewToolApplication':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: MultiViewToolApplication


Inheritance:

   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

Description:


Common code for multiView applications (Workspace, Terminal app and maybe more later)


Class protocol:

defaults
o  defaultEditToolbarVisible

o  defaultInfoVisible

o  defaultToolbarVisible

help specs
o  helpSpec
(comment from inherited method)
This resource specification was automatically generated
by the UIHelpTool of ST/X.

image specs
o  hideToolBarIcon

interface specs
o  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
o  editToolBarMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

o  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

o  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

o  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

o  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
o  isAbstract

o  isVisualStartable
return true, if this application can be started via #open.
(to allow start of a change browser via double-click in the browser)


Instance protocol:

accessing
o  selectedWorkspace

o  selectedWorkspaceApplication
Return an aoplication of selected workspace or nil,
is currently selected workspace is not an embedded
ApplicationModel

o  tabMenuAt: index
for now: if that buffer is modified, do not allow removing.

o  workspaceHolder

o  workspaces

aspects
o  editToolBarVisibleHolder

o  hasEditToolBar

o  hasInfoLabel

o  infoVisibleHolder

o  selectedWorkspaceIndexHolder

o  tabList

o  toolBarVisibleHolder

aspects-queries
o  canRemoveAllWorkspacesExcept: idx

o  canRemoveWorkspace

o  canRemoveWorkspace: idx
and:[ (self workspacesTextViewAt:(self selectedWorkspaceIndexHolder value))

o  hasMultipleBuffersHolder

o  hasSelectionInActiveWorkspace

o  hasSelectionInActiveWorkspaceAndEditorIsNotReadonly

o  hasTextInActiveWorkspace

change & update
o  infoVisibilityChanged
#CodeView.

o  toolBarVisibilityChanged
force it to recompute its dimension

o  update: something with: aParameter from: changedObject
(comment from inherited method)
dependent is notified of some change -
Default is to try update:with:

o  windowLabelPrefix

o  workspaceSelectionChanged
self selected

defaults
o  defaultFileNameForLoad

o  defaultFileNameForSave

o  defaultFileNameForSaveAll

o  defaultPatternLoad

initialization
o  hideToolBarButtonCreated: aButton
aButton passiveLevel:1.

o  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
o  addWindow: aWindow named: name

o  addWindow: aWindow named: name asFirst: asFirst

o  addWindow: aWindow named: name tabIcon: iconOrNil

o  addWindow: aWindow named: name tabIcon: iconOrNil asFirst: asFirst
first - add a name for the first tab

o  addWorkspace

o  destroyTab: tabIndex

o  doIt

o  loadFile: aFileName

o  loadFile: aFileName encoding: encodingSymbolOrNil

o  loadFile: aFileName encoding: encodingSymbolOrNil label: label

o  loadFile: aFileName label: lbl

o  menuLoad

o  menuPrint

o  menuSaveAllAs

o  menuSaveAs
ws defaultFileNameForFileDialog:file asFilename baseName.

o  newWorkspace

o  openFontDialog

o  openSTXDocumentation
opens the top documentation file

o  openSettingsDialog
#('Debugger' #'AbstractSettingsApplication::DebuggerSettingsAppl' )

o  printIt

o  removeAllWorkspacesExcept: wsIndex

o  removeWorkspace

o  removeWorkspace: wsIndex
to force change (update workspaceHolder - even if same index)

o  renameWorkspace

o  renameWorkspace: wsIndex

o  renameWorkspace: wsIndex to: newName

menu-actions-editing
o  copySelection

o  cutSelection

o  paste

o  paste: aString
special code, to catch exeception sent from a scrolled view,
which has a different receiver tha v

o  redo

o  search

o  selectAll

o  undo

private
o  askForFile: question default: defaultFilename thenDo: aBlock
|file doAppend|

o  askForFile: question thenDo: aBlock

o  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 **

o  askIfModified: question yesButton: yesButtonText
tell user, that code has been modified - let her confirm

o  createWorkspace

o  isModifiedWorkspace: aView

o  selectedWorkspacesTextView

o  setLabel: label

o  workspaceViewOfView: aView

user actions
o  hideEditToolbar

o  hideToolbar



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 28 Mar 2024 18:42:50 GMT