102 " negative numbers for the previous ones, e.g. -1 for the last-but-one");
123 selall->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"Select(=0)");
126 clearall->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"Select(=1)");
134 fLogNew->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"DoLog(=kFALSE)");
148 fClose->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"CloseWindow()");
154 fSave->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"SaveToFile()");
171 fAllLines->
Connect(
"Clicked()",
"TProofProgressLog",
this,
"NoLineEntry()");
257 "LogMessage(const char*,Bool_t)");
324 title.
Form(
"PROOF - Processing logs for session 'undefined'");
341 Info(
"BuildLogList",
"sesssion URL undefined - do nothing");
346 Warning(
"BuildLogList",
"unable open a manager connection to %s",
351 Warning(
"BuildLogList",
"unable to get logs from %s",
356 title.
Form(
"PROOF - Processing logs for session '%s', started on %s at %s",
394 Warning(
"DoLog",
"no text: do nothing!");
405 TPMERegexp san(
"(^|[^\\\\])([^a-zA-Z0-9_=\\\\/.-])");
406 while ( san.
Substitute(greptext,
"$1\\$2") > 0 );
423 Warning(
"DoLog",
"unable to instantiate TProofLog for %s",
427 Warning(
"DoLog",
"unable to instantiate a TProofMgr for %s",
437 pipeCommand =
"grep -v \"| SvcMsg\"";
461 if (!pipeCommand.
IsNull())
465 pipeCommand.
Append(greptext);
468 pipeCommand.
Append(
"grep ");
470 pipeCommand.
Append(
"-v ");
471 pipeCommand.
Append(
"-- ");
472 pipeCommand.
Append(greptext);
483 TIter next(selected);
489 this,
"LogMessage(const char*, Bool_t)");
498 Info(
"DoLog",
"Retrieving unfiltered log for %s", ord.
Data());
503 Info(
"DoLog",
"Retrieving log for %s filtered with %s",
541 if (filename.
IsNull() || filename ==
"<session-tag>.log") {
549 TIter next(selected);
559 option = writemode ?
"w" :
"a";
564 Info(
"SaveToFile",
"logs saved to file %s", filename.
Data());
593 if (frame) frame->
Layout();
621 for (
Int_t ie=0; ie<nen; ie++) {
653 Info(
"Rebuild",
"same paremeters {%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)
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=0)
Add frame to the composite frame using the specified layout hints.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
virtual void DeleteWindow()
Delete window.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void SetText(TGString *newText)
Set new text in label.
virtual void Resize(UInt_t w, UInt_t h)
Resize the listbox widget.
virtual TGLBEntry * Select(Int_t id, Bool_t sel=kTRUE)
virtual Int_t GetNumberOfEntries() const
virtual void AddEntry(TGString *s, Int_t id)
Add entry with specified string and id to listbox.
virtual TGLBEntry * GetEntry(Int_t id) const
Returns list box entry with specified id.
virtual void SetMultipleSelections(Bool_t multi=kTRUE)
virtual void Layout()
Layout the listbox components.
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=0)
Set window name. This is typically done via the window manager.
virtual void SetIntNumber(Long_t val)
TGNumberEntryField * GetNumberEntry() const
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 Long_t GetIntNumber() const
const char * GetString() const
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
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.
virtual TGDimension GetDefaultSize() const
Return the default / minimal size of the widget.
const TGString * GetText() const
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 Clear(Option_t *="")
Clear text view widget.
virtual void AddText(TGText *text)
Add text to the view widget.
Bool_t LoadBuffer(const char *txtbuf)
Load a 0 terminated buffer. Lines will be split at ' '.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
const TGWindow * GetParent() const
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
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
TProofProgressLog * fLogWindow
virtual ~TProofProgressLog()
Destructor.
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
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 Clear(Option_t *=0)
Clear log window.
TProofProgressDialog * fDialog
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 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.
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=0, void *receiver=0, const char *slot=0)
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.