85 const
char *xpm_names[] = {
94 "Config files",
"*.conf",
100 "Package files",
"*.par",
106 "C files",
"*.[C|c]*",
117 "PROOF_ProcTimeHist",
201 fNumPort(0), fLogLevel(0), fTxtConfig(0), fTxtUsrName(0), fSync(0),
202 fViewer(0), fBtnAdd(0), fBtnConnect(0)
285 "OnBtnAddClicked()");
289 "OnBtnConnectClicked()");
293 "OnConfigFileClicked()");
296 "SettingsChanged()");
298 "SettingsChanged()");
300 "SettingsChanged()");
302 "SettingsChanged()");
303 fSync->
Connect(
"Clicked()",
"TSessionServerFrame",
this,
304 "SettingsChanged()");
306 "SettingsChanged()");
308 "SettingsChanged()");
310 "SettingsChanged()");
312 "SettingsChanged()");
384 "Deleting Local Sessions is not allowed !",
390 m.
Form(
"Are you sure to delete the server \"%s\"",
396 if (result ==
kMBOk) {
398 if (desc->fConnected && desc->fAttached && desc->fProof) {
399 desc->fProof->Detach(
"S");
464 "TSessionViewer",
fViewer,
"StartupMessage(char *,Bool_t,Int_t,Int_t)");
468 if (address ==
"lite://") {
474 url +=
"@"; url += address.
Data();
502 TIter nextp(sessions);
517 while (kFeedbackHistos[i]) {
527 "Feedback(TList *objs)");
594 "Progress(Long64_t,Long64_t)");
597 "Progress(Long64_t,Long64_t,Long64_t,Float_t,Float_t,Float_t,Float_t)");
598 fViewer->
GetActDesc()->
fProof->
Connect(
"Progress(Long64_t,Long64_t,Long64_t,Float_t,Float_t,Float_t,Float_t,Int_t,Int_t,Float_t)",
600 "Progress(Long64_t,Long64_t,Long64_t,Float_t,Float_t,Float_t,Float_t,Int_t,Int_t,Float_t)");
603 "IndicateStop(Bool_t)");
605 "ResetProgressDialog(const char*,Int_t,Long64_t,Long64_t)",
607 "ResetProgressDialog(const char*,Int_t,Long64_t,Long64_t)");
616 "TSessionViewer",
fViewer,
"QueryResultReady(char *)");
631 Error(
"Submit",
"Enable package failed");
692 "At least one required field is empty !",
854 fCommandTxt(0), fCommandBuf(0), fInfoTextView(0), fClearCheck(0),
855 fBtnShowLog(0), fBtnNewQuery(0), fBtnGetQueries(0), fLBPackages(0),
856 fBtnAdd(0), fBtnRemove(0), fBtnUp(0), fBtnDown(0), fBtnShow(0),
857 fBtnShowEnabled(0), fChkMulti(0), fChkEnable(0), fBtnUpload(0),
858 fBtnEnable(0), fBtnClear(0), fBtnDisable(0), fDSetView(0), fDataSetTree(0),
859 fBtnUploadDSet(0), fBtnRemoveDSet(0), fBtnVerifyDSet(0), fBtnRefresh(0),
860 fTxtParallel(0), fLogLevel(0), fApplyLogLevel(0), fApplyParallel(0),
905 for (i=0;i<17;i+=2) {
1154 "OnBtnShowLogClicked()");
1156 "OnBtnNewQueryClicked()");
1158 "OnBtnGetQueriesClicked()");
1161 "OnStartupEnable(Bool_t)");
1163 "OnMultipleSelection(Bool_t)");
1165 "OnBtnAddClicked()");
1167 "OnBtnRemoveClicked()");
1169 "OnBtnUpClicked()");
1171 "OnBtnDownClicked()");
1173 "OnApplyLogLevel()");
1175 "OnApplyParallel()");
1177 "OnUploadPackages()");
1179 "OnEnablePackages()");
1181 "OnDisablePackages()");
1183 "OnClearPackages()");
1185 "ShowEnabledPackages()");
1190 "OnBtnUploadDSet()");
1192 "OnBtnRemoveDSet()");
1194 "OnBtnVerifyDSet()");
1196 "UpdateListOfDataSets()");
1231 if (userGroup)
delete userGroup;
1245 buf.
Form(
"*** Connected to %s (parallel mode, %d workers) ***",
1249 buf.
Form(
"*** Connected to %s (sequential mode) ***",
1283 buf.
Form(
"*** Master server %s (parallel mode, %d workers) ***",
1287 buf.
Form(
"*** Master server %s (sequential mode) ***",
1350 TList *dsetlist = 0;
1355 TIter nextdset(dsetlist);
1356 while ((dsetname = (
TObjString *)nextdset())) {
1360 dsetname->
GetName(), dsetname);
1365 TIter nextdsetfile(dsetfilelist);
1366 while ((dsetfilename = (
TFileInfo *)nextdsetfile())) {
1371 dsetfilename, dseticon, dseticon);
1529 while ((obj =
next())) {
1532 Error(
"Submit",
"Upload package failed");
1537 dynamic_cast<TPackageDescription *>(o);
1566 while ((obj =
next())) {
1571 dynamic_cast<TPackageDescription *>(o);
1575 Error(
"Submit",
"Upload package failed");
1584 Error(
"Submit",
"Enable package failed");
1611 while ((obj =
next())) {
1614 Error(
"Submit",
"Clear package failed");
1619 dynamic_cast<TPackageDescription *>(o);
1645 Error(
"Submit",
"Clear packages failed");
1673 package = new TPackageDescription;
1687 package = new TPackageDescription;
1741 if (pos <= 0)
return;
1743 package = (TPackageDescription *)fViewer->GetActDesc()->fPackages->At(pos);
1779 package = (TPackageDescription *)fViewer->GetActDesc()->fPackages->At(pos);
1859 TList *lqueries = 0;
1867 TIter nextp(lqueries);
1886 if (lquery->fReference.CompareTo(newquery->
fReference) == 0) {
1891 if (found)
continue;
1936 snprintf(opt, 2,
"w");
1938 snprintf(opt, 2,
"a");
1945 Error(
"ShowStatus",
"stdout/stderr redirection failed; skipping");
1952 Error(
"ShowStatus",
"stdout/stderr retore failed; skipping");
1969 Error(
"ShowStatus",
"stdout/stderr redirection failed; skipping");
1975 Error(
"ShowStatus",
"stdout/stderr retore failed; skipping");
2022 "Shutting down Local Sessions is not allowed !",
2032 m.
Form(
"Are you sure to shutdown the session \"%s\"",
2038 if (result !=
kMBOk)
2072 fTxtQueryName(0), fTxtChain(0), fTxtSelector(0), fTxtOptions(0),
2073 fNumEntries(0), fNumFirstEntry(0), fTxtParFile(0), fTxtEventList(0),
2074 fViewer(0), fQuery(0), fChain(0)
2114 btnTmp->
Connect(
"Clicked()",
"TEditQueryFrame",
this,
"OnBrowseChain()");
2125 btnTmp->
Connect(
"Clicked()",
"TEditQueryFrame",
this,
"OnBrowseSelector()");
2130 fBtnMore->
Connect(
"Clicked()",
"TEditQueryFrame",
this,
"OnNewQueryMore()");
2175 btnTmp->
Connect(
"Clicked()",
"TEditQueryFrame",
this,
"OnBrowseEventList()");
2186 "SettingsChanged()");
2188 "SettingsChanged()");
2190 "SettingsChanged()");
2192 "SettingsChanged()");
2194 "SettingsChanged()");
2196 "SettingsChanged()");
2198 "SettingsChanged()");
2222 dlg->
Connect(
"OnElementSelected(TObject *)",
"TEditQueryFrame",
2223 this,
"OnElementSelected(TObject *)");
2372 fBtnAbort(0), fBtnShowLog(0), fBtnRetrieve(0), fBtnSave(0), fInfoTextView(0),
2373 fModified(0), fFiles(0),
fFirst(0), fEntries(0), fPrevTotal(0),
2374 fPrevProcessed(0), fLabInfos(0), fLabStatus(0), fTotal(0), fRate(0),
2375 fStatus(kStopped), fTab(0), fFA(0), fFB(0), fFC(0), fFD(0), frmProg(0),
2376 fECanvas(0), fStatsCanvas(0), fViewer(0), fDesc(0)
2453 " Estimated time left : 0 sec (--- events of --- processed) "),
2457 " Processing Rate : -- events/sec "),
2496 btntxt =
" Submit ";
2499 btntxt =
" Apply changes ";
2573 while (kFeedbackHistos[i]) {
2576 if ( (o = objs->
FindObject(kFeedbackHistos[i]))) {
2579 if (
TH1 *
h = dynamic_cast<TH1*>(o)) {
2587 else if (
TH2 *h2 = dynamic_cast<TH2*>(o)) {
2628 fTotal->
SetText(
" Estimated time left : 0 sec (0 events of 0 processed) ");
2647 buf.
Form(
"PROOF cluster : \"%s\" - %d worker nodes",
2653 buf.
Form(
" %d files, %lld events, starting event %lld",
2682 hh = (
UInt_t)(tt / 3600);
2683 mm = (
UInt_t)((tt % 3600) / 60);
2684 ss = (
UInt_t)((tt % 3600) % 60);
2687 stm.
Form(
"%d h %d min %d sec", hh, mm, ss);
2689 stm.
Form(
"%d min %d sec", mm, ss);
2691 stm.
Form(
"%d sec", ss);
2692 if (processed == total) {
2696 hh = (
UInt_t)(tt / 3600);
2697 mm = (
UInt_t)((tt % 3600) / 60);
2698 ss = (
UInt_t)((tt % 3600) % 60);
2701 stm.
Form(
"%d h %d min %d sec", hh, mm, ss);
2703 stm.
Form(
"%d min %d sec", mm, ss);
2705 stm.
Form(
"%d sec", ss);
2706 buf.
Form(
" Processed : %lld events in %s", total, stm.
Data());
2710 buf.
Form(
" Estimated time left : %s (%lld events of %lld processed) ",
2714 if (processed > 0 && (
Long64_t)tdiff > 0) {
2715 buf.
Form(
" Processing Rate : %.1f events/sec ",
2751 cproc =
" - ABORTED";
2755 cproc =
" - STOPPED";
2771 if (processed < 0) processed = 0;
2778 else if (status == -1 ) {
2779 fTotal->
SetText(
" Estimated time left : 0 sec (0 events of 0 processed) ");
2799 buf.
Form(
" %d files, %lld events, starting event %lld",
2806 if (processed > 0 && total > 0)
2827 hh = (
UInt_t)(tt / 3600);
2828 mm = (
UInt_t)((tt % 3600) / 60);
2829 ss = (
UInt_t)((tt % 3600) % 60);
2837 if ((processed != total) && (status ==
kRunning)) {
2839 buf.
Form(
" Estimated time left : %s (%lld events of %lld processed) ",
2845 hh = (
UInt_t)(tt / 3600);
2846 mm = (
UInt_t)((tt % 3600) / 60);
2847 ss = (
UInt_t)((tt % 3600) % 60);
2855 buf.
Form(
" Processed : %ld events in %s",
2860 if (processed > 0 && (
Long64_t)tdiff > 0) {
2861 buf.
Form(
" Processing Rate : %.1f events/sec ",
2875 if (aborted ==
kTRUE) {
2887 this,
"Progress(Long64_t,Long64_t)");
2889 this,
"Progress(Long64_t,Long64_t,Long64_t,Float_t,Float_t,Float_t,Float_t)");
2890 fViewer->
GetActDesc()->
fProof->
Disconnect(
"Progress(Long64_t,Long64_t,Long64_t,Float_t,Float_t,Float_t,Float_t,Int_t,Int_t,Float_t)",
2891 this,
"Progress(Long64_t,Long64_t,Long64_t,Float_t,Float_t,Float_t,Float_t,Int_t,Int_t,Float_t)");
2893 "IndicateStop(Bool_t)");
2904 fFiles = files > 0 ? files : 0;
2915 buf.
Form(
"%0d files, %0lld events, starting event %0lld",
2923 "TSessionQueryFrame",
this,
"Progress(Long64_t,Long64_t)");
2925 "TSessionQueryFrame",
this,
2926 "Progress(Long64_t,Long64_t,Long64_t,Float_t,Float_t,Float_t,Float_t)");
2928 "TSessionQueryFrame",
this,
"IndicateStop(Bool_t)");
2929 buf.
Form(
"PROOF cluster : \"%s\" - %d worker nodes",
2987 gROOT->SetInterrupt();
3073 gROOT->SetInterrupt();
3112 while (kFeedbackHistos[i]) {
3122 "Feedback(TList *objs)");
3159 Error(
"Submit",
"No TChain defined; skipping");
3174 while (kFeedbackHistos[i]) {
3205 "Only TChains are allowed in Local Session (no TDSet) !",
3210 Error(
"Submit",
"No TChain defined; skipping");
3233 if (desc != query)
return;
3335 const char *qst[] = {
"aborted ",
"submitted",
"running ",
3336 "stopped ",
"completed"};
3370 fTotal->
SetText(
" Estimated time left : 0 sec (0 events of 0 processed) ");
3385 buffer =
TString::Format(
"------------------------------------------------------\n");
3388 const char *fin = result->
IsFinalized() ?
"finalized" : qst[st];
3389 const char *arc = result->
IsArchived() ?
"(A)" :
"";
3396 buffer +=
TString::Format(
"------------------------------------------------------\n");
3403 buffer +=
TString::Format(
"------------------------------------------------------\n");
3411 buffer +=
TString::Format(
" Real time : %d sec (CPU time: %.1f sec)\n",
3416 if (result->
GetEntries() > -1 && elapsed > 0)
3419 buffer +=
TString::Format(
" Processed : %lld events (size: %.3f MBs)\n",
3434 res.
Insert(0,
"<PROOF_SandBox>/");
3438 "not available" :
"sent to client";
3442 buffer +=
TString::Format(
"------------------------------------------------------\n");
3449 buffer +=
TString::Format(
"------------------------------------------------------\n");
3466 buffer =
TString::Format(
" Processing Rate : %.1f events/sec ", rate);
3509 frmListView->
Connect(
"Clicked(TGLVEntry*, Int_t, Int_t, Int_t)",
3510 "TSessionOutputFrame",
this,
3511 "OnElementClicked(TGLVEntry* ,Int_t, Int_t, Int_t)");
3512 frmListView->
Connect(
"DoubleClicked(TGLVEntry*, Int_t, Int_t, Int_t)",
3513 "TSessionOutputFrame",
this,
3514 "OnElementDblClicked(TGLVEntry* ,Int_t, Int_t, Int_t)");
3524 if ((obj) && (btn ==3)) {
3544 if (act[0] ==
'!') {
3636 gSessionViewer =
this;
3644 fSessionHierarchy(0), fSessionItem(0)
3654 gSessionViewer =
this;
3668 const char *fn = (filename && strlen(filename)) ? filename :
fConfigFile.
Data();
3699 while (kFeedbackHistos[i]) {
3720 localdesc->
fTag =
"";
3721 localdesc->
fName =
"Local";
3723 localdesc->
fPort = 0;
3752 litedesc->
fTag =
"";
3753 litedesc->
fName =
"PROOF Lite";
3755 litedesc->
fPort = 0;
3778 if ((s = strstr(er->GetName(),
"SessionDescription."))) {
3786 if (name.
IsNull())
break;
3787 TString sessiontag = strtok(0,
";");
3788 TString address = strtok(0,
";");
3789 if (address.
IsNull())
break;
3790 TString port = strtok(0,
";");
3791 if (port.
IsNull())
break;
3792 TString loglevel = strtok(0,
";");
3793 if (loglevel.
IsNull())
break;
3794 TString configfile = strtok(0,
";");
3795 TString user = strtok(0,
";");
3796 if (user.
IsNull())
break;
3797 TString sync = strtok(0,
";");
3798 TString autoen = strtok(0,
";");
3802 proofDesc->
fTag = sessiontag.
Length() > 2 ? sessiontag.
Data() :
"";
3805 proofDesc->
fPort = atoi(port);
3831 if ((s = strstr(er->GetName(),
"QueryDescription."))) {
3840 if (status.
IsNull())
break;
3842 TString reference = strtok(0,
";");
3843 if (reference.
IsNull())
break;
3844 TString queryname = strtok(0,
";");
3845 if (queryname.
IsNull())
break;
3846 TString selector = strtok(0,
";");
3847 if (selector.
IsNull())
break;
3848 TString dset = strtok(0,
";");
3849 TString options = strtok(0,
";");
3850 TString eventlist = strtok(0,
";");
3851 TString nbfiles = strtok(0,
";");
3852 TString nbentries = strtok(0,
";");
3853 TString firstentry = strtok(0,
";");
3864 newquery->
fNbFiles = atoi(nbfiles);
3910 if (o && dynamic_cast<TProofMgr *>(o)) {
3921 if ((desc->
fTag == d->GetName()) ||
3922 (desc->
fName == d->GetTitle())) {
3933 if (p && ((exists && ((desc->
fTag == d->GetName()) ||
3934 (desc->
fName == d->GetTitle()))) ||
3940 desc->
fTag = d->GetName();
3948 "Progress(Long64_t,Long64_t)");
3951 "Progress(Long64_t,Long64_t,Long64_t,Float_t,Float_t,Float_t,Float_t)");
3954 "IndicateStop(Bool_t)");
3956 "ResetProgressDialog(const char*, Int_t,Long64_t,Long64_t)",
3958 "ResetProgressDialog(const char*,Int_t,Long64_t,Long64_t)");
3967 "TSessionViewer",
this,
"QueryResultReady(char *)");
4000 if (found)
continue;
4003 newdesc->
fTag = d->GetName();
4004 newdesc->
fName = d->GetTitle();
4024 "Progress(Long64_t,Long64_t)");
4025 newdesc->
fProof->
Connect(
"Progress(Long64_t,Long64_t,Long64_t,Float_t,Float_t,Float_t,Float_t)",
4027 "Progress(Long64_t,Long64_t,Long64_t,Float_t,Float_t,Float_t,Float_t)");
4030 "IndicateStop(Bool_t)");
4032 "ResetProgressDialog(const char*, Int_t,Long64_t,Long64_t)",
4034 "ResetProgressDialog(const char*,Int_t,Long64_t,Long64_t)");
4043 "TSessionViewer",
this,
"QueryResultReady(char *)");
4069 TIter nextp(proofs);
4072 while ((proof = (
TProof *)nextp())) {
4077 if (desc->
fProof == proof) {
4084 if (found)
continue;
4129 TIter nextp(sessions);
4147 if (found)
continue;
4204 Int_t scnt = 0, qcnt = 1;
4222 while (kFeedbackHistos[i]) {
4240 sessionstring += session->
fName;
4241 sessionstring +=
";";
4243 sessionstring +=
";";
4244 sessionstring += session->
fAddress;
4245 sessionstring +=
";";
4247 sessionstring +=
";";
4249 sessionstring +=
";";
4251 sessionstring +=
";";
4253 sessionstring +=
";";
4255 sessionstring +=
";";
4365 while (kFeedbackHistos[i]) {
4366 fCascadeMenu->
AddEntry(kFeedbackHistos[i], 41+i);
4369 fCascadeMenu->AddEntry(
"User defined...", 50);
4371 fCascadeMenu->DisableEntry(50);
4396 fCascadeMenu->Associate(
this);
4426 for (
int ii = 0; xpm_toolbar[ii]; ii++) {
4427 tb_data[ii].
fPixmap = xpm_toolbar[ii];
4428 if (strlen(xpm_toolbar[ii]) == 0) {
4453 "MyHandleMenu(Int_t)");
4463 "MyHandleMenu(Int_t)");
4495 "TSessionViewer",
this,
4496 "OnListTreeClicked(TGListTreeItem*, Int_t, Int_t, Int_t)");
4498 "TSessionViewer",
this,
4499 "OnListTreeDoubleClicked(TGListTreeItem*, Int_t)");
4565 int parts[] = { 36, 49, 15 };
4569 for (
int p = 0; p < 3; ++p)
4623 if (gSessionViewer ==
this)
4772 TIter nexto(objlist);
4773 while ((obj = (
TObject *) nexto())) {
4779 TIter nexti(objlist);
4780 while ((obj = (
TObject *) nexti())) {
4790 TIter nexto(objlist);
4791 while ((obj = (
TObject *) nexto())) {
4803 if (strstr(entry->
GetText(),
"Output")) {
4810 else if (strstr(entry->
GetText(),
"Input")) {
5009 struct tm *connected;
5018 connected = gmtime( &elapsed_time );
5020 buf.
Form(
" %02d:%02d:%02d", connected->tm_hour,
5021 connected->tm_min, connected->tm_sec);
5065 strtmp.
Form(
"Query Result Ready for %s", query);
5129 m.
Form(
"Are you sure to cleanup the session \"%s::%s\"",
5162 m.
Form(
"Do you really want to reset the session \"%s::%s\"",
5215 m.
Form(
"Do you want to delete query \"%s\" from server too ?",
5221 m.
Form(
"Dou you really want to delete query \"%s\" ?",
5232 else if (result ==
kMBNo || result ==
kMBOk) {
5271 if (!query->
fChain)
return;
5294 Error(
"ShowStatus",
"stdout/stderr redirection failed; skipping");
5300 Error(
"ShowStatus",
"stdout/stderr retore failed; skipping");
5311 0, 0, ax, ay, wdummy);
5329 TIter nextenabled(packlist);
5330 while ((packname = (
TObjString *)nextenabled())) {
5331 package = new TPackageDescription;
5333 package->
fName +=
".par";
5345 TIter nextpack(packlist);
5346 while ((packname = (
TObjString *)nextpack())) {
5347 package = new TPackageDescription;
5349 package->
fName +=
".par";
5379 Error(
"ShowStatus",
"stdout/stderr redirection failed; skipping");
5385 Error(
"ShowStatus",
"stdout/stderr retore failed; skipping");
5396 0, 0, ax, ay, wdummy);
5419 "TSessionViewer",
this,
"LogMessage(const char*,Bool_t)");
5460 Error(
"ShowStatus",
"stdout/stderr redirection failed; skipping");
5466 Error(
"ShowStatus",
"stdout/stderr retore failed; skipping");
5477 0, 0, ax, ay, wdummy);
5574 while (kFeedbackHistos[i]) {
5589 while (kFeedbackHistos[i]) {
5820 if (!rootx.
IsNull()) rootx +=
"/bin";
5822 rootx +=
"/root -a &";
5829 sprintf(str,
"About ROOT %s...",
gROOT->GetVersion());
const char * GetName() const
Returns name of object.
TGTextButton * fBtnRemove
TGPopupMenu * fOptionsMenu
virtual void Clear(Option_t *="")
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual Int_t GetNumberOfEntries() const
void OnBtnSubmit()
Submit query.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual Int_t GetEntries() const
virtual const char * GetTitle() const
Returns title of object.
void AddFeedback(const char *name)
Add object to feedback list.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void AddAt(TObject *obj, Int_t idx)
Insert object at position idx in the list.
void OnUploadPackages()
Upload selected package(s) to the current session.
virtual void SetBarOffset(Float_t offset=0.25)
virtual void SetAlias(const char *alias="")
Set an alias for this session.
void Build(TSessionViewer *gui)
Build query information frame.
void OnApplyParallel()
Apply selected number of workers on current Proof session.
virtual Long_t ProcessLine(const char *line, Bool_t sync=kFALSE, Int_t *error=0)
Process a single command line, either a C++ statement or an interpreter command starting with a "...
TGPopupMenu * GetCascadeMenu() const
void CleanupSession()
Clean-up Proof session.
void StartupMessage(char *msg, Bool_t stat, Int_t curr, Int_t total)
Handle startup message (connection progress) coming from Proof session.
void RemoveAll()
Remove all frames from composite frame.
virtual void Resize(UInt_t w, UInt_t h)
Resize the listbox widget.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
void SetBusy(Bool_t busy=kTRUE)
void OnElementSelected(TObject *obj)
Handle OnElementSelected signal coming from new chain dialog.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
virtual void Clear(Option_t *="")
Clear text view widget.
TSessionServerFrame(TGWindow *parent, Int_t w, Int_t h)
Constructor.
UInt_t Convert(Bool_t toGMT=kFALSE) const
Convert fDatime from TDatime format to the standard time_t format.
virtual void AddEntry(TGString *s, Int_t id)
Add entry with specified string and id to listbox.
Int_t ClearPackages()
Remove all packages.
void OnNewQueryMore()
Show/hide options frame and update button text accordingly.
TGListTree * fSessionHierarchy
void ChangeRightLogo(const char *name)
Change the right logo (used for animation).
#define snext(osub1, osub2)
TGTextEntry * fTxtAddress
virtual void * GetUserData() const =0
TGListTreeItem * FindChildByData(TGListTreeItem *item, void *userData)
Find child of item by userData.
void Popup()
Display dialog and set focus to query name text entry.
virtual Int_t GetSelected() const
Return id of selected listbox item.
void UpdateInfos()
Update query information (header) text view.
TGListTreeItem * FindItemByObj(TGListTreeItem *item, void *ptr)
Find item with fUserData == ptr.
void OnStartupEnable(Bool_t on)
Handle multiple selection check button.
Int_t EnablePackage(const char *package, Bool_t notOnClient=kFALSE, TList *workers=0)
Enable specified package.
virtual const char * WorkingDirectory()
Return working directory.
TGCompositeFrame * fFrmMore
virtual void SetAlignment(ETextJustification mode=kTextLeft)
Sets the alignment of the text entry.
Int_t DeleteItem(TGListTreeItem *item)
Delete item from list tree.
Bool_t IsFinalized() const
void Reset()
Reset the timer.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
TEditQueryFrame * GetQueryEditFrame() const
void ProofInfos()
Display information on current session.
virtual TList * GetOutputList() const
virtual Bool_t LoadBuffer(const char *txtbuf)
Load text from a text buffer. Return false in case of failure.
Collectable string class.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
Int_t GetRemoteProtocol() const
void LoadBuffer(const char *buffer)
Load a text buffer in the editor.
TGLVContainer * fLVContainer
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
R__EXTERN void * gTQSender
void OnBtnDownClicked()
Move selected package entry one position down in the list.
void OnBrowseSelector()
Open file browser to choose selector macro.
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
void ShowLog(const char *queryref)
Display the content of the temporary log file for queryref into a new text window.
TGTextButton * fBtnNewQuery
const TGWindow * GetRoot() const
Returns current root (i.e.
static Pixel_t GetWhitePixel()
Get white pixel value.
void OnListTreeDoubleClicked(TGListTreeItem *entry, Int_t btn)
Handle mouse double clicks in list tree (connect to server).
void UpdateButtons(TQueryDescription *desc)
Update buttons state for the current query status.
const Mask_t kLeaveWindowMask
virtual void SetBorderMode(Short_t bordermode)
virtual Long64_t GetEntries() const
Return the total number of entries in the chain.
void OnBtnAddClicked()
Open file dialog and add selected package file to the list.
void Update(TSessionDescription *desc)
Update fields with values from session description desc.
virtual void SetFrame(TGFrame *frame, Bool_t left)
Set frame to be resized.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual TFileCollection * GetDataSet(const char *dataset, const char *optStr="")
Get a list of TFileInfo objects describing the files of the specified dataset.
void OnBtnAbort()
Abort processing query.
void DeleteQuery()
Delete query from list tree and ask user if they want to delete it also from server.
const char * GetOptions() const
virtual const char * HomeDirectory(const char *userName=0)
Return the user's home directory.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
TGTextButton * fBtnRetrieve
static const char * filename()
EQueryStatus GetStatus() const
void OnBtnStop()
Stop processing query.
const char * GetConfFile() const
void LoadFile(const char *file)
Load a file in the editor.
TGPopupMenu * fCascadeMenu
void OnBrowseEventList()
Browse event list.
virtual void Associate(const TGWindow *w)
virtual const char * TempDirectory() const
Return a user configured or systemwide directory to create temporary files in.
TSessionDescription * GetActDesc() const
The TEnv class reads config files, by default named .rootrc.
virtual TList * GetList() const
const char * GetSessionTag() const
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
TContextMenu * fContextMenu
virtual void SetMultipleSelections(Bool_t multi=kTRUE)
virtual void ShowFrame(TGFrame *f)
Show sub frame.
Int_t DeleteChildren(TGListTreeItem *item)
Delete children of item from list.
virtual ~TSessionQueryFrame()
Destructor.
virtual Bool_t HandleExpose(Event_t *event)
Handle expose event in server frame.
void SetQueryMode(EQueryMode mode)
Change query running mode to the one specified by 'mode'.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
void ShowLog(Int_t qry=-1)
Display on screen the content of the temporary log file.
TGCheckButton * fChkMulti
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
TSessionServerFrame * fServerFrame
void Build(TSessionViewer *gui)
Build session frame.
R__EXTERN TApplication * gApplication
Basic time type with millisecond precision.
void OnApplyLogLevel()
Apply selected log level on current session.
TMacro * GetSelecImp() const
void OnBtnRetrieve()
Retrieve query.
void SetLogLevel(Int_t log)
virtual ~TSessionFrame()
Destructor.
TGTextButton * fApplyParallel
TVirtualTreePlayer * GetPlayer()
Load the TTreePlayer (if not already done).
void OnBtnAddClicked()
Add newly created session configuration in the list of sessions.
const TGPicture * fProofCon
TList * GetSessions() const
void OnBtnRemoveDSet()
Remove dataset from the list and from the cluster.
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
TGPopupMenu * fSessionMenu
TGTextEntry * fCommandTxt
TSessionOutputFrame(TGWindow *parent, Int_t w, Int_t h)
Constructor.
Long64_t GetBytesRead() const
TString & Insert(Ssiz_t pos, const char *s)
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
Remove a range of entries defined by from_ID and to_ID.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
TCanvas * GetCanvas() const
TUrl * GetFirstUrl() const
Bool_t ReturnFromRun() const
virtual void Layout()
Layout the elements of the composite frame.
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0
ClassImp(TQueryDescription) ClassImp(TSessionDescription) ClassImp(TSessionServerFrame) ClassImp(TSessionFrame) ClassImp(TSessionQueryFrame) ClassImp(TSessionOutputFrame) ClassImp(TSessionInputFrame) ClassImp(TSessionViewer) const char *xpm_names[]
R__EXTERN const char gHelpAbout[]
const TGPicture * fProofDiscon
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
void OnBtnShowLogClicked()
Show session log.
virtual Bool_t IsValid() const
void OnCommandLine()
Command line handling.
virtual Long64_t GetReadEntry() const
See TTree::GetReadEntry().
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
virtual void SetBarWidth(Float_t width=0.5)
static TProofMgr * Mgr(const char *url)
Get instance of the effective manager for 'url' Return 0 on failure.
virtual void SetBarColor(Pixel_t color)
Set progress bar color.
TGNumberEntry * fLogLevel
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=0)
Set the value of a resource or create a new resource.
void OnBtnNewServerClicked()
Reset server configuration fields.
TGTextEntry * fTxtUsrName
const Mask_t kPointerMotionMask
const TGPicture * GetProofConPict() const
const char * Data() const
TGListTreeItem * GetParent() const
TGListTreeItem * FindChildByName(TGListTreeItem *item, const char *name)
Find child of item by name.
virtual void SelectAll()
Selects all text (i.e.
TGTextButton * fBtnEnable
TGCompositeFrame * fFrmNewServer
TSessionViewer(const char *title="ROOT Session Viewer", UInt_t w=550, UInt_t h=320)
Main Session viewer constructor.
virtual int Unlink(const char *name)
Unlink, i.e. remove, a file.
Sequenceable collection abstract base class.
const char * GetParList() const
TGTextButton * fBtnDisable
TGNumberEntryField * GetNumberEntry() const
void DisableTimer()
Disable animation timer.
void OnBtnConnectClicked()
Connect to selected server.
void StopProcess(Bool_t abort, Int_t timeout=-1)
Send STOPPROCESS message to master and workers.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
void ShowStatus()
Retrieve and display Proof status.
void OnBtnDeleteClicked()
Delete selected session configuration (remove it from the list).
TGCheckButton * fClearCheck
TGTextButton * fBtnShowLog
const char * kFeedbackHistos[]
TQueryDescription * fQuery
void SetLogLevel(Int_t log)
virtual void SetText(TGString *newText)
Set new text in label.
virtual void SetUserData(void *, Bool_t=kFALSE)
void SetLogLevel(Int_t level, UInt_t mask=TProofDebug::kAll)
Set server logging level.
TGTextEntry * fTxtEventList
void ShowEnabledPackages()
Query list of enabled packages from proof and display it into a new text window.
void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
void SetToolTipItem(TGListTreeItem *item, const char *string)
Set tooltip text for this item.
TGStatusBar * GetStatusBar() const
void FreePicture(const TGPicture *pic)
Free picture resource.
const char * GetText() const
void OnListTreeClicked(TGListTreeItem *entry, Int_t btn, Int_t x, Int_t y)
Handle mouse clicks in list tree.
virtual Int_t WriteFile(const char *fname, EEnvLevel level=kEnvAll)
Write resource records to file fname for a certain level.
virtual void SetFocus()
Set focus to this text entry.
const char * GetMaster() const
TRootEmbeddedCanvas * fECanvas
TGCompositeFrame(const TGCompositeFrame &)
virtual const char * Getenv(const char *env)
Get environment variable.
virtual UInt_t Integer(UInt_t imax)
Returns a random integer on [ 0, imax-1 ].
void OnBtnGetQueriesClicked()
Get list of queries from current Proof server and populate the list tree.
void Clear(Option_t *option="")
Remove all primitives from the canvas.
TGTextButton * fApplyLogLevel
if(pyself &&pyself!=Py_None)
TGNumberEntry * fNumEntries
TSessionFrame * GetSessionFrame() const
void OnCascadeMenu()
Handle feedback histograms configuration menu.
virtual UserGroup_t * GetUserInfo(Int_t uid)
Returns all user info in the UserGroup_t structure.
const TGPicture * fQueryDiscon
void WriteConfiguration(const char *filename=0)
Save actual configuration in config file "filename".
virtual void ShowBottom()
Show bottom of the page.
const char * GetUser() const
TQueryResult * GetQueryResult(const char *ref=0)
Return pointer to the full TQueryResult instance owned by the player and referenced by 'ref'...
Bool_t IsParallel() const
virtual Bool_t LoadFile(const char *fname, long startpos=0, long length=-1)
Load a file in the text view widget.
void UpdatePackages()
Update list of packages.
void UpdateHistos(TList *objs)
Update feedback histograms.
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void ShutdownSession()
Shutdown current session.
void EditQuery()
Edit currently selected query.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TGFrame * GetContainer() const
A container class for query results.
TGTextButton * fBtnShowLog
TSessionQueryFrame * GetQueryFrame() const
TGTextView * fInfoTextView
Long64_t GetEntries() const
virtual UInt_t GetDefaultWidth() const
TGTextButton * fBtnConnect
void OnElementClicked(TGLVEntry *entry, Int_t btn, Int_t x, Int_t y)
Handle mouse clicks on list view items.
const char *const kSession_RedirectFile
virtual TList * GetListOfQueries(Option_t *opt="")
Ask the master for the list of queries.
virtual void SetEditable(Bool_t mode=kTRUE)
Set pad editable yes/no If a pad is not editable:
TGListTreeItem * GetFirstItem() const
TGTextBuffer * fCommandBuf
virtual TProof * AttachSession(Int_t, Bool_t=kFALSE)
Dummy version provided for completeness.
virtual TGLBEntry * Select(Int_t id, Bool_t sel=kTRUE)
const char * xpm_toolbar[]
virtual ~TSessionViewer()
Destructor.
Int_t CleanupSession(const char *sessiontag)
Send cleanup request for the session specified by tag.
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t)
Handle messages send to the TSessionViewer object.
const Mask_t kButtonPressMask
virtual Int_t ReadFile(const char *fname, EEnvLevel level)
Read and parse the resource file for a certain level.
virtual ~TSessionOutputFrame()
Destructor.
void cd(Int_t id=-1)
Set session with 'id' the default one.
void OpenItem(TGListTreeItem *item)
Open item in list tree (i.e. show child items).
Int_t Remove(Int_t query, Bool_t all=kFALSE)
Send remove request for the qry-th query in fQueries.
Int_t UploadPackage(const char *par, EUploadPackageOpt opt=kUntar, TList *workers=0)
Upload a PROOF archive (PAR file).
void Terminate()
Terminate Session : save configuration, clean temporary files and close Proof connections.
void UpdateListOfPackages()
Update the list of packages.
void ResetProgressDialog(const char *selec, Int_t files, Long64_t first, Long64_t entries)
Reset progress frame information fields.
const Mask_t kKeyPressMask
void SetChangePic(Bool_t change)
Using a TBrowser one can browse all ROOT objects.
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...
TGCheckButton * fChkEnable
void SetUserData(void *userData)
virtual void Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
void SettingsChanged()
Settings have changed, update GUI accordingly.
void MyHandleMenu(Int_t)
Handle session viewer custom popup menus.
virtual TTime Now()
Get current time in milliseconds since 0:00 Jan 1 1995.
TGHProgressBar * fConnectProg
TSessionFrame(TGWindow *parent, Int_t w, Int_t h)
Constructor.
TGTabElement * GetTabTab(Int_t tabIndex) const
Return the tab element of tab with index tabIndex.
TGPicture * fRightIconPicture
TString GetString() const
void SetAddEnabled(Bool_t on=kTRUE)
TGListTree * fDataSetTree
Service class for 2-Dim histogram classes.
R__EXTERN TSystem * gSystem
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual UInt_t GetDefaultWidth() const
TQueryDescription * fActQuery
void Build(TSessionViewer *gui)
Build the "new query" dialog.
Bool_t fMultipleSelection
Float_t GetUsedCPU() const
Bool_t IsArchived() const
virtual void SetFillColor(Color_t fcolor)
void RemoveInput(UInt_t emask)
Remove events specified in emask from the events the frame should handle.
virtual void GetSelectedEntries(TList *selected)
Adds all selected entries (TGLBEntry) of the list box into the list selected.
Bool_t IsVisible(TGFrame *f) const
Get state of sub frame.
virtual TProof * CreateSession(const char *=0, const char *=0, Int_t=-1)
Create a new remote session (master and associated workers).
void OnElementDblClicked(TGLVEntry *entry, Int_t btn, Int_t x, Int_t y)
Handle double-clicks on list view items.
Long64_t GetBytes() const
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
Int_t GetLogLevel() const
void IndicateStop(Bool_t aborted)
Indicate that Cancel or Stop was clicked.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual UInt_t GetDefaultHeight() const
void ShowPackages(Bool_t all=kFALSE, Bool_t redirlog=kFALSE)
List contents of package directory.
TGListTree * GetSessionHierarchy() const
TSessionQueryFrame * fQueryFrame
void OnBtnNewQueryClicked()
Call "New Query" Dialog.
void AddItem(TGListTreeItem *parent, TGListTreeItem *item)
Add given item to list tree.
void Progress(Long64_t total, Long64_t processed)
Update progress bar and status labels.
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
void Build(TSessionViewer *gui)
Build server configuration frame.
virtual Bool_t SetTab(Int_t tabIndex, Bool_t emit=kTRUE)
Brings the composite frame with the index tabIndex to the front and generate the following event if t...
TGTextEntry * fTxtSelector
TEditQueryFrame(TGWindow *p, Int_t w, Int_t h)
Create a new Query dialog, used by the Session Viewer, to Edit a Query if the editmode flag is set...
const char * GetName() const
Returns name of object.
virtual Int_t VerifyDataSet(const char *dataset, const char *optStr="")
Verify if all files in the specified dataset are available.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
virtual const char * GetText() const =0
char * Form(const char *fmt,...)
void ClearHighlighted()
Un highlight items.
void OnBtnSave()
Save current settings in main session viewer.
void ProgressLocal(Long64_t total, Long64_t processed)
Update progress bar and status labels.
void OnConfigFileClicked()
Browse configuration files.
virtual void TurnOff()
Remove timer from system timer list.
TGTextButton * fBtnUpload
const TGPicture * fBaseIcon
Handles synchronous and a-synchronous timer events.
virtual const char * GetName() const
Returns name of object.
TSessionDescription * fActDesc
virtual Int_t Reset(Bool_t hard=kFALSE, const char *usr=0)
Send a cleanup request for the sessions associated with the current user.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
virtual void AddItem(TGLVEntry *item)
Int_t Exec(const char *cmd, ESlaves list, Bool_t plusMaster)
Send command to be executed on the PROOF master and/or slaves.
void OnBtnRemoveClicked()
Remove selected package from the list.
void ShowPosition(Bool_t set=kTRUE, Bool_t percent=kTRUE, const char *format="%.2f")
Show postion text, either in percent or formatted according format.
THashList * GetTable() const
virtual void SetIntNumber(Long_t val)
R__EXTERN TRandom * gRandom
TSessionFrame * fSessionFrame
TGPopupMenu * GetOptionsMenu() const
virtual ~TEditQueryFrame()
Delete query dialog.
const char * GetResultFile() const
TContextMenu * GetContextMenu() const
void OnBrowseChain()
Call new chain dialog.
void SetLocal(Bool_t local=kTRUE)
Switch widgets status/visibility for local/remote sessions.
TGMimeTypes * GetMimeTypeList() const
const char * macrotypes[]
TDatime GetStartTime() const
virtual void ClearViewPort()
Clear view port and redraw full content.
void UpdateListOfProofs()
Update list of existing Proof sessions.
virtual void Move(Int_t x, Int_t y)
Move frame.
char * StrDup(const char *str)
Duplicate the string str.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual void SetText(TGHotString *new_label)
Set new button text.
void UpdateFields(TQueryDescription *desc)
Update entry fields with query description values.
TGTextButton * fBtnShowEnabled
void Feedback(TList *objs)
Feedback function connected to Feedback signal.
Bool_t GetAction(const char *filename, char *action)
Return in action the mime action string belonging to filename.
void ShowInfo(const char *txt)
Display text in status bar.
static unsigned int total
virtual TObject * Last() const
Return the last object in the list. Returns 0 when list is empty.
virtual Int_t RedirectOutput(const char *name, const char *mode="a", RedirectHandle_t *h=0)
Redirect standard output (stdout, stderr) to the specified file.
TGListTreeItem * GetSelected() const
void OnDisablePackages()
Disable selected package(s) in the current session.
void Build(TSessionViewer *gui)
Build query output information frame.
TString & Remove(Ssiz_t pos)
const Mask_t kEnterWindowMask
Float_t GetRealTime() const
UInt_t GetTextLength() const
TGTextEntry * fTxtOptions
virtual ~TSessionServerFrame()
Destructor.
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
TObject * GetInputObject(const char *classname) const
Return first instance of class 'classname' in the input list.
TGLVContainer * GetLVContainer()
void SendLogToWindow(Bool_t mode)
virtual Int_t GetSize() const
void SetEnabled(Bool_t flag=kTRUE)
Long64_t GetFirst() const
void Modified(Bool_t mod=kTRUE)
Notify changes in query editor settings.
void CheckAutoEnPack(Bool_t checked=kTRUE)
TGTextButton * fBtnRemoveDSet
void DisableOpen(Bool_t disable=kTRUE)
virtual const char * GetName() const
Returns name of object.
virtual const char * HostName()
Return the system's host name.
void AddObject(TObject *obj)
Add object to output list view.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
TSessionOutputFrame * fOutputFrame
void LogMessage(const char *msg, Bool_t all)
Load/append a log msg in the log frame.
const Mask_t kButtonReleaseMask
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
void SetPosition(Float_t pos)
Set progress position between [min,max].
void * GetUserData() const
void OnBtnShowLog()
Show query log.
void Detach(Option_t *opt="")
Detach this instance to its proofserv.
void OnBtnUploadDSet()
Open Upload Dataset dialog.
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
void CloseWindow()
Close main Session Viewer window.
Bool_t IsAutoSave() const
TGNumberEntry * fNumFirstEntry
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Clear(Option_t *option="")
Remove all objects from the list.
void OnClearPackages()
Clear (disable) all packages in the current session.
Long64_t Finalize(Int_t query=-1, Bool_t force=kFALSE)
Finalize the qry-th query in fQueries.
void SetConnectEnabled(Bool_t on=kTRUE)
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
TGTextButton * fBtnGetQueries
virtual void SetPictures(const TGPicture *, const TGPicture *)
void OnBtnDisconnectClicked()
Disconnect from current Proof session.
void ShowPackages()
Query the list of uploaded packages from proof and display it into a new text window.
virtual void Build()
Build main session viewer frame and subframes.
TSessionInputFrame * fInputFrame
Mother of all ROOT objects.
Float_t GetCpuTime() const
virtual void Reset()
Reset progress bar (i.e. set pos to 0).
const char Int_t const char TProof * proof
virtual void Layout()
Layout the listbox components.
TGListTreeItem * GetSessionItem() const
void UpdateListOfSessions()
Update list of existing Proof sessions.
TGTextButton * fBtnUploadDSet
TGListTreeItem * fSessionItem
TList * GetListOfEnabledPackages()
Get from the master the list of names of the packages enabled.
TGHProgressBar * GetConnectProg() const
Bool_t SendingLogToWindow() const
void ShowEnabledPackages(Bool_t all=kFALSE)
List which packages are enabled.
virtual UInt_t GetDefaultHeight() const
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
virtual void Add(TObject *obj)
virtual TList * QuerySessions(Option_t *opt="S")
Get list of sessions accessible to this manager.
const char * GetConfDir() const
const char *const kSession_RedirectCmd
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
A chain is a collection of files containg TTree objects.
TSessionQueryFrame(TGWindow *parent, Int_t w, Int_t h)
Constructor.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
void ClearFeedback()
Clear feedback list.
Int_t SetParallel(Int_t nodes=-1, Bool_t random=kFALSE)
Tell PROOF how many slaves to use in parallel.
TGTextButton * fBtnFinalize
Int_t GetClientProtocol() const
TGTextBuffer * GetBuffer() const
virtual void SetParts(Int_t npart)
Divide the status bar in npart equal sized parts.
void QueryResultReady(char *query)
Handle signal "query result ready" coming from Proof session.
virtual Long_t GetIntNumber() const
TList * GetListOfPackages()
Get from the master the list of names of the packages available.
Class describing a generic file including meta information.
Int_t Retrieve(Int_t query, const char *path=0)
Send retrieve request for the qry-th query in fQueries.
TGTextView * fInfoTextView
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process messages for session server frame.
const TGPicture * GetQueryConPict() const
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
void ReadConfiguration(const char *filename=0)
Read configuration file and populate list of sessions list of queries and list of packages...
const char * GetImage() const
Bool_t HandleTimer(TTimer *)
Handle animation timer.
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 Int_t RemoveDataSet(const char *dataset, const char *optStr="")
Remove the specified dataset from the PROOF cluster.
void OnBtnFinalize()
Finalize query.
virtual void Update()
Update canvas pad buffers.
static TProofMgr * Create(const char *url, Int_t loglevel=-1, const char *alias=0, Bool_t xpd=kTRUE)
Static method returning the appropriate TProofMgr object using the plugin manager.
Implement some of the functionality of the class TTree requiring access to extra libraries (Histogram...
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
void OnBtnUpClicked()
Move selected package entry one position up in the list.
void HighlightItem(TGListTreeItem *item)
Highlight item.
void OnEnablePackages()
Enable selected package(s) in the current session.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
TGTextButton * fBtnVerifyDSet
virtual void DeleteWindow()
Delete window.
const char * AsString() const
Return the date & time as a string (ctime() format).
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
TGTextEntry * fTxtQueryName
Int_t ClearPackage(const char *package)
Remove a specific package.
virtual const char * GetTitle() const
Returns title of object.
const Mask_t kAnyModifier
virtual void TurnOn()
Add the timer to the system timer list.
TGTextButton * fBtnSubmit
void ResetSession()
Reset Proof session.
ESessionQueryStatus fStatus
virtual void SetPicture(const TGPicture *pic)
Set icon picture.
Int_t GetParallel() const
Returns number of slaves active in parallel mode.
const TGPicture * fQueryCon
TGTextButton * fBtnRefresh
void EnableTimer()
Enable animation timer.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
TGTextEntry * fTxtParallel
void Modified(Bool_t flag=1)
TGCompositeFrame * GetBarPart(Int_t npart) const
Returns bar part.
void SettingsChanged()
Settings have changed, update GUI accordingly.
void Browse(TBrowser *b)
Build the PROOF's structure in the browser.
void AddBuffer(const char *buffer)
Load a text buffer in the editor.
void SetSelected(TGListTreeItem *item)
virtual int GetSysInfo(SysInfo_t *info) const
Returns static system info, like OS type, CPU type, number of CPUs RAM size, etc into the SysInfo_t s...
void StartViewer()
Start TreeViewer from selected TChain.
void OnMultipleSelection(Bool_t on)
Handle multiple selection check button.
TDatime GetEndTime() const
void UpdateListOfDataSets()
Update list of dataset present on the cluster.
void RenameItem(TGListTreeItem *item, const char *string)
Rename item in list tree.
TGNumberEntry * fLogLevel
TCanvas * GetStatsCanvas() const
virtual TObject * First() const =0
TProof * GetProof() const
void OnBtnVerifyDSet()
Verify that the files in the selected dataset are present on the cluster.
const TGPicture * GetProofDisconPict() const
TSessionLogView * fLogWindow