Logo ROOT   6.14/05
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 #include "Rtypes.h"
26 #include "TQtGSIIncludes.h"
27 
28 class TTimer;
29 
30 class TQRootApplication : public QApplication {
31 #ifndef __CINT__
32  Q_OBJECT
33 #endif
34 private:
37 protected:
38  QTimer *fQTimer; // Qt timer that poll the event loop of ROOT
39  TTimer *fRTimer; // Root timer
40 public:
41  static Bool_t fgDebug, fgWarning; // debug and warning flags
42 
43  TQRootApplication(int &myargc, char **myargv, int poll = 0);
45  void SetDebugOn(){ fgDebug=kTRUE; }
46  void SetWarningOn(){ fgWarning=kTRUE;}
47 public slots:
48  void Execute();
49  void Quit();
50 
51 public:
52  ClassDef(TQRootApplication,1) //creates Qt environment interface with the ROOT windowing system
53 };
54 
55 #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