ROOT  6.06/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 #ifndef ROOT_TTime
25 #include "TTime.h"
26 #endif
27 #ifndef ROOT_TString
28 #include "TString.h"
29 #endif
30 
31 class TGTransientFrame;
32 class TGProgressBar;
33 class TGTextButton;
34 class TGCheckButton;
35 class TGLabel;
36 class TGTextBuffer;
37 class TGTextEntry;
38 class TProof;
39 class TProofProgressLog;
41 class TNtuple;
42 class TGraph;
43 class TGSpeedo;
44 
46 
47  friend class TProofProgressLog;
49 
50 private:
52 
53  TGTransientFrame *fDialog; // transient frame, main dialog window
54  TGProgressBar *fBar; // progress bar
76  Bool_t fSpeedoEnabled; // whether to enable the speedometer
77  TGSpeedo *fSpeedo; // speedometer
78  TGCheckButton *fSmoothSpeedo; // use smooth speedometer update
79  TProofProgressLog *fLogWindow; // transient frame for logs
80  TProofProgressMemoryPlot *fMemWindow; // transient frame for memory plots
103 
105 
107 
111 
112 public:
113  TProofProgressDialog(TProof *proof, const char *selector,
114  Int_t files, Long64_t first, Long64_t entries);
115  virtual ~TProofProgressDialog();
116 
117  void ResetProgressDialog(const char *sel, Int_t sz, Long64_t fst, Long64_t ent);
118  void Progress(Long64_t total, Long64_t processed);
119  void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
120  Float_t initTime, Float_t procTime,
121  Float_t evtrti, Float_t mbrti) {
122  Progress(total, processed, bytesread, initTime, procTime,
123  evtrti, mbrti, -1, -1, -1.); }
124  void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
125  Float_t initTime, Float_t procTime,
126  Float_t evtrti, Float_t mbrti, Int_t actw, Int_t tses, Float_t eses);
127  void DisableAsyn();
128  void IndicateStop(Bool_t aborted);
129  void LogMessage(const char *msg, Bool_t all);
130 
131  void CloseWindow();
132  void DoClose();
133  void DoLog();
134  void DoKeep(Bool_t on);
135  void DoSetLogQuery(Bool_t on);
136  void DoStop();
137  void DoAbort();
138  void DoAsyn();
139  void DoPlotRateGraph();
140  void DoMemoryPlot();
141  void DoEnableSpeedo();
142  void ToggleOdometerInfos();
143  void ToggleThreshold();
144 
145  ClassDef(TProofProgressDialog,0) //PROOF progress dialog
146 };
147 
148 #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:137
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Basic time type with millisecond precision.
Definition: TTime.h:29
virtual ~TProofProgressDialog()
Cleanup dialog.
#define ClassDef(name, id)
Definition: Rtypes.h:254
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:30
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
Definition: TProof.h:339
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.
const char Int_t const char TProof * proof
Definition: TXSlave.cxx:46
TProofProgressMemoryPlot * fMemWindow
TProofProgressDialog(TProof *proof, const char *selector, Int_t files, Long64_t first, Long64_t entries)
TGTransientFrame * fDialog
A Graph is a graphics object made of two arrays X and Y with npoints each.
Definition: TGraph.h:53
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.