ROOT logo
ROOT » GRAF2D » QT » TQtClientFilter

class TQtClientFilter: public QObject

 QtClientFilter provides QOject event filter to map Qt and  ROOT events
   (see: )

Function Members (Methods)

voidAppendButtonGrab(TQtClientWidget* widget)
static TClass*Class()
static TQtClientWidget*GetButtonGrabber()
static TQtClientWidget*GetPointerGrabber()
static voidGrabPointer(TQtClientWidget* grabber, UInt_t evmask, Window_t confine, QCursor* cursor, Bool_t grab = kTRUE, Bool_t owner_events = kTRUE)
virtual TClass*IsA() const
static TQtPointerGrabber*PointerGrabber()
voidRemoveButtonGrab(QObject* widget)
static voidSetButtonGrabber(TQtClientWidget* grabber)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidAddKeyEvent(const int& event, TQtClientWidget* widget)
booleventFilter(QObject* o, QEvent* e)
static Bool_tIsGrabSelected(UInt_t selectEventMask)
voidRestoreLostGrabbing(Event_t& event)
static Bool_tSelectGrab(Event_t& event, UInt_t selectEventMask, int& me)
voidSetKeyGrabber(TQtClientWidget* grabber)
voidUnSetKeyGrabber(TQtClientWidget* grabber)

Data Members

static TQtClientWidget*fgActiveGrabber
static TQtClientWidget*fgButtonGrabber
static QCursor*fgGrabPointerCursor
static UInt_tfgGrabPointerEventMask
static Bool_tfgGrabPointerOwner
static TQtPointerGrabber*fgGrabber
static TQtClientWidget*fgPointerGrabber

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Bool_t IsGrabSelected(UInt_t selectEventMask)
 return the selection by "grabButton" / "grabPointer"
void AddKeyEvent(const int& event, TQtClientWidget* widget)
 Map and and to the ROOT event queue Qt KeyBoard event mapped to the ROOT Event_t
 For "dest" widget
bool SelectGrab(Event_t& event, UInt_t selectEventMask, int& me)
 Select Event:  --  04.12.2005  --
bool eventFilter(QObject* o, QEvent* e)
 Dispatch The Qt event from event queue to Event_t structure
 Not all of the event fields are valid for each event type,
 except fType and fWindow.
void GrabPointer(TQtClientWidget* grabber, UInt_t evmask, Window_t confine, QCursor* cursor, Bool_t grab = kTRUE, Bool_t owner_events = kTRUE)
 Set the X11 style active grabbing for ROOT TG widgets
TQtClientWidget * GetPointerGrabber()
{ return fgPointerGrabber; }
TQtClientWidget * GetButtonGrabber()
{ return fgButtonGrabber; }
void SetButtonGrabber(TQtClientWidget* grabber)
{ fgButtonGrabber = grabber; }
void AppendButtonGrab(TQtClientWidget* widget)
{ fButtonGrabList.append(widget);}
void RemoveButtonGrab(QObject* widget)
TQtEventQueue * Queue()
void operator=(const TQtClientFilter& )
TQtClientFilter(const TQtClientFilter& )
void SetKeyGrabber(TQtClientWidget* grabber)
{ fKeyGrabber = grabber;}
void UnSetKeyGrabber(TQtClientWidget* grabber)
{ if (fKeyGrabber == grabber) fKeyGrabber = 0; }
void RestoreLostGrabbing(Event_t& event)