Logo ROOT  
Reference Guide
TApplicationImp.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Fons Rademakers 22/12/95
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_TApplicationImp
14 #define ROOT_TApplicationImp
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TApplicationImp //
19 // //
20 // ABC describing GUI independent application implementation protocol. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "TString.h"
25 
26 class TGWin32Command;
27 
28 
30 
31 protected:
32  TString fApplicationName; // application name
33 
34 public:
36  TApplicationImp(const char *appClassName, int *argc, char **argv);
37  virtual ~TApplicationImp();
38 
39  virtual const char *ApplicationName() const { return fApplicationName.Data(); }
40  virtual void Show() { }
41  virtual void Hide() { }
42  virtual void Iconify() { }
43  virtual Bool_t IsCmdThread() { return kTRUE; } // by default (for UNIX) ROOT is a single thread application
44  virtual void Init() { }
45  virtual void Open() { }
46  virtual void Raise() { }
47  virtual void Lower() { }
48  virtual Int_t ExecCommand(TGWin32Command *code, Bool_t synch);
49 
50  ClassDef(TApplicationImp,0) //ABC describing application protocol
51 };
52 
53 inline TApplicationImp::TApplicationImp(const char *appClassName, int *, char **)
54  : fApplicationName(appClassName) { }
55 inline Int_t TApplicationImp::ExecCommand(TGWin32Command *, Bool_t) { return 0; }
56 
57 #endif
TApplicationImp::fApplicationName
TString fApplicationName
Definition: TApplicationImp.h:32
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TApplicationImp::Lower
virtual void Lower()
Definition: TApplicationImp.h:47
TApplicationImp::Hide
virtual void Hide()
Definition: TApplicationImp.h:41
TString::Data
const char * Data() const
Definition: TString.h:369
TApplicationImp::~TApplicationImp
virtual ~TApplicationImp()
Definition: TApplicationImp.cxx:21
TApplicationImp
Definition: TApplicationImp.h:29
TApplicationImp::ApplicationName
virtual const char * ApplicationName() const
Definition: TApplicationImp.h:39
Int_t
int Int_t
Definition: RtypesCore.h:45
TString
Definition: TString.h:136
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TString.h
TApplicationImp::Init
virtual void Init()
Definition: TApplicationImp.h:44
bool
TApplicationImp::Raise
virtual void Raise()
Definition: TApplicationImp.h:46
TApplicationImp::ExecCommand
virtual Int_t ExecCommand(TGWin32Command *code, Bool_t synch)
Definition: TApplicationImp.h:55
TApplicationImp::Show
virtual void Show()
Definition: TApplicationImp.h:40
TApplicationImp::TApplicationImp
TApplicationImp()
Definition: TApplicationImp.h:35
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TApplicationImp::IsCmdThread
virtual Bool_t IsCmdThread()
Definition: TApplicationImp.h:43
TApplicationImp::Open
virtual void Open()
Definition: TApplicationImp.h:45
TApplicationImp::Iconify
virtual void Iconify()
Definition: TApplicationImp.h:42
int