ROOT  6.06/09
Reference Guide
TRootApplication.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: Fons Rademakers 15/01/98
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, 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 
13 #ifndef ROOT_TRootApplication
14 #define ROOT_TRootApplication
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TRootApplication //
19 // //
20 // This class create the ROOT native GUI version of the ROOT //
21 // application environment. This in contrast the Win32 version. //
22 // Once the native widgets work on Win32 this class can be folded into //
23 // the TApplication class (since all graphic will go via TVirtualX). //
24 // //
25 //////////////////////////////////////////////////////////////////////////
26 
27 #ifndef ROOT_TApplicationImp
28 #include "TApplicationImp.h"
29 #endif
30 
31 
32 class TGClient;
33 
34 
36 
37 private:
38  TGClient *fClient; // pointer to the client environment
39  char *fDisplay; // display server to connect to
40 
41  TRootApplication() { fClient = 0; fDisplay = 0; }
42  void GetOptions(Int_t *argc, char **argv);
43 
44 public:
45  TRootApplication(const char *appClassName, Int_t *argc, char **argv);
46  virtual ~TRootApplication();
47 
48  TGClient *Client() const { return fClient; }
49 
50  void Show() { }
51  void Hide() { }
52  void Iconify() { }
54  void Init() { }
55  void Open() { }
56  void Raise() { }
57  void Lower() { }
58 
59  ClassDef(TRootApplication,0) // ROOT native GUI application environment
60 };
61 
62 #endif
TGClient * Client() const
void GetOptions(Int_t *argc, char **argv)
Handle command line arguments.
virtual ~TRootApplication()
Delete ROOT application environment.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
ABC describing GUI independent application implementation protocol.
#define ClassDef(name, id)
Definition: Rtypes.h:254
Bool_t IsCmdThread()
By default (for UNIX) ROOT is a single thread application For win32gdk returns kTRUE if it's called f...