Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/qtroot/interface/tqapplication.cpp

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 //Author : Denis Bertini 01.11.2000
00017 
00018 /**************************************************************************
00019 * Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI           *
00020 *                     Planckstr. 1, 64291 Darmstadt, Germany              *
00021 *                     All rights reserved.                                *
00022 * Contact:            http://go4.gsi.de                                   *
00023 *                                                                         *
00024 * This software can be used under the license agreements as stated in     *
00025 * Go4License.txt file which is part of the distribution.                  *
00026 ***************************************************************************/
00027 
00028 
00029 
00031 //                                                                      //
00032 // TQApplication                                                        //
00033 //                                                                      //
00034 // This class create the ROOT native GUI version of the ROOT            //
00035 // application environment. This in contrast to the Win32 version.      //
00036 // Once the native widgets work on Win32 this class can be folded into  //
00037 // the TApplication class (since all graphic will go via TVirtualX).    //
00038 //                                                                      //
00040 
00041 #include "TROOT.h"
00042 #include "TApplication.h"
00043 #include "TUnixSystem.h"
00044 #include "tqapplication.h"
00045 #include "tqrootguifactory.h"
00046 #include "TGX11.h"
00047 #include "qrootapplication.h"
00048 #include <iostream.h>
00049 using namespace std;
00050 
00051 
00052 //______________________________________________________________________________
00053 TQApplication::TQApplication(const char *appClassName,
00054                              Int_t *argc, char **argv, void *options, Int_t numOptions)
00055    : TApplication(appClassName,argc,argv,options,numOptions)
00056 {
00057   //qDebug(" TQApplication:creating a qtroot environment\n");
00058   customized=kFALSE;
00059   LoadGraphicsLibs();
00060 }
00061 
00062 //______________________________________________________________________________
00063 TQApplication::~TQApplication()
00064 {
00065 
00066    // Delete ROOT application environment.
00067    qDebug("~TQApplication called \n");
00068    if(gApplication)  gApplication->Terminate(0);
00069 }
00070 
00071 
00072 void TQApplication::LoadGraphicsLibs()
00073 {
00074    //*** No Win32 Gui Factory implemented
00075    if (gROOT->IsBatch()) return;
00076    // loading Canvas and Setting the global GUI Factory ptr
00077    gROOT->LoadClass("TCanvas", "Gpad");
00078    // gROOT->LoadClass("TGX11", "GX11");  // implicitely loads X11 and Xpm
00079    // gROOT->ProcessLineFast("new TGX11(\"X11\", \"ROOT interface to X11\");");
00080    gGuiFactory =  new TQRootGuiFactory();
00081 
00082 }
00083 
00084 
00085 
00086 
00087 
00088 
00089 
00090 
00091 
00092 
00093 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:56:09 2005 for Go4-v2.10-5 by doxygen1.2.15