Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
26class TGWin32Command;
27
28
30
31protected:
32 TString fApplicationName; // application name
33
34public:
36 TApplicationImp(const char *appClassName, int *argc, char **argv) : fApplicationName(appClassName) { (void) argc; (void) 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) { (void) code; (void) synch; return 0; }
49
50 ClassDef(TApplicationImp,0) //ABC describing application protocol
51};
52
53#endif
constexpr Bool_t kTRUE
Definition RtypesCore.h:100
#define ClassDef(name, id)
Definition Rtypes.h:337
ABC describing GUI independent application implementation protocol.
virtual void Show()
virtual const char * ApplicationName() const
virtual void Raise()
virtual Int_t ExecCommand(TGWin32Command *code, Bool_t synch)
TApplicationImp(const char *appClassName, int *argc, char **argv)
virtual void Hide()
virtual void Init()
virtual void Iconify()
virtual void Lower()
virtual Bool_t IsCmdThread()
virtual ~TApplicationImp()
virtual void Open()
Basic string class.
Definition TString.h:139
const char * Data() const
Definition TString.h:380