101 " negative numbers for the previous ones, e.g. -1 for the last-but-one");
122 selall->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"Select(=0)");
125 clearall->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"Select(=1)");
133 fLogNew->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"DoLog(=kFALSE)");
147 fClose->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"CloseWindow()");
153 fSave->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"SaveToFile()");
170 fAllLines->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"NoLineEntry()");
256 "LogMessage(const char*,Bool_t)");
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);
482 TIter next(selected);
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",
548 TIter next(selected);
558 option = writemode ?
"w" :
"a";
564 Info(
"SaveToFile",
"logs saved to file %s",
filename.Data());
592 if (frame) frame->
Layout();
620 for (
Int_t ie=0; ie<nen; ie++) {
652 Info(
"Rebuild",
"same parameters {%s, %s}, {%d, %d}: no need to rebuild TProofLog",
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 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
const char * AsString() const
Return the date & time as a string (ctime() format).
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 SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
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.
virtual void SetText(TGString *newText)
Set new text in label.
This class describes layout hints used by the layout classes.
A listbox is a box, possibly with scrollbar, containing entries.
virtual TGLBEntry * Select(Int_t id, Bool_t sel=kTRUE)
virtual Int_t GetNumberOfEntries() const
void Resize(UInt_t w, UInt_t h) override
Resize the listbox widget.
virtual void AddEntry(TGString *s, Int_t id)
Add entry with specified string and id to listbox.
void Layout() override
Layout the listbox components.
virtual TGLBEntry * GetEntry(Int_t id) const
Returns list box entry with specified id.
virtual void SetMultipleSelections(Bool_t multi=kTRUE)
virtual void GetSelectedEntries(TList *selected)
Adds all selected entries (TGLBEntry) of the list box into the list selected.
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
Remove a range of entries defined by from_ID and to_ID.
virtual TGLBEntry * FindEntry(const char *s) const
Find entry by name.
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.
TGNumberEntryField * GetNumberEntry() const
Get the number entry field.
virtual void SetLimits(ELimit limits=TGNumberFormat::kNELNoLimits, Double_t min=0, Double_t max=1)
virtual void SetState(Bool_t enable=kTRUE)
Set the active state.
virtual void SetIntNumber(Long_t val, Bool_t emit=kTRUE)
virtual Long_t GetIntNumber() const
const char * GetString() const
Yield an action as soon as it is clicked.
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
A TGTextEntry is a one line text input widget.
virtual void SetDefaultSize(UInt_t w, UInt_t h)
Set the default / minimal size of the widget.
const char * GetText() const
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
TGDimension GetDefaultSize() const override
Return the default / minimal size of the widget.
Text string listbox entries.
const TGString * GetText() const
A TGTextView is a text viewer widget.
virtual Bool_t LoadFile(const char *fname, long startpos=0, long length=-1)
Load a file in the text view widget.
virtual Bool_t LoadBuffer(const char *txtbuf)
Load text from a text buffer. Return false in case of failure.
virtual void AddText(TGText *text)
Add text to the view widget.
void Clear(Option_t *="") override
Clear text view 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 ' '.
Defines transient windows that typically are used for dialogs windows.
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 TGWindow * GetParent() const
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...
void Display(const char *ord="*", Int_t from=-10, Int_t to=-1)
Display the content associated with worker 'ord' from line 'from' to line 'to' inclusive.
Int_t Save(const char *ord="*", const char *fname=0, Option_t *opt="w")
Save the content associated with worker 'ord' to finel 'fname'.
Int_t Retrieve(const char *ord="*", TProofLog::ERetrieveOpt opt=TProofLog::kTrailing, const char *fname=0, const char *pattern=0)
Retrieve the content of the log file associated with worker 'ord'.
TList * GetListOfLogs() const
void SetLogToBox(Bool_t lgbox=kFALSE)
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.
TProofProgressLog * fLogWindow
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.
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
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.