Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/qtroot/interface/tqrootwindow.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TQROOTWINDOW_H
00017 #define TQROOTWINDOW_H
00018 
00019 using namespace std;
00020 #include "qwidget.h"
00021 #include "qdragobject.h"
00022 
00023 #include "TGFrame.h"
00024 
00025 class QAction;
00026 class QMouseEvent;
00027 class QResizeEvent;
00028 class QPaintEvent;
00029 class TGLayoutHints;
00030 class Event_t;
00031 
00033 class TQRootFrame: public TGCompositeFrame {
00034    public:
00036    TQRootFrame(Window_t wid);
00037    virtual  ~TQRootFrame();
00038    virtual void CloseWindow(); 
00039    virtual Bool_t HandleEvent(Event_t *event);
00040 
00041 //ClassDef(TQRootFrame,1);   
00042 };
00043 
00044 
00045 
00046 /*
00047 *   Qt widget wrapper for ROOT TGWindow class.
00048 * @author J.Adamczewski
00049 */
00050 class TQRootWindow : public QWidget
00051 {
00052   Q_OBJECT
00053 
00054     public:
00055   TQRootWindow( QWidget *parent = 0, const char *name = 0);
00056   virtual ~TQRootWindow();
00057 
00058 
00059   TGCompositeFrame* GetRootFrame(); 
00060   int GetRootWid() { return fiWinid;}
00061 
00062 
00064   void AddSubFrame(TGFrame* f, TGLayoutHints* l=0);  
00065 
00066 
00068   void SetEditable(bool on=true);
00069 
00070  public slots:
00071 
00072 
00073  protected:
00074  
00079   virtual bool  eventFilter( QObject *, QEvent * );
00080   virtual void paintEvent( QPaintEvent *e );
00081   virtual void  closeEvent( QCloseEvent * e);
00082 
00084   Event_t* MapQMouseEvent(QMouseEvent *e);  
00085 
00088   TQRootFrame *fxRootwindow; 
00089   int fiWinid;
00090 };
00091 
00092 #endif
00093 
00094 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:56:09 2005 for Go4-v2.10-5 by doxygen1.2.15