|
Class: GutterView (private in CodeView2
This class is only visible from within
CodeView2.
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--Tools::CodeView2::GutterView
- Package:
- stx:libtool
- Category:
- Interface-CodeView
- Owner:
- Tools::CodeView2
- Author:
- stefan
documentation to be added.
[instance variables:]
[class variables:]
defaults
-
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.
accessing
-
compareAction
-
-
compareAction: something
-
-
menuHolder: aValueThing
-
-
setTextView: aTextView
-
self backgroundPaint: textView backgroundPaint darkened lighter.
-
setTextViewScroller: aScr
-
-
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
-
acceptButtonBottom
-
-
acceptCancelRight
-
-
cancelButtonBottom
-
-
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.
-
padding
-
-
paddingLeft
-
px
-
paddingRight
-
px
-
usedWidthForAcceptCancel
-
actions
-
accept
-
(comment from inherited method)
accept the current contents by executing the accept-action and/or changeMessage.
-
cancel
-
-
compare
-
diff against original version
-
inspectView
-
-
middleButtonMenu
-
(comment from inherited method)
return the menu associated with the middle mouse button.
Here, return a hooked on menu, but usually redefined to provide a widget-specific
menu.
aspects
-
currentBlockNodeHolder
-
return/create the 'currentBlockNodeHolder' value holder (automatically generated)
-
currentBlockNodeHolder: something
-
set the 'currentBlockNodeHolder' value holder (automatically generated)
change & update
-
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) **
-
adjustSizeForLongestLineNumber
-
recompute the required width (longest linenumber present, not shown)
-
update: something with: aParameter from: changedObject
-
false
event handling
-
buttonMultiPress: btn x: x y: y
-
extraSafeArea
-
buttonPress: btn x: x y: y
-
(comment from inherited method)
button was pressed - check my components for a hit.
-
mouseWheelMotion: buttonState x: x y: y amount: amount deltaTime: dTime
-
forward to my text view
-
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)
-
sizeChanged: how from: oldExtentOrNil
-
my view has changed the size (not the contents)
help
-
helpTextAt: aPointOrNil
-
which service has an annotation for that line
initialize & release
-
initStyle
-
(comment from inherited method)
this method sets up all style dependent things.
If redefined, make sure that super initStyle is sent
-
initialize
-
16
-
release
-
(comment from inherited method)
remove all dependencies from the receiver
-
setCodeView: aCodeView2
-
codeView currentBlockNodeHolder addDependent: self. - not needed; currentBlockNodeHolder: does it
queries
-
displayedString: lineNr
-
get text to display in gutter for specified list line number
-
lineColorForLine: lineNr
-
return special color for given line if required, nil otherwise
-
lineDisplayable: lineNr
-
true if this list line can be displayed
-
lineFontForLine: lineNr
-
return special font for given line if required, nil otherwise
-
wantsFocusWithButtonPress
-
-
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
-
invalidateAcceptCancelBar
-
-
invalidateLines
-
+ 1
-
redrawAcceptCancelBarX: x y: y width: w height: h
-
-
redrawBackgroundX: x y: y width: w height: h
-
redraws gutter background
-
redrawLine: lineNr
-
-
redrawLine: lineNr cleared: cleared
-
redraws specified line. Returns width of drawn object. Color of drawn objects should be taken from lineFont, lineColor
-
redrawLine: lineNr cleared: cleared drawServices: drawServices
-
redraws specified line. Returns width of drawn object.
Color of drawn objects should be taken from lineFont, lineColor
-
redrawLinesFrom: startLineNr
-
cg: obsolete?
-
redrawVisibleLine: lineNr
-
-
redrawX: x y: y width: w height: h
-
textview may be nil, if Gutter is shown in the UIPainter!
|