eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::Inspector2':

Home

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

Class: Inspector2 (in Tools)


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--Tools::Inspector2

Package:
stx:libtool
Category:
Interface-Inspector2
Version:
rev: 1.92 date: 2018/03/27 15:14:06
user: cg
file: Tools__Inspector2.st directory: libtool
module: stx stc-classLibrary: libtool
Author:
Jan Vrani

Description:


an application for a multitab inspector
extendable by the inspected object itself, by providing additional
tabs via the inspector2XXX methods

Interface for objects:
    redefine 
        inspectorExtraAttributes (to get additional pseudo-attributes into the left field list)
        inspectorExtraTabs (to get additional tabs into the tab list)
        inspectorExtraMenuOperations(to get additional operations menu items into the operations menu)
    
the operations menu is invisible, if there are no operations.



Class protocol:

help specs
o  helpPairs
This resource specification was automatically generated
by the UIHelpTool of ST/X.

o  helpSpec
This resource specification was automatically generated
by the UIHelpTool of ST/X.

image specs
o  settingsIcon

o  settingsIcon1
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self settingsIcon1 inspect
     ImageEditor openOnClass:self andSelector:#settingsIcon1
     Icon flushCachedIcons

o  settingsIcon2
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self settingsIcon2 inspect
     ImageEditor openOnClass:self andSelector:#settingsIcon2
     Icon flushCachedIcons

o  settingsIcon3
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self settingsIcon3 inspect
     ImageEditor openOnClass:self andSelector:#settingsIcon3
     Icon flushCachedIcons

o  settingsIcon4
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self settingsIcon4 inspect
     ImageEditor openOnClass:self andSelector:#settingsIcon4
     Icon flushCachedIcons

o  settingsIcon5

o  settingsIcon6
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self settingsIcon6 inspect
     ImageEditor openOnClass:self andSelector:#settingsIcon6
     Icon flushCachedIcons

initialization
o  initialize
Invoked at system start or when the class is dynamically loaded.

interface specs
o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.
usage example(s):
     UIPainter new openOnClass:Tools::Inspector2 andSelector:#windowSpec
     Tools::Inspector2 new openInterface:#windowSpec
     Tools::Inspector2 open

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

o  helpMenu
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:Tools::Inspector2 andSelector:#mainMenu
     (Menu new fromLiteralArrayEncoding:(Tools::Inspector2 mainMenu)) startUp

o  settingsMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:Tools::Inspector2 andSelector:#settingsMenu
     (Menu new fromLiteralArrayEncoding:(Tools::Inspector2 settingsMenu)) startUp

o  toolbarMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:Tools::Inspector2 andSelector:#toolbarMenu
     (Menu new fromLiteralArrayEncoding:(Tools::Inspector2 toolbarMenu)) startUp

o  viewMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:Tools::Inspector2 andSelector:#viewMenu
     (Menu new fromLiteralArrayEncoding:(Tools::Inspector2 viewMenu)) startUp

startup
o  openOn: anObject
(comment from inherited method)
send an open message to the argument, anApplicationModel.
I don't really understand what this method is useful for ...

o  openOn: anObject title: aString
self openOn:(Array new:3)
self openOn:(Array new:3) title:'my array'

testing
o  testSimpleShow
ins inspectItem: (ins history at: 3). "/ Rollback history, zustanou jen prvni 3


Instance protocol:

accessing
o  backButtonEnabled: value

o  currentObject

o  currentState

o  forwardButtonEnabled: value

o  navigationState

o  navigationState: historyItem
subjectChannel:

aspects
o  backButtonEnabledHolder
return/create the 'backButtonEnabledHolder' value holder (automatically generated)

o  browseButtonEnabledHolder

o  colorProfileHolder
return/create the 'colorProfileHolder' value holder (automatically generated)

o  currentObjectHolder

o  currentObjectIsFilename

o  currentObjectIsImage

o  evaluationLanguageComboVisibleHolder
Do not show language combo when language is Smalltalk.

o  evaluationLanguageHolder

o  evaluationLanguageList

o  expandArraysInAllList

o  expandArraysInAllList: aBoolean

o  forwardButtonEnabledHolder
return/create the 'backButtonEnabledHolder' value holder (automatically generated)

o  navigationHistoryHolder
return/create the 'currentItemHolder' value holder (automatically generated)

o  navigationStateAspect

o  operationsMenuEnabledHolder

o  showAlphabeticalHolder

o  sortOrderHolder

o  suppressPseudoSlotsHolder

o  tabLabelsAspect

o  tabSelectionIndexAspect

o  tabViewAspect

o  toolbarBackgroundHolder
return/create the 'toolbarBackgroundHolder' value holder (automatically generated)

o  windowTitleAspect

change & update
o  update: something with: aParameter from: changedObject
Invoked when an object that I depend upon sends a change notification.

o  updateEvaluationLanguage
Remember user's selection for future...

o  updateEvaluationLanguageList

o  updateOperationsMenu

configuration
o  hideHashes: aBoolean
compatibiliy with InspectorView - must be implemented

o  hideMessages: aBoolean
compatibiliy with InspectorView - must be implemented

o  maxItemsInHistory: aNumber

o  suppressPseudoSlots: aBoolean
compatibiliy with InspectorView - must be implemented

menu
o  backButtonMenuChannel

o  forwardButtonMenuChannel

o  operationsMenu
return an inspected-object-specific operations menu

o  settingsMenu

menu actions
o  backButtonAction

o  browseClassAction
open a class browser, or try to add a tab to the previously opened class browser

o  browseFileAction
open a filebrowser on the file represented by the current object

o  changeColorAction: color

o  closeAllInspectors

o  closeAllOtherInspectors

o  deiconifyAllInspectors

o  editImageAction
open an imageEditor on the current object

o  forwardButtonAction

o  iconifyAllInspectors

o  iconifyAllOtherInspectors

o  menuSetMaxValueDisplayStringLength

o  openDocumentation

o  refreshTabs
sel := selectionIndex.

o  showAlphabeticalHolderChanged

o  suppressPseudoSlotsHolderChanged

opening
o  closeDownViews
(comment from inherited method)
close down the application's view(s)

o  inspect: anObject
Must force update - it can happen that language doesn't change (value is the same)

o  openOn: anObject

o  postBuildEvaluationLanguageCombo: aComboBoxView
aComboBoxView font: (aComboBoxView font asSize: (aComboBoxView font size * 1.5) rounded)

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.

o  updateWindowLabel
not only the label is updated;
also the current inspected object is fetched from the navigation state

private
o  navigationStateFor: anObject
and:[anObject isKindOf: current theObject class]

o  setDoItActionForLanguage: language


Private classes:

    NavigationState


ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 20 Mar 2019 01:37:00 GMT