Logo ROOT   6.16/01
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
28class TTimer;
29
30class TQRootApplication : public QApplication {
31#ifndef __CINT__
32 Q_OBJECT
33#endif
34private:
37protected:
38 QTimer *fQTimer; // Qt timer that poll the event loop of ROOT
39 TTimer *fRTimer; // Root timer
40public:
41 static Bool_t fgDebug, fgWarning; // debug and warning flags
42
43 TQRootApplication(int &myargc, char **myargv, int poll = 0);
47public slots:
48 void Execute();
49 void Quit();
50
51public:
52 ClassDef(TQRootApplication,1) //creates Qt environment interface with the ROOT windowing system
53};
54
55#endif
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kTRUE
Definition: RtypesCore.h:87
#define ClassDef(name, id)
Definition: Rtypes.h:324
void Quit()
Set a Qt-Specific error handler.
TQRootApplication(const TQRootApplication &)
static Bool_t fgWarning
static Bool_t fgDebug
TQRootApplication & operator=(const TQRootApplication &)
void Execute()
Call the inner loop of ROOT.
Handles synchronous and a-synchronous timer events.
Definition: TTimer.h:51