Logo ROOT  
Reference Guide
TProofProgressLog.h
Go to the documentation of this file.
1 // @(#)root/sessionviewer:$Id: c52dc6cb225c25e34d388329d41570a484d98ce0 $
2 // Author: G Ganis, Aug 2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TProofProgressLog
13 #define ROOT_TProofProgressLog
14 
15 
16 #include "TGFrame.h"
17 #include "TString.h"
18 
19 class TGTextView;
20 class TGTextButton;
22 class TProofLog;
23 class TGTextEntry;
24 class TGNumberEntry;
25 class TGListBox;
26 class TGSplitButton;
27 class TGVerticalFrame;
28 class TGCheckButton;
29 class TGLabel;
30 
32 
33 private:
34  enum ETextType { kRaw = 0, kStd = 1, kGrep = 2 };
35 
38 
39  TGTextView *fText; // text widget
40  TGTextButton *fClose; // close button
41  TGListBox *fLogList; // list of workers
42  TGTextButton *fLogNew; // display logs button
43  TProofProgressDialog *fDialog; // owner dialog
44  TProofLog *fProofLog; // the log
45  TGNumberEntry *fLinesFrom; // starting line
46  TGNumberEntry *fLinesTo; // ending line
47  TGTextEntry *fGrepText; // text to grep for in the logs
48  TGTextEntry *fUrlText; // url to connect to
49  TGNumberEntry *fSessNum; // relative index of the session to get
50  TGTextEntry *fFileName; // file to save to
51  TGTextButton *fSave; // save button
52  TGTextButton *fGrepButton; //grep button
53  TGTextButton *fUrlButton; //rebuild button
54  TGCheckButton *fAllLines; // display all lines button
55  TGCheckButton *fRawLines; // display raw lines button
56  TGSplitButton *fAllWorkers; // display all workers button
57  TGVerticalFrame *fVworkers; // Vertical frame
58  TGLabel *fGrepLabel; // label indicating if grepping or piping
59  TGCheckButton *fGrepCheckCmd; // checkbox active if piping
60  TGCheckButton *fGrepCheckInv; // checkbox active if inverting
61 
62  Bool_t fFullText; // 0 - when grep was called
63  Int_t fTextType; // Type of retrieval
64 
65  void Init(Int_t w = 700, Int_t h = 600);
66 
67 public:
69  TProofProgressLog(const char *url = 0, Int_t sessionidx = 0, Int_t w = 700, Int_t h = 600);
70  virtual ~TProofProgressLog();
71 
72  void BuildLogList(Bool_t create = kFALSE);
73  void DoLog(Bool_t grep=kFALSE);
74  void LogMessage(const char *msg, Bool_t all);
75  void Rebuild();
76 
77  void LoadBuffer(const char *buffer);
78  void AddBuffer(const char *buffer);
79 
80  void LoadFile(const char *file);
81 
82  void Clear(Option_t * = 0);
83  void Popup();
84  void SaveToFile();
85  void NoLineEntry();
86  void SetGrepView();
87  void Select(Int_t id, Bool_t all = kTRUE);
88 
89  void SetUrl(const char *url) { fSessionUrl = url; }
90  // slots
91  void CloseWindow();
92 
93  ClassDef(TProofProgressLog,0) //Class implementing a log graphic box
94 };
95 
96 #endif
TGListBox
A listbox is a box, possibly with scrollbar, containing entries.
Definition: TGListBox.h:221
TProofProgressLog::fFullText
Bool_t fFullText
Definition: TProofProgressLog.h:62
TGTransientFrame
Defines transient windows that typically are used for dialogs windows.
Definition: TGFrame.h:498
TProofProgressLog::fUrlButton
TGTextButton * fUrlButton
Definition: TProofProgressLog.h:53
TProofProgressLog::fLinesFrom
TGNumberEntry * fLinesFrom
Definition: TProofProgressLog.h:45
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:100
Option_t
const char Option_t
Definition: RtypesCore.h:66
TProofProgressLog::fAllLines
TGCheckButton * fAllLines
Definition: TProofProgressLog.h:54
TProofProgressLog::CloseWindow
void CloseWindow()
Handle close button or when closed via window manager action.
Definition: TProofProgressLog.cxx:310
TProofLog
Implementation of the PROOF session log handler.
Definition: TProofLog.h:32
TProofProgressLog::fGrepCheckCmd
TGCheckButton * fGrepCheckCmd
Definition: TProofProgressLog.h:59
TProofProgressLog::ETextType
ETextType
Definition: TProofProgressLog.h:34
TProofProgressLog::fSave
TGTextButton * fSave
Definition: TProofProgressLog.h:51
TProofProgressDialog
This class provides a query progress bar.
Definition: TProofProgressDialog.h:33
TProofProgressLog::fLinesTo
TGNumberEntry * fLinesTo
Definition: TProofProgressLog.h:46
TProofProgressLog::LoadFile
void LoadFile(const char *file)
Load a file in the window.
Definition: TProofProgressLog.cxx:289
TGLabel
This class handles GUI labels.
Definition: TGLabel.h:24
TProofProgressLog::fGrepLabel
TGLabel * fGrepLabel
Definition: TProofProgressLog.h:58
TProofProgressLog::fGrepCheckInv
TGCheckButton * fGrepCheckInv
Definition: TProofProgressLog.h:60
TGTextButton
Yield an action as soon as it is clicked.
Definition: TGButton.h:142
TProofProgressLog::fGrepButton
TGTextButton * fGrepButton
Definition: TProofProgressLog.h:52
TProofProgressLog::LogMessage
void LogMessage(const char *msg, Bool_t all)
Load/append a log msg in the log frame, if open.
Definition: TProofProgressLog.cxx:519
TProofProgressLog::~TProofProgressLog
virtual ~TProofProgressLog()
Destructor.
Definition: TProofProgressLog.cxx:247
TString
Basic string class.
Definition: TString.h:136
TProofProgressLog::kGrep
@ kGrep
Definition: TProofProgressLog.h:34
TProofProgressLog::DoLog
void DoLog(Bool_t grep=kFALSE)
Display logs.
Definition: TProofProgressLog.cxx:388
TString.h
bool
TProofProgressLog::Popup
void Popup()
Show log window.
Definition: TProofProgressLog.cxx:263
TProofProgressLog::NoLineEntry
void NoLineEntry()
Enable/disable the line number entry.
Definition: TProofProgressLog.cxx:599
TGCheckButton
Selects different options.
Definition: TGButton.h:264
TProofProgressLog::fLogList
TGListBox * fLogList
Definition: TProofProgressLog.h:41
TProofProgressLog::fVworkers
TGVerticalFrame * fVworkers
Definition: TProofProgressLog.h:57
TProofProgressLog::fSessionUrl
TString fSessionUrl
Definition: TProofProgressLog.h:36
TProofProgressLog::Clear
void Clear(Option_t *=0)
Clear log window.
Definition: TProofProgressLog.cxx:271
h
#define h(i)
Definition: RSha256.hxx:106
TProofProgressLog::fSessNum
TGNumberEntry * fSessNum
Definition: TProofProgressLog.h:49
TGVerticalFrame
A composite frame that layout their children in vertical way.
Definition: TGFrame.h:375
TGTextEntry
A TGTextEntry is a one line text input widget.
Definition: TGTextEntry.h:24
TProofProgressLog::SaveToFile
void SaveToFile()
Save the logs to a file Only the name of the file is taken, no expansion.
Definition: TProofProgressLog.cxx:534
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:101
TProofProgressLog::TProofProgressLog
TProofProgressLog(TProofProgressDialog *d, Int_t w=700, Int_t h=600)
Create a window frame for log messages.
Definition: TProofProgressLog.cxx:44
TGFrame.h
TProofProgressLog::fClose
TGTextButton * fClose
Definition: TProofProgressLog.h:40
TProofProgressLog::LoadBuffer
void LoadBuffer(const char *buffer)
Load a text buffer in the window.
Definition: TProofProgressLog.cxx:280
TProofProgressLog::Init
void Init(Int_t w=700, Int_t h=600)
Init window frame for log messages.
Definition: TProofProgressLog.cxx:70
TProofProgressLog::fTextType
Int_t fTextType
Definition: TProofProgressLog.h:63
TProofProgressLog::fFileName
TGTextEntry * fFileName
Definition: TProofProgressLog.h:50
TProofProgressLog::fGrepText
TGTextEntry * fGrepText
Definition: TProofProgressLog.h:47
TProofProgressLog::fProofLog
TProofLog * fProofLog
Definition: TProofProgressLog.h:44
TProofProgressLog::fLogNew
TGTextButton * fLogNew
Definition: TProofProgressLog.h:42
TProofProgressLog::SetGrepView
void SetGrepView()
Sets the view of grep filters according to the value of checkboxes.
Definition: TProofProgressLog.cxx:570
TProofProgressLog::fAllWorkers
TGSplitButton * fAllWorkers
Definition: TProofProgressLog.h:56
TProofProgressLog::BuildLogList
void BuildLogList(Bool_t create=kFALSE)
Build the list of workers.
Definition: TProofProgressLog.cxx:319
file
Definition: file.py:1
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGTextView
A TGTextView is a text viewer widget.
Definition: TGTextView.h:22
TProofProgressLog::AddBuffer
void AddBuffer(const char *buffer)
Add text to the window.
Definition: TProofProgressLog.cxx:298
d
#define d(i)
Definition: RSha256.hxx:102
TProofProgressLog::Select
void Select(Int_t id, Bool_t all=kTRUE)
actions of select all/clear all button
Definition: TProofProgressLog.cxx:614
TProofProgressLog::fSessionIdx
Int_t fSessionIdx
Definition: TProofProgressLog.h:37
TProofProgressLog::Rebuild
void Rebuild()
Rebuild the log info for a new entered session.
Definition: TProofProgressLog.cxx:635
TGNumberEntry
TGNumberEntry is a number entry input widget with up/down buttons.
Definition: TGNumberEntry.h:148
TProofProgressLog::kStd
@ kStd
Definition: TProofProgressLog.h:34
TGSplitButton
Implements a button with added menu functionality.
Definition: TGButton.h:379
TProofProgressLog
Dialog used to display Proof session logs from the Proof progress dialog.
Definition: TProofProgressLog.h:31
TProofProgressLog::fRawLines
TGCheckButton * fRawLines
Definition: TProofProgressLog.h:55
TProofProgressLog::kRaw
@ kRaw
Definition: TProofProgressLog.h:34
TProofProgressLog::SetUrl
void SetUrl(const char *url)
Definition: TProofProgressLog.h:89
TProofProgressLog::fUrlText
TGTextEntry * fUrlText
Definition: TProofProgressLog.h:48
TProofProgressLog::fDialog
TProofProgressDialog * fDialog
Definition: TProofProgressLog.h:43
TProofProgressLog::fText
TGTextView * fText
Definition: TProofProgressLog.h:39
int