GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
QRootApplication.h
Go to the documentation of this file.
1// $Id$
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
42
43#include <QApplication>
44
45class QTimer;
46
47class 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{nullptr};
69
74};
75
76#endif
static bool IsRootCanvasMenuEnabled()
QRootApplication(int &argc, char **argv, int poll=0)
static bool fRootCanvasMenusEnabled
Variable defines if menu methods, which creating new canvas, are enabled.