00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ROOT_TProofProgressLog
00013 #define ROOT_TProofProgressLog
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef ROOT_TGFrame
00026 #include "TGFrame.h"
00027 #endif
00028 #ifndef ROOT_TString
00029 #include "TString.h"
00030 #endif
00031
00032 class TGTextView;
00033 class TGTextButton;
00034 class TProofProgressDialog;
00035 class TProofLog;
00036 class TGTextEntry;
00037 class TGNumberEntry;
00038 class TGListBox;
00039 class TGSplitButton;
00040 class TGVerticalFrame;
00041 class TGCheckButton;
00042
00043
00044 class TProofProgressLog : public TGTransientFrame {
00045
00046 private:
00047 enum ETextType { kRaw = 0, kStd = 1, kGrep = 2 };
00048
00049 TString fSessionUrl;
00050 Int_t fSessionIdx;
00051
00052 TGTextView *fText;
00053 TGTextButton *fClose;
00054 TGListBox *fLogList;
00055 TGTextButton *fLogNew;
00056 TProofProgressDialog *fDialog;
00057 TProofLog *fProofLog;
00058 TGNumberEntry *fLinesFrom;
00059 TGNumberEntry *fLinesTo;
00060 TGTextEntry *fGrepText;
00061 TGTextEntry *fUrlText;
00062 TGNumberEntry *fSessNum;
00063 TGTextEntry *fFileName;
00064 TGTextButton *fSave;
00065 TGTextButton *fGrepButton;
00066 TGTextButton *fUrlButton;
00067 TGCheckButton *fAllLines;
00068 TGCheckButton *fRawLines;
00069 TGSplitButton *fAllWorkers;
00070 TGVerticalFrame *fVworkers;
00071
00072 Bool_t fFullText;
00073 Int_t fTextType;
00074
00075 void Init(Int_t w = 700, Int_t h = 600);
00076
00077 public:
00078 TProofProgressLog(TProofProgressDialog *d, Int_t w = 700, Int_t h = 600);
00079 TProofProgressLog(const char *url = 0, Int_t sessionidx = 0, Int_t w = 700, Int_t h = 600);
00080 virtual ~TProofProgressLog();
00081
00082 void BuildLogList(Bool_t create = kFALSE);
00083 void DoLog(Bool_t grep=kFALSE);
00084 void LogMessage(const char *msg, Bool_t all);
00085 void Rebuild();
00086
00087 void LoadBuffer(const char *buffer);
00088 void AddBuffer(const char *buffer);
00089
00090 void LoadFile(const char *file);
00091
00092 void Clear(Option_t * = 0);
00093 void Popup();
00094 void SaveToFile();
00095 void NoLineEntry();
00096 void Select(Int_t id, Bool_t all = kTRUE);
00097
00098 void SetUrl(const char *url) { fSessionUrl = url; }
00099
00100 void CloseWindow();
00101
00102 ClassDef(TProofProgressLog,0)
00103 };
00104
00105 #endif