eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'FileApplicationNoteBook':

Home

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

Class: FileApplicationNoteBook


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--ApplicationWithFileHistory
            |
            +--AbstractFileBrowser
               |
               +--FileApplicationNoteBook

Package:
stx:libtool
Category:
Interface-Tools-File
Version:
rev: 1.445 date: 2024/04/09 12:17:17
user: stefan
file: FileApplicationNoteBook.st directory: libtool
module: stx stc-classLibrary: libtool

Description:



copyright

COPYRIGHT (c) 2002 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.

Class protocol:

application list
o  applicationList
returns a list of all applications to start by the NoteBookApplication with
#className #type

example:
#( #'FooEditor' nil )

o  classFor: aApplicationListItem

o  defaultApplication
returns the application to be started if no itemQuery returns true or no supportedSuffix is supported

o  typeFor: aApplicationListItem

defaults
o  openAnotherApplicationOnSameItem

o  textEditorClass

interface specs
o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:FileApplicationNoteBook andSelector:#windowSpec
     FileApplicationNoteBook new openInterface:#windowSpec
     FileApplicationNoteBook open

menu specs
o  tabMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

Usage example(s):

     MenuEditor new openOnClass:FileApplicationNoteBook andSelector:#tabMenu
     (Menu new fromLiteralArrayEncoding:(FileApplicationNoteBook tabMenu)) startUp


Instance protocol:

accessing
o  listOfApplications
return the value of the instance variable 'listOfApplications' (automatically generated)

o  selectionHistoryList

o  selectionHistoryList: aCol

accessing-applications
o  getAllApplicationsByClass: aClass andType: aType
and:[appl type = aType]

o  getApplicationByType: aType

o  getIndexFor: aApplication

o  getSameApplicationsFor: anApplication

actions-app-common
o  changeItem: anItem for: anAppl
self doSelect:anAppl.

o  changeModified: aSymbol for: anAppl

o  closeSubCanvas: aApplication
"/ UPDATE THE LAST SELECTION BECAUSE SEL INDEX IS DECREMENTED FOR HIGHER INDEXES

o  destroyTab: tabIndex

o  doCloseAllApplications
must enumerate a copy here

o  doCloseAllOtherApplications
(Dialog confirm:(resources string:'Really close all other Tabs ?')) ifFalse:[^ self].

o  doCloseApplication

o  doRenameTab

o  doSelectInList

o  openApplByFileItem: anItem
open a new embedded app, or a standard system command (for example pdf reader).
return the new app or nil, if none was embedded.
Uses the default class list for open of applications by item

o  openApplicationClass: aClass withItem: anItem withType: aType
Modified (format): / 12-01-2012 / 01:10:50 / cg

o  openApplicationClass: aClass withItem: anItem withType: aType checkExisting: checkExisting
Modified (format): / 29-11-2011 / 19:06:27 / cg

o  openApplicationClass: aClass withItem: anItemOrNil withType: aType checkExisting: checkExisting preSetItem: aBlock
do not open unreadable items

o  openDefaultApplicationByItem: anItem
open the default application if no application for item is available or the start of the
available application failed

o  setSameFileIndexFor: anAppl
Modified (format): / 24-07-2011 / 08:22:03 / cg

o  startApplication: anApplication
start a subapplication in the lower panel (terminal, finder, archive viewer or text editor)

o  tabStringAdd: aString for: anAppl

o  tabStringChangeTo: aString for: anAppl

o  tryToGetExistingApplFor: aClass withItem: anItem withType: aType preSetItem: aBlock
sameAppls := sameAppl first.

actions-app-spec
o  addTerminalIn: aDirectory

o  changeDirectoryDescription

o  closeAllApplicationsEnabled

o  closeDirectoryDescription
Modified (format): / 12-11-2017 / 11:18:40 / cg

o  doAddArchiverOn: aFilename

o  newTextEditor
Modified (format): / 12-11-2017 / 11:18:35 / cg

o  openArchiveViewApplication: anItem
Modified (format): / 12-11-2017 / 11:18:31 / cg

o  openCommandResultApplication
Modified (format): / 12-11-2017 / 11:18:19 / cg

o  openCompareDirectory: directory1 with: directory2

o  openDirectoryDescription

o  openNewTextEditorOn: anItem
Modified (format): / 12-11-2017 / 11:18:11 / cg

o  openSearchFileOn: anItem
Modified (format): / 12-01-2012 / 01:02:30 / cg

o  openTerminalApplication: anItem

o  openTextEditor

o  openTextEditorForFile: aFilename

o  openTextEditorOn: anItem

o  openTextEditorOn: anItem type: aDirDescrOrFile

o  openTextEditorWithHexPresentationOn: anItem
Modified (format): / 12-11-2017 / 11:18:06 / cg

applicationlist access
o  applicationList

aspects
o  canvasHolder

o  compressTabsOnSaveHolder
holds on the boolean which controls
if multiple spaces at the begin of each line should be compressed to tabs when writing?

o  cursorColLabelHolder

o  cursorLineAndColumnLabelHolder

o  cursorLineLabelHolder

o  fileEncodingHolder

o  inputTabColumnConversionHolder

o  lineEndConventionHolder

o  lockFileEncodingHolder

o  modeLabelHolder

o  modeLabelMenu

o  modeLabelMenuHolder

o  privateTabList

o  selectedEditorPage

o  tabList

o  tabList: aValue

change & update
o  canvasChanged
invoked when the contentsView has been changed

o  update: something with: aParameter from: changedObject
don't want the tabs with one application - that's why i have to change my tablist

o  viewDirectoryDescriptionChanged

menu & actions
o  destroyTabAt: idx

o  tabMenuAt: aTab

queries
o  getSameFilesModifiedFor: aAppl

selection
o  currentTabMenusApplication
only valid within menu processing

o  doSelect: anAppl
self gotoFile:fileName.

o  selectedApplication

startup & release
o  closeRequest
asks for permission before closing

o  makeDependent

o  postOpenAsSubcanvasWith: aBuilder
(comment from inherited method)
this is sent after the application's window is opened inside another application.
Can be redefined in subclasses for actions after showing the canvas view.

o  postOpenWith: aBuilder
only invoked if the application not started from a master

o  preBuildWith: aBuilder
(comment from inherited method)
this is sent before 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, preBuildAsSubcanvasWith is invoked.
Can be redefined in subclasses.

o  tryCloseApplications


Private classes:

    ArchiveViewApplication
    CommandResult
    DigitalNotepadFileViewApplication
    HtmlViewApplication
    ImageViewApplication
    MarkdownViewApplication
    Terminal
    TextEditor
    XMLViewApplication
    XViewApplication


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 14:31:15 GMT