eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'EventMonitor::EventMonitorView':

Home

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

Class: EventMonitorView (private in EventMonitor

This class is only visible from within EventMonitor.

Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--EventMonitor::EventMonitorView

Package:
stx:libtool
Category:
Interface-Tools-Monitors
Owner:
EventMonitor

Description:


like xev - show events.
You can use this to check your keyboard mappings, for example.
start with:
    EventMonitorView open
and watch the output on xterm.

Caveat:
    This is one of the oldest apps inside ST/X. Don't look too deep into the code...


Class protocol:

defaults
o  defaultExtent
(comment from inherited method)
return the default extent of my instances.
The value returned here is usually ignored, and
the value from preferredExtent taken instead.

o  defaultLabel

startup
o  isVisualStartable
yes, I can be started via double click in the browser


Instance protocol:

accessing
o  outputStream: aStream

o  showButtonMotionEvents

o  showButtonMotionEvents: aBoolean

o  showButtonPressReleaseEvents

o  showButtonPressReleaseEvents: aBoolean

o  showFocusEvents

o  showFocusEvents: aBoolean

o  showKeyEvents

o  showKeyEvents: aBoolean

o  showPointerEvents

o  showPointerEvents: aBoolean

o  showTimestamp

o  showTimestamp: aBoolean

drawing
o  redraw
(comment from inherited method)
redraw myself
if there is a model, this one shall redraw itself,
otherwise we cannot do much here - has to be redefined in subclasses

o  showEventTime

events
o  buttonMotion: state x: x y: y
(comment from inherited method)
button was moved

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

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

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

o  configureX: x y: y width: newWidth height: newHeight
(comment from inherited method)
my size has changed by window manager action

o  coveredBy: coveringView
(comment from inherited method)
the receiver has been covered by another view;
we are not interested in that here (but see modalBox for more).

o  dispatchEvent: event withFocusOn: focusViewOrNil delegate: doDelegate
Timestamp now printOn:outputStream.

o  dropMessage: dropType data: dropData

o  focusIn
(comment from inherited method)
got keyboard focus - do nothing here

o  focusOut
(comment from inherited method)
lost keyboard focus (via the window manager).
Nothing done here

o  hasKeyboardFocus: aBoolen
(comment from inherited method)
notification from the windowGroup that I got the keyboardFocus.

o  key: key what: pressOrRelease x: x y: y

o  keyPress: key x: x y: y
(comment from inherited method)
a key has been pressed. If there are components,
pass it to the corresponding one.
Otherwise, forward it to the superview, if there is any.

o  keyRelease: key x: x y: y
(comment from inherited method)
a key has been released. If there are components,
pass it to the corresponding one.
Otherwise, do whatever my superclass would do.

o  mapped
(comment from inherited method)
the view has been mapped (by some outside
action - i.e. window manager de-iconified me)

o  pointerEnter: state x: x y: y
(comment from inherited method)
mouse pointer entered - request the keyboard focus (sometimes)

o  pointerLeave: state
(comment from inherited method)
mouse pointer left

o  printKeyInfoFor: key x: x y: y

o  sizeChanged: how from: oldExtentOrNil
my view has changed the size (not the contents)

o  unmapped
(comment from inherited method)
the view has been unmapped
(either by some outside action - i.e. window manager iconified me,
or due to unmapping of my parentView).

o  visibilityChange: how
(comment from inherited method)
the visibility of the view has changed (by some outside
action - i.e. window manager rearranged things).
Using this knowledge avoids useless redraw in obscured views.

initialization
o  initialize
(comment from inherited method)
must be called if redefined

realization
o  initEvents
self enableEvent:#structureNotify.



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 13:39:16 GMT