00001 // $Id: QRootApplication.h 1196 2014-04-10 14:06:24Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 //Author : Denis Bertini 01.11.2000 00015 00016 /************************************************************************** 00017 * Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI * 00018 * Planckstr. 1, 64291 Darmstadt, Germany * 00019 * All rights reserved. * 00020 * Contact: http://go4.gsi.de * 00021 * * 00022 * This software can be used under the license agreements as stated in * 00023 * Go4License.txt file which is part of the distribution. * 00024 ***************************************************************************/ 00025 00026 #ifndef QROOTAPPLICATION_H 00027 #define QROOTAPPLICATION_H 00028 00043 #include <QApplication> 00044 00045 class QTimer; 00046 class TTimer; 00047 00048 class QRootApplication : public QApplication { 00049 Q_OBJECT 00050 00051 public: 00052 QRootApplication(int& argc, char **argv, int poll=0); 00053 virtual ~QRootApplication(); 00054 00055 void setDebugOn() { fDebug = true; } 00056 void setWarningOn() { fWarning = true; } 00057 00058 static bool fDebug; 00059 static bool fWarning; 00060 00061 static bool IsRootCanvasMenuEnabled(); 00062 00063 public slots: 00064 00065 void execute(); 00066 void quit(); 00067 00068 protected: 00069 QTimer* timer; 00070 TTimer* rtimer; 00071 00075 static bool fRootCanvasMenusEnabled; 00076 }; 00077 00078 #endif