Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "TTime.h"
17#include "TString.h"
18
20class TGProgressBar;
21class TGTextButton;
22class TGCheckButton;
23class TGLabel;
24class TGTextBuffer;
25class TGTextEntry;
26class TProof;
29class TNtuple;
30class TGraph;
31class TGSpeedo;
32
34
35 friend class TProofProgressLog;
37
38private:
40
41 TGTransientFrame *fDialog; // transient frame, main dialog window
42 TGProgressBar *fBar; // progress bar
64 Bool_t fSpeedoEnabled; // whether to enable the speedometer
65 TGSpeedo *fSpeedo; // speedometer
66 TGCheckButton *fSmoothSpeedo; // use smooth speedometer update
67 TProofProgressLog *fLogWindow; // transient frame for logs
68 TProofProgressMemoryPlot *fMemWindow; // transient frame for memory plots
91
93
95
99
100public:
101 TProofProgressDialog(TProof *proof, const char *selector,
102 Int_t files, Long64_t first, Long64_t entries);
103 virtual ~TProofProgressDialog();
104
105 void ResetProgressDialog(const char *sel, Int_t sz, Long64_t fst, Long64_t ent);
106 void Progress(Long64_t total, Long64_t processed);
107 void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
108 Float_t initTime, Float_t procTime,
109 Float_t evtrti, Float_t mbrti) {
110 Progress(total, processed, bytesread, initTime, procTime,
111 evtrti, mbrti, -1, -1, -1.); }
112 void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
113 Float_t initTime, Float_t procTime,
114 Float_t evtrti, Float_t mbrti, Int_t actw, Int_t tses, Float_t eses);
115 void DisableAsyn();
116 void IndicateStop(Bool_t aborted);
117 void LogMessage(const char *msg, Bool_t all);
118
119 void CloseWindow();
120 void DoClose();
121 void DoLog();
122 void DoKeep(Bool_t on);
123 void DoSetLogQuery(Bool_t on);
124 void DoStop();
125 void DoAbort();
126 void DoAsyn();
127 void DoPlotRateGraph();
128 void DoMemoryPlot();
129 void DoEnableSpeedo();
130 void ToggleOdometerInfos();
131 void ToggleThreshold();
132
133 ClassDef(TProofProgressDialog,0) //PROOF progress dialog
134};
135
136#endif
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
float Float_t
Definition RtypesCore.h:57
long long Long64_t
Definition RtypesCore.h:80
#define ClassDef(name, id)
Definition Rtypes.h:337
static unsigned int total
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
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Selects different options.
Definition TGButton.h:264
This class handles GUI labels.
Definition TGLabel.h:24
The classes in this file implement progress bars.
TGSpeedo is a widget looking like a speedometer, with a needle, a counter and a small odometer window...
Definition TGSpeedo.h:22
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
Defines transient windows that typically are used for dialogs windows.
Definition TGFrame.h:498
A TGraph is an object made of two arrays X and Y with npoints each.
Definition TGraph.h:41
A simple TTree restricted to a list of float variables only.
Definition TNtuple.h:28
This class provides a query progress bar.
Float_t AdjustBytes(Float_t mbs, TString &sf)
Transform MBs to GBs ot TBs and get the correct suffix.
TProofProgressLog * fLogWindow
virtual ~TProofProgressDialog()
Cleanup dialog.
void DoEnableSpeedo()
Enable/Disable speedometer.
void DisableAsyn()
Disable the asyn switch when an external request for going asynchronous is issued.
void DoKeep(Bool_t on)
Handle keep toggle button.
static TString fgTextQueryDefault
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)
void Progress(Long64_t total, Long64_t processed)
Update progress bar and status labels.
void DoStop()
Handle Stop button.
void LogMessage(const char *msg, Bool_t all)
Load/append a log msg in the log frame, if open.
TGTransientFrame * fDialog
void DoMemoryPlot()
Do a memory plot.
void DoPlotRateGraph()
Handle Plot Rate Graph.
void DoAsyn()
Handle Asyn button.
TProofProgressMemoryPlot * fMemWindow
void CloseWindow()
Called when dialog is closed.
TGCheckButton * fSmoothSpeedo
void DoSetLogQuery(Bool_t on)
Handle log-current-query-only toggle button.
TGCheckButton * fLogQueryToggle
void ResetProgressDialog(const char *sel, Int_t sz, Long64_t fst, Long64_t ent)
Reset dialog box preparing for new query.
void DoAbort()
Handle Cancel button.
void DoClose()
Close dialog.
void IndicateStop(Bool_t aborted)
Indicate that Cancel or Stop was clicked.
void ToggleOdometerInfos()
Toggle information displayed in Analog Meter.
Dialog used to display Proof session logs from the Proof progress dialog.
This class implements a dialog, used to display the memory footprint on the proof workers and master.
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition TProof.h:316
Basic string class.
Definition TString.h:139
Basic time type with millisecond precision.
Definition TTime.h:27
Definition first.py:1