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

tqrootwindow.h

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE 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 #include "qwidget.h"
00020 
00021 class QMouseEvent;
00022 class QPaintEvent;
00023 class TGLayoutHints;
00024 class Event_t;
00025 class TQRootFrame;
00026 class TGFrame;
00027 class TGCompositeFrame;
00028 
00032 class TQRootWindow : public QWidget {
00033    Q_OBJECT
00034 
00035    public:
00036       TQRootWindow( QWidget *parent = 0, const char *name = 0);
00037       virtual ~TQRootWindow();
00038 
00039       TGCompositeFrame* GetRootFrame();
00040       int GetRootWid() { return fiWinid;}
00041 
00043       void AddSubFrame(TGFrame* f, TGLayoutHints* l=0);
00044 
00046       void SetEditable(bool on=true);
00047 
00048    protected:
00049 
00054       virtual bool eventFilter( QObject *, QEvent * );
00055       virtual void paintEvent( QPaintEvent *e );
00056       virtual void closeEvent( QCloseEvent * e);
00057 
00059       Event_t* MapQMouseEvent(QMouseEvent *e);
00060 
00063       TQRootFrame *fxRootwindow;
00064       int fiWinid;
00065 };
00066 
00067 #endif
00068 
00069 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:34 2008 for Go4-v3.04-1 by  doxygen 1.4.2