28#include <Inventor/Qt/OivQtCompat.h> 
   29#include <Inventor/SbLinear.h> 
   30#include <Inventor/events/SoEvent.h> 
   35#include <QApplication> 
   37#include <Inventor/Qt/SoQtDef.h> 
   38#include <Inventor/Qt/SoQtComponent.h> 
   44#define   ButtonPressMask   0x01 
   45#define   ButtonReleaseMask 0x02 
   46#define   PointerMotionMask 0x04 
   47#define   ButtonMotionMask  0x08 
   48#define   KeyPressMask      0x10 
   49#define   KeyReleaseMask    0x20 
   50#define   EnterWindowMask   0x40 
   51#define   LeaveWindowMask   0x80 
   52#elif defined __APPLE__ 
   53#define   ButtonPressMask   0x01 
   54#define   ButtonReleaseMask 0x02 
   55#define   PointerMotionMask 0x04 
   56#define   ButtonMotionMask  0x08 
   57#define   KeyPressMask      0x10 
   58#define   KeyReleaseMask    0x20 
   59#define   EnterWindowMask   0x40 
   60#define   LeaveWindowMask   0x80 
   63#define KeyPressMask            (1L<<0) 
   64#define KeyReleaseMask          (1L<<1) 
   65#define ButtonPressMask         (1L<<2) 
   66#define ButtonReleaseMask       (1L<<3) 
   67#define EnterWindowMask         (1L<<4) 
   68#define LeaveWindowMask         (1L<<5) 
   69#define PointerMotionMask       (1L<<6) 
   70#define PointerMotionHintMask   (1L<<7) 
   71#define Button1MotionMask       (1L<<8) 
   72#define Button2MotionMask       (1L<<9) 
   73#define Button3MotionMask       (1L<<10) 
   74#define Button4MotionMask       (1L<<11) 
   75#define Button5MotionMask       (1L<<12) 
   76#define ButtonMotionMask        (1L<<13) 
  112  virtual void enable(QWidget *w, XtEventHandler f, XtPointer data, 
void* unused=NULL) = 0;
 
  117  virtual void disable(QWidget *w, XtEventHandler f, XtPointer data) = 0;
 
  152   void setEventPosition(
SoEvent *event, 
float x, 
float y) 
const;
 
  156  QWidget *deviceWidget;
 
 
Base class for all events.
 
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a>  Abstract base cl...
 
const SbVec2s & getWindowSize() const
Gets the size of the window, in pixels, this device is registered for.
 
virtual void disable(QWidget *w, XtEventHandler f, XtPointer data)=0
Disables the device for the passed widget.
 
virtual void enable(QWidget *w, XtEventHandler f, XtPointer data, void *unused=NULL)=0
Enables the device for the passed widget.
 
void setWindowSize(const SbVec2s &s)
Sets the size of the window this device is registered for.
 
virtual const SoEvent * translateEvent(QEvent *event)=0
Attempts to convert the passed event into an SoEvent.