100 fSessNum->GetNumberEntry()->SetToolTipText(
"Use 0 for the last known one,"
101 " negative numbers for the previous ones, e.g. -1 for the last-but-one");
104 fUrlButton->Connect(
"Clicked()",
"TProofProgressLog",
this,
"Rebuild()");
122 selall->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"Select(=0)");
125 clearall->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"Select(=1)");
133 fLogNew->Connect(
"Clicked()",
"TProofProgressLog",
this,
"DoLog(=kFALSE)");
137 fLogNew->SetBackgroundColor(0x000044);
147 fClose->Connect(
"Clicked()",
"TProofProgressLog",
this,
"CloseWindow()");
153 fSave->Connect(
"Clicked()",
"TProofProgressLog",
this,
"SaveToFile()");
168 fAllLines->SetToolTipText(
"Retrieve all lines (service messages excluded)");
170 fAllLines->Connect(
"Clicked()",
"TProofProgressLog",
this,
"NoLineEntry()");
174 fRawLines->SetToolTipText(
"Retrieve all type of lines, service messages included");
184 fLinesFrom->GetNumberEntry()->SetToolTipText(
"Negative values indicate \"tail\" action");
212 fGrepButton->Connect(
"Clicked()",
"TProofProgressLog",
this,
"DoLog(=kTRUE)");
217 fGrepCheckInv->Connect(
"Clicked()",
"TProofProgressLog",
this,
"SetGrepView()");
221 fGrepCheckCmd->Connect(
"Clicked()",
"TProofProgressLog",
this,
"SetGrepView()");
255 fDialog->fProof->Disconnect(
"LogMessage(const char*,Bool_t)",
this,
256 "LogMessage(const char*,Bool_t)");
283 fText->LoadBuffer(buffer);
292 fText->LoadFile(file);
303 fText->AddText(&txt);
323 title.
Form(
"PROOF - Processing logs for session 'undefined'");
340 Info(
"BuildLogList",
"session URL undefined - do nothing");
345 Warning(
"BuildLogList",
"unable open a manager connection to %s",
350 Warning(
"BuildLogList",
"unable to get logs from %s",
355 title.
Form(
"PROOF - Processing logs for session '%s', started on %s at %s",
393 Warning(
"DoLog",
"no text: do nothing!");
404 TPMERegexp san(
"(^|[^\\\\])([^a-zA-Z0-9_=\\\\/.-])");
405 while ( san.
Substitute(greptext,
"$1\\$2") > 0 );
422 Warning(
"DoLog",
"unable to instantiate TProofLog for %s",
426 Warning(
"DoLog",
"unable to instantiate a TProofMgr for %s",
436 pipeCommand =
"grep -v \"| SvcMsg\"";
460 if (!pipeCommand.
IsNull())
464 pipeCommand.
Append(greptext);
467 pipeCommand.
Append(
"grep ");
469 pipeCommand.
Append(
"-v ");
470 pipeCommand.
Append(
"-- ");
471 pipeCommand.
Append(greptext);
481 fLogList->GetSelectedEntries(selected);
482 TIter next(selected);
487 fProofLog->Connect(
"Prt(const char*)",
"TProofProgressLog",
488 this,
"LogMessage(const char*, Bool_t)");
497 Info(
"DoLog",
"Retrieving unfiltered log for %s", ord.
Data());
502 Info(
"DoLog",
"Retrieving log for %s filtered with %s",
511 fProofLog->Disconnect(
"Prt(const char*)",
this,
"LogMessage(const char*, Bool_t)");
547 fLogList->GetSelectedEntries(selected);
548 TIter next(selected);
558 option = writemode ?
"w" :
"a";
564 Info(
"SaveToFile",
"logs saved to file %s",
filename.Data());
573 fGrepLabel->SetText(
"Pipe log through command:");
581 fGrepLabel->SetText(
"Show lines not matching:");
592 if (frame) frame->
Layout();
620 for (
Int_t ie=0; ie<nen; ie++) {
624 if ((ent =
fLogList->GetEntry(ie))) {
652 Info(
"Rebuild",
"same parameters {%s, %s}, {%d, %d}: no need to rebuild TProofLog",
virtual RooAbsTestStatistic * create(const char *name, const char *title, RooAbsReal &real, RooAbsData &data, const RooArgSet &projDeps, Configuration const &cfg)=0
static void retrieve(const gsl_integration_workspace *workspace, double *a, double *b, double *r, double *e)
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void w
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
const UInt_t kDefaultActive
const UInt_t kLogElemFilled
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
void SetCleanup(Int_t mode=kLocalCleanup) override
Turn on automatic cleanup of child frames in dtor.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
void MapWindow() override
map window
virtual void DeleteWindow()
Delete window.
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
A listbox is a box, possibly with scrollbar, containing entries.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
void SetWindowName(const char *name=nullptr) override
Set window name. This is typically done via the window manager.
TGNumberEntry is a number entry input widget with up/down buttons.
const char * GetString() const
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
Text string listbox entries.
const TGString * GetText() const
A TGTextView is a text viewer widget.
A TGText is a multi line text buffer.
Bool_t LoadBuffer(const char *txtbuf)
Load a 0 terminated buffer. Lines will be split at ' '.
TGTransientFrame(const TGTransientFrame &)=delete
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
A composite frame that layout their children in vertical way.
ROOT GUI Window base class.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Wrapper for PCRE library (Perl Compatible Regular Expressions).
Int_t Substitute(TString &s, const TString &r, Bool_t doDollarSubst=kTRUE)
Substitute matching part of s with r, dollar back-ref substitution is performed if doDollarSubst is t...
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session,...
virtual TProofLog * GetSessionLogs(Int_t=0, const char *=0, const char *="-v \"| SvcMsg\"", Bool_t=kFALSE)
virtual Bool_t IsValid() const
This class provides a query progress bar.
Dialog used to display Proof session logs from the Proof progress dialog.
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 Rebuild()
Rebuild the log info for a new entered session.
void DoLog(Bool_t grep=kFALSE)
Display logs.
TGCheckButton * fGrepCheckInv
~TProofProgressLog() override
Destructor.
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.
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 CloseWindow() override
Handle close button or when closed via window manager action.
TProofProgressDialog * fDialog
void Clear(Option_t *=nullptr) override
Clear log window.
TProofProgressLog(TProofProgressDialog *d, Int_t w=700, Int_t h=600)
Create a window frame for log messages.
void LoadFile(const char *file)
Load a file in the window.
TGCheckButton * fRawLines
TGNumberEntry * fLinesFrom
void NoLineEntry()
Enable/disable the line number entry.
void SaveToFile()
Save the logs to a file Only the name of the file is taken, no expansion.
void Popup()
Show log window.
static TProofMgr * Mgr(const char *url)
Get instance of the effective manager for 'url' Return 0 on failure.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
const char * Data() const
TString & Prepend(const char *cs)
TString & Remove(Ssiz_t pos)
TString & Append(const char *cs)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
This class represents a WWW compatible URL.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
const char * GetUser() const
const char * GetHost() const
const char * GetHostFQDN() const
Return fully qualified domain name of url host.