00001 // @(#)root/gui:$Id: TGApplication.h 23115 2008-04-10 13:35:37Z rdm $ 00002 // Author: Guy Barrand 30/05/2001 00003 00004 /************************************************************************* 00005 * Copyright (C) 2001, Guy Barrand. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TGApplication 00013 #define ROOT_TGApplication 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TGApplication // 00019 // // 00020 // This class initialize the ROOT GUI toolkit. // 00021 // This class must be instantiated exactly once in any given // 00022 // application. // 00023 // // 00024 ////////////////////////////////////////////////////////////////////////// 00025 00026 #ifndef ROOT_TApplication 00027 #include "TApplication.h" 00028 #endif 00029 00030 class TGClient; 00031 00032 00033 class TGApplication : public TApplication { 00034 00035 private: 00036 char *fDisplay; // display server to connect to 00037 TGClient *fClient; // pointer to the client environment 00038 00039 protected: 00040 TGApplication() : fDisplay(0), fClient(0) { } 00041 virtual void LoadGraphicsLibs(); 00042 00043 public: 00044 TGApplication(const char *appClassName, 00045 Int_t *argc, char **argv, 00046 void *options = 0, Int_t numOptions = 0); 00047 virtual ~TGApplication(); 00048 00049 virtual void GetOptions(Int_t *argc, char **argv); 00050 00051 ClassDef(TGApplication,0) //GUI application singleton 00052 }; 00053 00054 #endif