Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TQRootWindow Class Reference

Qt widget wrapper for ROOT TGWindow class. More...

#include <tqrootwindow.h>

List of all members.

Public Member Functions

 TQRootWindow (QWidget *parent=0, const char *name=0)
virtual ~TQRootWindow ()
TGCompositeFrame * GetRootFrame ()
int GetRootWid ()
void AddSubFrame (TGFrame *f, TGLayoutHints *l=0)
 Add root subframe into this widget.
void SetEditable (bool on=true)
 make this frame to current root master frame.

Protected Member Functions

virtual bool eventFilter (QObject *, QEvent *)
 Event filter is used to pass Qt mouse events root, after translatein them in MapQMouseEvent.
virtual void paintEvent (QPaintEvent *e)
virtual void closeEvent (QCloseEvent *e)
Event_t * MapQMouseEvent (QMouseEvent *e)
 translate Qt mouse event into root event structure.

Protected Attributes

TQRootFramefxRootwindow
 this is the pseudo root window embedded into this widget.
int fiWinid


Detailed Description

Qt widget wrapper for ROOT TGWindow class.

Author:
J.Adamczewski

Definition at line 32 of file tqrootwindow.h.


Constructor & Destructor Documentation

TQRootWindow::TQRootWindow QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 64 of file tqrootwindow.cpp.

References fiWinid, and fxRootwindow.

TQRootWindow::~TQRootWindow  )  [virtual]
 

Definition at line 218 of file tqrootwindow.cpp.

References fxRootwindow.


Member Function Documentation

TGCompositeFrame * TQRootWindow::GetRootFrame  ) 
 

Definition at line 224 of file tqrootwindow.cpp.

References fxRootwindow.

int TQRootWindow::GetRootWid  )  [inline]
 

Definition at line 40 of file tqrootwindow.h.

References fiWinid.

void TQRootWindow::AddSubFrame TGFrame *  f,
TGLayoutHints *  l = 0
 

Add root subframe into this widget.

Definition at line 86 of file tqrootwindow.cpp.

References fxRootwindow.

void TQRootWindow::SetEditable bool  on = true  ) 
 

make this frame to current root master frame.

Definition at line 98 of file tqrootwindow.cpp.

References fxRootwindow.

bool TQRootWindow::eventFilter QObject *  ,
QEvent * 
[protected, virtual]
 

Event filter is used to pass Qt mouse events root, after translatein them in MapQMouseEvent.

Note that root grabs gui buttons via x11 directly, thus this mechanism is not used for the regular root widgets!

Definition at line 180 of file tqrootwindow.cpp.

References FALSE, fxRootwindow, TQRootFrame::HandleEvent(), and MapQMouseEvent().

void TQRootWindow::paintEvent QPaintEvent *  e  )  [protected, virtual]
 

Definition at line 165 of file tqrootwindow.cpp.

References fxRootwindow.

void TQRootWindow::closeEvent QCloseEvent *  e  )  [protected, virtual]
 

Definition at line 208 of file tqrootwindow.cpp.

References fxRootwindow.

Event_t * TQRootWindow::MapQMouseEvent QMouseEvent *  e  )  [protected]
 

translate Qt mouse event into root event structure.

Definition at line 103 of file tqrootwindow.cpp.

References fiWinid.

Referenced by eventFilter().


Member Data Documentation

TQRootFrame* TQRootWindow::fxRootwindow [protected]
 

this is the pseudo root window embedded into this widget.

is used as parent for subwindows

Definition at line 63 of file tqrootwindow.h.

Referenced by AddSubFrame(), closeEvent(), eventFilter(), GetRootFrame(), paintEvent(), SetEditable(), TQRootWindow(), and ~TQRootWindow().

int TQRootWindow::fiWinid [protected]
 

Definition at line 64 of file tqrootwindow.h.

Referenced by GetRootWid(), MapQMouseEvent(), and TQRootWindow().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:01:25 2008 for Go4-v3.04-1 by  doxygen 1.4.2