-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProgress.h
56 lines (39 loc) · 994 Bytes
/
Progress.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//############################################################
//
// Progress.h
//
// Matt Ginzton
// Mon Aug 3 13:17:07 PDT 1998
//
// C++ interface to tcl progressbar code.
//
//############################################################
#ifndef _PROGRESS_H_
#define _PROGRESS_H_
#include <tcl.h>
class Progress
{
public:
Progress (int end, const char* name = NULL, bool cancellable = false);
Progress (int end, const char* operation, const char* name,
bool cancellable = false);
~Progress();
bool update (int current);
bool updateInc (int increment = 1);
private:
void _init (int end, const char* name);
int value;
int maximum;
int lastUpdateTime;
int lastUpdateValue;
int nUpdates;
int iId;
int baseY;
char name[300];
double mProjMatrix[16];
class BailDetector* pBailDetector;
static int nProgressBarsActive;
};
int PlvProgressCmd(ClientData clientData, Tcl_Interp *interp,
int argc, char *argv[]);
#endif // _PROGRESS_H_