Logo ROOT   6.10/09
Reference Guide
TProofProgressDialog.h
Go to the documentation of this file.
1 // @(#)root/sessionviewer:$Id$
2 // Author: Fons Rademakers 21/03/03
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2003, 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_TProofProgressDialog
13 #define ROOT_TProofProgressDialog
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TProofProgressDialog //
19 // //
20 // This class provides a query progress bar. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "TTime.h"
25 #include "TString.h"
26 
27 class TGTransientFrame;
28 class TGProgressBar;
29 class TGTextButton;
30 class TGCheckButton;
31 class TGLabel;
32 class TGTextBuffer;
33 class TGTextEntry;
34 class TProof;
35 class TProofProgressLog;
37 class TNtuple;
38 class TGraph;
39 class TGSpeedo;
40 
42 
43  friend class TProofProgressLog;
45 
46 private:
48 
49  TGTransientFrame *fDialog; // transient frame, main dialog window
50  TGProgressBar *fBar; // progress bar
72  Bool_t fSpeedoEnabled; // whether to enable the speedometer
73  TGSpeedo *fSpeedo; // speedometer
74  TGCheckButton *fSmoothSpeedo; // use smooth speedometer update
75  TProofProgressLog *fLogWindow; // transient frame for logs
76  TProofProgressMemoryPlot *fMemWindow; // transient frame for memory plots
99 
101 
103 
107 
108 public:
109  TProofProgressDialog(TProof *proof, const char *selector,
110  Int_t files, Long64_t first, Long64_t entries);
111  virtual ~TProofProgressDialog();
112 
113  void ResetProgressDialog(const char *sel, Int_t sz, Long64_t fst, Long64_t ent);
114  void Progress(Long64_t total, Long64_t processed);
115  void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
116  Float_t initTime, Float_t procTime,
117  Float_t evtrti, Float_t mbrti) {
118  Progress(total, processed, bytesread, initTime, procTime,
119  evtrti, mbrti, -1, -1, -1.); }
120  void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
121  Float_t initTime, Float_t procTime,
122  Float_t evtrti, Float_t mbrti, Int_t actw, Int_t tses, Float_t eses);
123  void DisableAsyn();
124  void IndicateStop(Bool_t aborted);
125  void LogMessage(const char *msg, Bool_t all);
126 
127  void CloseWindow();
128  void DoClose();
129  void DoLog();
130  void DoKeep(Bool_t on);
131  void DoSetLogQuery(Bool_t on);
132  void DoStop();
133  void DoAbort();
134  void DoAsyn();
135  void DoPlotRateGraph();
136  void DoMemoryPlot();
137  void DoEnableSpeedo();
138  void ToggleOdometerInfos();
139  void ToggleThreshold();
140 
141  ClassDef(TProofProgressDialog,0) //PROOF progress dialog
142 };
143 
144 #endif
void DoSetLogQuery(Bool_t on)
Handle log-current-query-only toggle button.
void DisableAsyn()
Disable the asyn switch when an external request for going asynchronous is issued.
long long Long64_t
Definition: RtypesCore.h:69
void ResetProgressDialog(const char *sel, Int_t sz, Long64_t fst, Long64_t ent)
Reset dialog box preparing for new query.
void DoLog()
Ask proof session for logs.
void Progress(Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti)
float Float_t
Definition: RtypesCore.h:53
void CloseWindow()
Called when dialog is closed.
void DoKeep(Bool_t on)
Handle keep toggle button.
void DoMemoryPlot()
Do a memory plot.
TGCheckButton * fKeepToggle
static TString fgTextQueryDefault
Basic string class.
Definition: TString.h:129
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Basic time type with millisecond precision.
Definition: TTime.h:27
virtual ~TProofProgressDialog()
Cleanup dialog.
#define ClassDef(name, id)
Definition: Rtypes.h:297
TProofProgressLog * fLogWindow
TGCheckButton * fSmoothSpeedo
void Progress(Long64_t total, Long64_t processed)
Update progress bar and status labels.
void DoEnableSpeedo()
Enable/Disable speedometer.
A simple TTree restricted to a list of float variables only.
Definition: TNtuple.h:28
void DoPlotRateGraph()
Handle Plot Rate Graph.
static unsigned int total
void LogMessage(const char *msg, Bool_t all)
Load/append a log msg in the log frame, if open.
double Double_t
Definition: RtypesCore.h:55
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition: TProof.h:320
void DoClose()
Close dialog.
Float_t AdjustBytes(Float_t mbs, TString &sf)
Transform MBs to GBs ot TBs and get the correct suffix.
void DoStop()
Handle Stop button.
TProofProgressMemoryPlot * fMemWindow
TProofProgressDialog(TProof *proof, const char *selector, Int_t files, Long64_t first, Long64_t entries)
Create PROOF processing progress dialog.
TGTransientFrame * fDialog
A Graph is a graphics object made of two arrays X and Y with npoints each.
Definition: TGraph.h:41
Definition: first.py:1
TGCheckButton * fLogQueryToggle
void ToggleOdometerInfos()
Toggle information displayed in Analog Meter.
void DoAsyn()
Handle Asyn button.
void DoAbort()
Handle Cancel button.
void IndicateStop(Bool_t aborted)
Indicate that Cancel or Stop was clicked.