eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::CodeView2::GutterView':

Home

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

Class: GutterView (private in CodeView2

This class is only visible from within CodeView2.

Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--Tools::CodeView2::GutterView

Package:
stx:libtool
Category:
Interface-CodeView
Owner:
Tools::CodeView2
Author:
stefan

Description:


documentation to be added.


[instance variables:]

[class variables:]


Related information:



Class protocol:

defaults
o  updateStyleCache
(comment from inherited method)
this method gets some heavily used style stuff and keeps
it in class-variables for faster access.
Subclasses should redefine this to load any cached style-values
into faster class variables as well. These should NOT do a
super updateStyleCache, since this method is called for all view-classes
anyway.


Instance protocol:

accessing
o  compareAction

o  compareAction: something

o  menuHolder: aValueThing

o  setTextView: aTextView
self backgroundPaint: textView backgroundPaint darkened lighter.

o  setTextViewScroller: aScr

o  showLineNumbers: aBoolean
can be used to turn off linenumber drawing,
in case the gutter is used with another view anf only the other features (breakpoints) are needed

accessing-dimensions
o  acceptButtonBottom

o  acceptCancelRight

o  cancelButtonBottom

o  computePreferredExtent
(comment from inherited method)
return my computed preferred extent - this is the minimum size I would like to have.
If there are any components, a rectangle enclosing them
is returned. Otherwise, the actual extent is returned.

o  padding

o  paddingLeft
px

o  paddingRight
px

o  usedWidthForAcceptCancel

actions
o  accept

o  cancel

o  compare
diff agains original version

o  inspectView

o  middleButtonMenu

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

o  currentBlockNodeHolder: something
set the 'currentBlockNodeHolder' value holder (automatically generated)

change & update
o  adjustSizeForLongestLine
recompute the required width (longest linenumber present, not shown)

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  adjustSizeForLongestLineNumber
recompute the required width (longest linenumber present, not shown)

o  update: something with: aParameter from: changedObject
false

event handling
o  buttonMultiPress: btn x: x y: y
for the embedded accept-cancel bar, if enabled

o  buttonPress: btn x: x y: y
(comment from inherited method)
button was pressed - check my components for a hit.

o  mouseWheelMotion: buttonState x: x y: y amount: amount deltaTime: dTime
forward to my text view

o  nonMultiButtonPress: btn x: x y: y
this is now called delayed for a single button press
(i.e. if there is no other click within some time)

o  sizeChanged: how
self invalidateAcceptCancelBar.

help
o  helpTextAt: aPointOrNil
which service has an annotation for that line

initialize & release
o  initStyle
(comment from inherited method)
this method sets up all style dependent things

o  initialize
16

o  release
(comment from inherited method)
remove all dependencies from the receiver

o  setCodeView: aCodeView2
codeView currentBlockNodeHolder addDependent: self. - not needed; currentBlockNodeHolder: does it

queries
o  displayedString: lineNr
get text to display in gutter for specified list line number

o  lineColorForLine: lineNr
return special color for given line if required, nil otherwise

o  lineDisplayable: lineNr
true if this list line can be displayed

o  lineFontForLine: lineNr
return special font for given line if required, nil otherwise

o  wantsFocusWithButtonPress

o  yOfTextViewLine: lineNr
defined to allow computation of a line below what is visible in
the textView (because gutter may become higher than textView, iff
the textView has a horizontal scrollbar

redrawing
o  invalidateAcceptCancelBar

o  invalidateLines
+ 1

o  redrawAcceptCancelBarX: x y: y width: w height: h

o  redrawBackgroundX: x y: y width: w height: h
redraws gutter background

o  redrawLine: lineNr

o  redrawLine: lineNr cleared: cleared
redraws specified line. Returns width of drawn object. Color of drawn objects should be taken from lineFont, lineColor

o  redrawLine: lineNr cleared: cleared drawServices: drawServices
redraws specified line. Returns width of drawn object.
Color of drawn objects should be taken from lineFont, lineColor

o  redrawLinesFrom: startLineNr
cg: obsolete?

o  redrawVisibleLine: lineNr

o  redrawX: x y: y width: w height: h
textview may be nil, if Gutter is shown in the UIPainter!



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 06 Dec 2019 08:14:45 GMT