Logo ROOT   6.08/07
Reference Guide
TGApplication.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: Guy Barrand 30/05/2001
3 
4 /*************************************************************************
5  * Copyright (C) 2001, Guy Barrand. *
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_TGApplication
13 #define ROOT_TGApplication
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TGApplication //
19 // //
20 // This class initialize the ROOT GUI toolkit. //
21 // This class must be instantiated exactly once in any given //
22 // application. //
23 // //
24 //////////////////////////////////////////////////////////////////////////
25 
26 #ifndef ROOT_TApplication
27 #include "TApplication.h"
28 #endif
29 
30 class TGClient;
31 
32 
33 class TGApplication : public TApplication {
34 
35 private:
36  char *fDisplay; // display server to connect to
37  TGClient *fClient; // pointer to the client environment
38 
39 protected:
40  TGApplication() : fDisplay(0), fClient(0) { }
41  virtual void LoadGraphicsLibs();
42 
43 public:
44  TGApplication(const char *appClassName,
45  Int_t *argc, char **argv,
46  void *options = 0, Int_t numOptions = 0);
47  virtual ~TGApplication();
48 
49  virtual void GetOptions(Int_t *argc, char **argv);
50 
51  ClassDef(TGApplication,0) //GUI application singleton
52 };
53 
54 #endif
virtual ~TGApplication()
TGApplication dtor.
int Int_t
Definition: RtypesCore.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void LoadGraphicsLibs()
Load shared libs necessary for GUI.
TGClient * fClient
Definition: TGApplication.h:37
virtual void GetOptions(Int_t *argc, char **argv)
Handle command line arguments.
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
Definition: TApplication.h:45