Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
19class TGTextView;
20class TGTextButton;
22class TProofLog;
23class TGTextEntry;
24class TGNumberEntry;
25class TGListBox;
26class TGSplitButton;
27class TGVerticalFrame;
28class TGCheckButton;
29class TGLabel;
30
32
33private:
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
67public:
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
#define d(i)
Definition RSha256.hxx:102
#define h(i)
Definition RSha256.hxx:106
const Bool_t kFALSE
Definition RtypesCore.h:101
const Bool_t kTRUE
Definition RtypesCore.h:100
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:325
Selects different options.
Definition TGButton.h:264
This class handles GUI labels.
Definition TGLabel.h:24
A listbox is a box, possibly with scrollbar, containing entries.
Definition TGListBox.h:221
TGNumberEntry is a number entry input widget with up/down buttons.
Implements a button with added menu functionality.
Definition TGButton.h:379
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
A TGTextView is a text viewer widget.
Definition TGTextView.h:22
Defines transient windows that typically are used for dialogs windows.
Definition TGFrame.h:499
A composite frame that layout their children in vertical way.
Definition TGFrame.h:375
Implementation of the PROOF session log handler.
Definition TProofLog.h:32
This class provides a query progress bar.
Dialog used to display Proof session logs from the Proof progress dialog.
virtual ~TProofProgressLog()
Destructor.
TGTextButton * fClose
void Select(Int_t id, Bool_t all=kTRUE)
actions of select all/clear all button
void Init(Int_t w=700, Int_t h=600)
Init window frame for log messages.
void SetUrl(const char *url)
void Rebuild()
Rebuild the log info for a new entered session.
void DoLog(Bool_t grep=kFALSE)
Display logs.
TGCheckButton * fGrepCheckInv
TGTextEntry * fUrlText
TGTextButton * fGrepButton
TGVerticalFrame * fVworkers
TGCheckButton * fAllLines
void LogMessage(const char *msg, Bool_t all)
Load/append a log msg in the log frame, if open.
void SetGrepView()
Sets the view of grep filters according to the value of checkboxes.
TGNumberEntry * fSessNum
TGTextButton * fLogNew
void LoadBuffer(const char *buffer)
Load a text buffer in the window.
void AddBuffer(const char *buffer)
Add text to the window.
void BuildLogList(Bool_t create=kFALSE)
Build the list of workers.
TGTextButton * fUrlButton
TGCheckButton * fGrepCheckCmd
void Clear(Option_t *=0)
Clear log window.
TProofProgressDialog * fDialog
TGSplitButton * fAllWorkers
void LoadFile(const char *file)
Load a file in the window.
TGTextEntry * fGrepText
TGNumberEntry * fLinesTo
TGCheckButton * fRawLines
TGTextEntry * fFileName
TGTextButton * fSave
TGNumberEntry * fLinesFrom
void NoLineEntry()
Enable/disable the line number entry.
void CloseWindow()
Handle close button or when closed via window manager action.
void SaveToFile()
Save the logs to a file Only the name of the file is taken, no expansion.
void Popup()
Show log window.
Basic string class.
Definition TString.h:136
Definition file.py:1