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 QGO4ROOTCANVAS_H 00017 #define QGO4ROOTCANVAS_H 00018 00019 #include "tqrootcanvas.h" 00020 00021 class TPad; 00022 class TCanvas; 00023 00024 class QGo4RootCanvas : public TQRootCanvas { 00025 Q_OBJECT 00026 00027 public: 00028 00029 QGo4RootCanvas(QWidget *parent = 0, const char *name = 0 ,TCanvas *c=0); 00030 virtual ~QGo4RootCanvas(); 00031 00032 bool showEventStatus() const; 00033 00034 signals: 00035 void CanvasDropEvent(QDropEvent*, TPad*); 00036 void CanvasStatusEvent(const char*); 00037 void DoCanvasResize(); 00038 void CanvasLeaveEvent(); 00039 00040 public slots: 00041 void setShowEventStatus(bool s); 00042 00043 protected: 00044 00045 virtual void performResize(); 00046 00047 virtual void dropEvent(QDropEvent* event); 00048 virtual void dragEnterEvent(QDragEnterEvent *e); 00049 virtual void mouseMoveEvent(QMouseEvent *e); 00050 00051 virtual void leaveEvent(QEvent *); 00052 00053 private: 00054 bool fxShowEventStatus; 00055 }; 00056 00057 #endif //TGO4QROOTCANVAS_H 00058 00059 //----------------------------END OF GO4 SOURCE FILE ---------------------