ROOT  6.06/09
Reference Guide
TQRootApplication.h
Go to the documentation of this file.
1 // @(#)root/qtgsi:$Id$
2 // Author: Denis Bertini, M. AL-Turany 01/11/2000
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TQRootApplication
13 #define ROOT_TQRootApplication
14 
15 //////////////////////////////////////////////////////////////////////
16 //
17 // TQRootApplication
18 //
19 // This class creates Qt environment that will
20 // interface with the ROOT windowing system eventloop and eventhandlers,
21 // via a polling mechanism.
22 //
23 ///////////////////////////////////////////////////////////////////////
24 
25 #ifndef __CINT__
26 #include "qapplication.h"
27 #include "qobject.h"
28 #include "qtimer.h"
29 #endif
30 
31 #ifndef ROOT_Rtypes
32 #include "Rtypes.h"
33 #endif
34 
35 class TTimer;
36 class QApplication;
37 class QTimer;
38 
39 class TQRootApplication : public QApplication {
40 #ifndef __CINT__
41  Q_OBJECT
42 #endif
43 private:
46 protected:
47  QTimer *fQTimer; // Qt timer that poll the event loop of ROOT
48  TTimer *fRTimer; // Root timer
49 public:
50  static Bool_t fgDebug, fgWarning; // debug and warning flags
51 
52  TQRootApplication(int &argc, char **argv,int poll=0);
54  void SetDebugOn(){ fgDebug=kTRUE; }
55  void SetWarningOn(){ fgWarning=kTRUE;}
56 public slots:
57  void Execute();
58  void Quit();
59 
60 public:
61  ClassDef(TQRootApplication,1) //creates Qt environment interface with the ROOT windowing system
62 };
63 
64 #endif
void Execute()
Call the inner loop of ROOT.
void Quit()
Set a Qt-Specific error handler.
static Bool_t fgWarning
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:254
static Bool_t fgDebug
Handles synchronous and a-synchronous timer events.
Definition: TTimer.h:57
TQRootApplication(const TQRootApplication &)
TQRootApplication & operator=(const TQRootApplication &)
const Bool_t kTRUE
Definition: Rtypes.h:91