Logo ROOT   6.12/07
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 #include "TApplicationImp.h"
28 
29 
30 class TGClient;
31 
32 
34 
35 private:
36  TGClient *fClient; // pointer to the client environment
37  char *fDisplay; // display server to connect to
38 
39  TRootApplication() { fClient = 0; fDisplay = 0; }
40  void GetOptions(Int_t *argc, char **argv);
41 
42 public:
43  TRootApplication(const char *appClassName, Int_t *argc, char **argv);
44  virtual ~TRootApplication();
45 
46  TGClient *Client() const { return fClient; }
47 
48  void Show() { }
49  void Hide() { }
50  void Iconify() { }
52  void Init() { }
53  void Open() { }
54  void Raise() { }
55  void Lower() { }
56 
57  ClassDef(TRootApplication,0) // ROOT native GUI application environment
58 };
59 
60 #endif
void GetOptions(Int_t *argc, char **argv)
Handle command line arguments.
virtual ~TRootApplication()
Delete ROOT application environment.
TGClient * Client() const
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:320
Bool_t IsCmdThread()
By default (for UNIX) ROOT is a single thread application For win32gdk returns kTRUE if it's called f...