Logo ROOT   6.12/07
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 #include "Rtypes.h"
32 
33 class TTimer;
34 class QApplication;
35 class QTimer;
36 
37 class TQRootApplication : public QApplication {
38 #ifndef __CINT__
39  Q_OBJECT
40 #endif
41 private:
44 protected:
45  QTimer *fQTimer; // Qt timer that poll the event loop of ROOT
46  TTimer *fRTimer; // Root timer
47 public:
48  static Bool_t fgDebug, fgWarning; // debug and warning flags
49 
50  TQRootApplication(int &argc, char **argv,int poll=0);
52  void SetDebugOn(){ fgDebug=kTRUE; }
53  void SetWarningOn(){ fgWarning=kTRUE;}
54 public slots:
55  void Execute();
56  void Quit();
57 
58 public:
59  ClassDef(TQRootApplication,1) //creates Qt environment interface with the ROOT windowing system
60 };
61 
62 #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:320
static Bool_t fgDebug
Handles synchronous and a-synchronous timer events.
Definition: TTimer.h:51
TQRootApplication(const TQRootApplication &)
TQRootApplication & operator=(const TQRootApplication &)
const Bool_t kTRUE
Definition: RtypesCore.h:87