TApplicationImp.h

Go to the documentation of this file.
00001 // @(#)root/base:$Id: TApplicationImp.h 20877 2007-11-19 11:17:07Z rdm $
00002 // Author: Fons Rademakers   22/12/95
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 
00013 #ifndef ROOT_TApplicationImp
00014 #define ROOT_TApplicationImp
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TApplicationImp                                                      //
00019 //                                                                      //
00020 // ABC describing GUI independent application implementation protocol.  //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_TString
00025 #include "TString.h"
00026 #endif
00027 
00028 class TGWin32Command;
00029 
00030 
00031 class TApplicationImp {
00032 
00033 protected:
00034    TString   fApplicationName;    // application name
00035 
00036 public:
00037    TApplicationImp(): fApplicationName() { }
00038    TApplicationImp(const char *appClassName, int *argc, char **argv);
00039    virtual ~TApplicationImp() { }
00040 
00041    virtual const char *ApplicationName() const { return fApplicationName.Data(); }
00042    virtual void        Show() { }
00043    virtual void        Hide() { }
00044    virtual void        Iconify() { }
00045    virtual Bool_t      IsCmdThread() { return kTRUE; } // by default (for UNIX) ROOT is a single thread application
00046    virtual void        Init() { }
00047    virtual void        Open() { }
00048    virtual void        Raise() { }
00049    virtual void        Lower() { }
00050    virtual Int_t       ExecCommand(TGWin32Command *code, Bool_t synch);
00051 
00052    ClassDef(TApplicationImp,0)  //ABC describing application protocol
00053 };
00054 
00055 inline TApplicationImp::TApplicationImp(const char *appClassName, int *, char **)
00056   : fApplicationName(appClassName) { }
00057 inline Int_t TApplicationImp::ExecCommand(TGWin32Command *, Bool_t) { return 0; }
00058 
00059 #endif

Generated on Tue Jul 5 14:10:20 2011 for ROOT_528-00b_version by  doxygen 1.5.1