ROOT » GRAF2D » QT » TQtClientFilter

class TQtClientFilter: public QObject


 QtClientFilter provides QOject event filter to map Qt and  ROOT events
   (see: http://doc.trolltech.com/4.3/qobject.html#installEventFilter )

Function Members (Methods)

public:
virtual~TQtClientFilter()
voidAppendButtonGrab(TQtClientWidget*)
boolQObject::blockSignals(bool b)
const QObjectList&QObject::children() const
static TClass*Class()
boolQObject::connect(const QObject* sender, const char* signal, const char* member, Qt::ConnectionType type = Qt::AutoConnection) const
static boolQObject::connect(const QObject* sender, const char* signal, const QObject* receiver, const char* member, Qt::ConnectionType = Qt::AutoConnection)
static boolQObject::connect(const QObject* sender, const QMetaMethod& signal, const QObject* receiver, const QMetaMethod& method, Qt::ConnectionType type = Qt::AutoConnection)
voidQObject::deleteLater()
boolQObject::disconnect(const QObject* receiver, const char* member = 0)
boolQObject::disconnect(const char* signal = 0, const QObject* receiver = 0, const char* member = 0)
static boolQObject::disconnect(const QObject* sender, const char* signal, const QObject* receiver, const char* member)
static boolQObject::disconnect(const QObject* sender, const QMetaMethod& signal, const QObject* receiver, const QMetaMethod& member)
voidQObject::dumpObjectInfo()
voidQObject::dumpObjectTree()
QList<QByteArray>QObject::dynamicPropertyNames() const
virtual boolQObject::event(QEvent*)
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)
boolQObject::inherits(const char* classname) const
voidQObject::installEventFilter(QObject*)
virtual TClass*IsA() const
boolQObject::isWidgetType() const
voidQObject::killTimer(int id)
virtual const QMetaObject*metaObject() const
voidQObject::moveToThread(QThread* thread)
QStringQObject::objectName() const
QObject*QObject::parent() const
static TQtPointerGrabber*PointerGrabber()
QVariantQObject::property(const char* name) const
virtual intqt_metacall(QMetaObject::Call, int, void**)
virtual void*qt_metacast(const char*)
static uintQObject::registerUserData()
voidRemoveButtonGrab(QObject*)
voidQObject::removeEventFilter(QObject*)
static voidSetButtonGrabber(TQtClientWidget* grabber)
voidQObject::setObjectName(const QString& name)
voidQObject::setParent(QObject*)
boolQObject::setProperty(const char* name, const QVariant& value)
voidQObject::setUserData(uint id, QObjectUserData* data)
virtual voidShowMembers(TMemberInspector& insp) const
boolQObject::signalsBlocked() const
intQObject::startTimer(int interval)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
QThread*QObject::thread() const
TQtClientFilter()
static QStringtr(const char* s, const char* c = 0)
static QStringtr(const char* s, const char* c, int n)
static QStringtrUtf8(const char* s, const char* c = 0)
static QStringtrUtf8(const char* s, const char* c, int n)
QObjectUserData*QObject::userData(uint id) const
protected:
voidAddKeyEvent(const QKeyEvent& event, TQtClientWidget* widget)
virtual voidQObject::childEvent(QChildEvent*)
virtual voidQObject::connectNotify(const char* signal)
virtual voidQObject::customEvent(QEvent*)
voidQObject::destroyed(QObject* = 0)
virtual voidQObject::disconnectNotify(const char* signal)
virtual booleventFilter(QObject* o, QEvent* e)
static Bool_tIsGrabSelected(UInt_t selectEventMask)
TQtEventQueue*Queue()
intQObject::receivers(const char* signal) const
voidRestoreLostGrabbing(Event_t& event)
static Bool_tSelectGrab(Event_t& event, UInt_t selectEventMask, QMouseEvent& me)
QObject*QObject::sender() const
intQObject::senderSignalIndex() const
voidSetKeyGrabber(TQtClientWidget* grabber)
virtual voidQObject::timerEvent(QTimerEvent*)
voidUnSetKeyGrabber(TQtClientWidget* grabber)
private:
voidoperator=(const TQtClientFilter&)
static voidqt_static_metacall(QObject*, QMetaObject::Call, int, void**)
TQtClientFilter(const TQtClientFilter&)

Data Members

public:
static const QMetaObjectstaticMetaObject
static const QMetaObjectQObject::staticMetaObject
protected:
QScopedPointer<QObjectData>QObject::d_ptr
QList<TQtClientWidget*>fButtonGrabList
UInt_tfInputEventMask
TQtClientWidget*fKeyGrabber
TQtNextEventMessage*fNotifyClient
TQtEventQueue*fRootEventQueue
static TQtClientWidget*fgActiveGrabber
static TQtClientWidget*fgButtonGrabber
static QCursor*fgGrabPointerCursor
static UInt_tfgGrabPointerEventMask
static Bool_tfgGrabPointerOwner
static TQtPointerGrabber*fgGrabber
static TQtClientWidget*fgPointerGrabber
static const QMetaObjectQObject::staticQtMetaObject
private:
static const QMetaObjectExtraDatastaticMetaObjectExtraData

Class Charts

Inheritance Chart:
QObject
TQtClientFilter

Function documentation

Bool_t IsGrabSelected(UInt_t selectEventMask)
 return the selection by "grabButton" / "grabPointer"
~TQtClientFilter()
void AddKeyEvent(const QKeyEvent& 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, QMouseEvent& 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
TQtPointerGrabber * PointerGrabber()
{ return fgGrabber; }
TQtClientWidget * GetPointerGrabber()
{ return fgPointerGrabber; }
TQtClientWidget * GetButtonGrabber()
{ return fgButtonGrabber; }
void SetButtonGrabber(TQtClientWidget* grabber)
{ fgButtonGrabber = grabber; }
void AppendButtonGrab(TQtClientWidget* )
{ fButtonGrabList.append(widget); }
void RemoveButtonGrab(QObject* )
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)
TQtClientFilter()
{;}