00001 // @(#)root/sessionviewer:$Id: TSessionLogView.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Bertrand Bellenot, Gerri Ganis 15/09/2005 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2005, 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 #ifndef ROOT_TSessionLogView 00013 #define ROOT_TSessionLogView 00014 00015 #ifndef ROOT_TGFrame 00016 #include "TGFrame.h" 00017 #endif 00018 00019 #ifndef ROOT_TGButton 00020 #include "TGButton.h" 00021 #endif 00022 00023 #ifndef ROOT_TTextView 00024 #include "TGTextView.h" 00025 #endif 00026 00027 class TSessionViewer; 00028 00029 class TSessionLogView : public TGTransientFrame { 00030 00031 private: 00032 TSessionViewer *fViewer; // pointer on main viewer 00033 TGTextView *fTextView; // Text view widget 00034 TGTextButton *fClose; // OK button 00035 TGLayoutHints *fL1; // layout of TGTextEdit 00036 TGLayoutHints *fL2; // layout of OK button 00037 00038 public: 00039 TSessionLogView(TSessionViewer *viewer, UInt_t w, UInt_t h); 00040 virtual ~TSessionLogView(); 00041 00042 void AddBuffer(const char *buffer); 00043 void LoadBuffer(const char *buffer); 00044 void LoadFile(const char *file); 00045 00046 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 00047 00048 void CloseWindow(); 00049 void ClearLogView(); 00050 void Popup(); 00051 void SetTitle(); 00052 00053 ClassDef(TSessionLogView, 0) // PROOF progress dialog 00054 }; 00055 00056 #endif