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:



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  padding

o  paddingLeft
px

o  paddingRight
px

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

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

o  nonMultiButtonPress: btn x: x y: y
this is now called delayed for a single button press
(i.e. if there is not 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  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  invalidateDeviceRectangle: aRectangle repairNow: doRepairNow

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: line

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

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

o  redrawLinesFrom: start
cg: obsolete?

o  redrawVisibleLine: line

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



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sun, 26 May 2019 13:11:57 GMT