GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QRootApplication.h
Go to the documentation of this file.
1 // $Id: QRootApplication.h 2627 2019-10-01 08:02:45Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 //Author : Denis Bertini 01.11.2000
15 
16 /**************************************************************************
17 * Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI *
18 * Planckstr. 1, 64291 Darmstadt, Germany *
19 * All rights reserved. *
20 * Contact: http://go4.gsi.de *
21 * *
22 * This software can be used under the license agreements as stated in *
23 * Go4License.txt file which is part of the distribution. *
24 ***************************************************************************/
25 
26 #ifndef QROOTAPPLICATION_H
27 #define QROOTAPPLICATION_H
28 
43 #include <QApplication>
44 
45 class QTimer;
46 
47 class QRootApplication : public QApplication {
48  Q_OBJECT
49 
50  public:
51  QRootApplication(int& argc, char **argv, int poll=0);
52  virtual ~QRootApplication();
53 
54  void setDebugOn() { fDebug = true; }
55  void setWarningOn() { fWarning = true; }
56 
57  static bool fDebug;
58  static bool fWarning;
59 
60  static bool IsRootCanvasMenuEnabled();
61 
62  public slots:
63 
64  void execute();
65  void quit();
66 
67  protected:
68  QTimer* timer;
69 
74 };
75 
76 #endif
static bool fDebug
QRootApplication(int &argc, char **argv, int poll=0)
static bool IsRootCanvasMenuEnabled()
static bool fWarning
static bool fRootCanvasMenusEnabled