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 //Author : Denis Bertini 01.11.2000 00017 00018 /************************************************************************** 00019 * Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI * 00020 * Planckstr. 1, 64291 Darmstadt, Germany * 00021 * All rights reserved. * 00022 * Contact: http://go4.gsi.de * 00023 * * 00024 * This software can be used under the license agreements as stated in * 00025 * Go4License.txt file which is part of the distribution. * 00026 ***************************************************************************/ 00027 00028 #ifndef QROOTAPPLICATION_H 00029 #define QROOTAPPLICATION_H 00030 00045 using namespace std; 00046 #include "qapplication.h" 00047 #include "qobject.h" 00048 #include "qtimer.h" 00049 #include "TTimer.h" 00050 00051 class QRootApplication : public QApplication { 00052 Q_OBJECT 00053 00054 protected: 00055 QTimer *timer; 00056 TTimer *rtimer; 00057 public: 00058 static bool fDebug, fWarning; 00059 public: 00060 QRootApplication(int argc, char **argv,int poll=0); 00061 ~QRootApplication(); 00062 00063 public slots: 00064 00065 void execute(); 00066 void quit(); 00067 00068 public: 00069 void setDebugOn(){ fDebug=true; } 00070 void setWarningOn(){ fWarning=true;} 00071 void setErrorHandler(); 00072 00073 // install an eventFilter // M.Al-Turany 00074 // virtual bool eventFilter(QObject *o, QEvent *e); 00075 00076 }; 00077 00078 #endif 00079 00080 //----------------------------END OF GO4 SOURCE FILE ---------------------