00001 // @(#)root/gui:$Id: TRootApplication.h 23115 2008-04-10 13:35:37Z rdm $ 00002 // Author: Fons Rademakers 15/01/98 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_TRootApplication 00014 #define ROOT_TRootApplication 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TRootApplication // 00019 // // 00020 // This class create the ROOT native GUI version of the ROOT // 00021 // application environment. This in contrast the Win32 version. // 00022 // Once the native widgets work on Win32 this class can be folded into // 00023 // the TApplication class (since all graphic will go via TVirtualX). // 00024 // // 00025 ////////////////////////////////////////////////////////////////////////// 00026 00027 #ifndef ROOT_TApplicationImp 00028 #include "TApplicationImp.h" 00029 #endif 00030 00031 00032 class TGClient; 00033 00034 00035 class TRootApplication : public TApplicationImp { 00036 00037 private: 00038 TGClient *fClient; // pointer to the client environment 00039 char *fDisplay; // display server to connect to 00040 00041 TRootApplication() { fClient = 0; fDisplay = 0; } 00042 void GetOptions(Int_t *argc, char **argv); 00043 00044 public: 00045 TRootApplication(const char *appClassName, Int_t *argc, char **argv); 00046 virtual ~TRootApplication(); 00047 00048 TGClient *Client() const { return fClient; } 00049 00050 void Show() { } 00051 void Hide() { } 00052 void Iconify() { } 00053 Bool_t IsCmdThread(); 00054 void Init() { } 00055 void Open() { } 00056 void Raise() { } 00057 void Lower() { } 00058 00059 ClassDef(TRootApplication,0) // ROOT native GUI application environment 00060 }; 00061 00062 #endif