ROOT logo
// @(#)root/qt:$Id: TQtApplication.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Valeri Fine   21/01/2002

/*************************************************************************
 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
 * Copyright (C) 2002 by Valeri Fine.                                    *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TQtApplication
#define ROOT_TQtApplication

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TQtApplication -  Instantiate the Qt system within ROOT environment  //
//                                                                      //
// Instantiate the Qt package by creating Qapplication object if any   //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include "TQtRConfig.h"
#include "Rtypes.h"

class TQtApplicationThread;

class TQtApplication { // : public TApplicationImp
  
private:
  friend class TQtApplicationThread;
  TQtApplicationThread  *fGUIThread;

  void    CreateGUIThread(int &argc, char **argv);

  static void CreateQApplication(int &argc, char ** argv, bool GUIenabled);

  void operator=(const TQtApplication&);
  TQtApplication(const TQtApplication&);

protected:
   static TQtApplication *fgQtApplication;

public:

   TQtApplication() {};
   TQtApplication(const char *appClassName, int &argc, char **argv);
   virtual ~TQtApplication();
   static bool Terminate();

   static TQtApplication *GetQtApplication();
   static bool IsThisGuiThread();
   static Int_t QtVersion();
   ClassDef(TQtApplication,0) // Instantiate the Qt system within ROOT environment

};
#endif
 TQtApplication.h:1
 TQtApplication.h:2
 TQtApplication.h:3
 TQtApplication.h:4
 TQtApplication.h:5
 TQtApplication.h:6
 TQtApplication.h:7
 TQtApplication.h:8
 TQtApplication.h:9
 TQtApplication.h:10
 TQtApplication.h:11
 TQtApplication.h:12
 TQtApplication.h:13
 TQtApplication.h:14
 TQtApplication.h:15
 TQtApplication.h:16
 TQtApplication.h:17
 TQtApplication.h:18
 TQtApplication.h:19
 TQtApplication.h:20
 TQtApplication.h:21
 TQtApplication.h:22
 TQtApplication.h:23
 TQtApplication.h:24
 TQtApplication.h:25
 TQtApplication.h:26
 TQtApplication.h:27
 TQtApplication.h:28
 TQtApplication.h:29
 TQtApplication.h:30
 TQtApplication.h:31
 TQtApplication.h:32
 TQtApplication.h:33
 TQtApplication.h:34
 TQtApplication.h:35
 TQtApplication.h:36
 TQtApplication.h:37
 TQtApplication.h:38
 TQtApplication.h:39
 TQtApplication.h:40
 TQtApplication.h:41
 TQtApplication.h:42
 TQtApplication.h:43
 TQtApplication.h:44
 TQtApplication.h:45
 TQtApplication.h:46
 TQtApplication.h:47
 TQtApplication.h:48
 TQtApplication.h:49
 TQtApplication.h:50
 TQtApplication.h:51
 TQtApplication.h:52
 TQtApplication.h:53
 TQtApplication.h:54
 TQtApplication.h:55
 TQtApplication.h:56
 TQtApplication.h:57
 TQtApplication.h:58