TProofProgressLog.h

Go to the documentation of this file.
00001 // @(#)root/sessionviewer:$Id: TProofProgressLog.h 32203 2010-02-03 18:47:34Z ganis $
00002 // Author: G Ganis, Aug 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_TProofProgressLog
00013 #define ROOT_TProofProgressLog
00014 
00015 ///////////////////////////////////////////////////////////////////////////
00016 //                                                                       //
00017 // TProofProgressLog                                                     //
00018 //                                                                       //
00019 // Dialog used to display Proof session logs from the Proof progress     //
00020 // dialog.                                                               //
00021 // It uses TProofMgr::GetSessionLogs() mechanism internally              //
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;      // text widget
00053    TGTextButton         *fClose;     // close button
00054    TGListBox            *fLogList;   // list of workers
00055    TGTextButton         *fLogNew;    // display logs button
00056    TProofProgressDialog *fDialog;    // owner dialog
00057    TProofLog            *fProofLog;  // the log
00058    TGNumberEntry        *fLinesFrom; // starting line
00059    TGNumberEntry        *fLinesTo;   // ending line
00060    TGTextEntry          *fGrepText;  // text to grep for in the logs
00061    TGTextEntry          *fUrlText;   // url to connect to
00062    TGNumberEntry        *fSessNum;   // relative index of the session to get
00063    TGTextEntry          *fFileName;  // file to save to
00064    TGTextButton         *fSave;      // save button
00065    TGTextButton         *fGrepButton; //grep button
00066    TGTextButton         *fUrlButton; //rebuild button
00067    TGCheckButton        *fAllLines;  // display all lines button
00068    TGCheckButton        *fRawLines;  // display raw lines button
00069    TGSplitButton        *fAllWorkers; // display all workers button
00070    TGVerticalFrame      *fVworkers;  // Vertical frame
00071 
00072    Bool_t                fFullText;    // 0 - when grep was called
00073    Int_t                 fTextType;   // Type of retrieval
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    // slots
00100    void   CloseWindow();
00101 
00102    ClassDef(TProofProgressLog,0) //Class implementing a log graphic box
00103 };
00104 
00105 #endif

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