5 #include "bcprogressbox.inc"
7 #include "mainprogress.inc"
9 #include "mwindowgui.inc"
10 #include "bctimer.inc"
12 // Generic progress bar for the MainProgress
18 MainProgressBar(MWindow
*mwindow
, MainProgress
*mainprogress
);
21 friend class MainProgress
;
25 void update_title(char *string
, int default_
= 1);
26 void update_length(int64_t length
);
27 int update(int64_t value
);
28 void get_time(char *text
);
31 // Only defined if this is a separate window;
32 BC_ProgressBox
*progress_box
;
33 // Only defined if this is the main progress bar
34 BC_ProgressBar
*progress_bar
;
36 MainProgress
*mainprogress
;
37 // Title assigned by user
38 char default_title
[BCTEXTLEN
];
40 // Last time eta was updated
48 // Controls all progressbars and locations
53 MainProgress(MWindow
*mwindow
, MWindowGUI
*gui
);
56 // Start a progress sequence and return the bar.
57 // use_window - force opening of a new window if 1.
58 MainProgressBar
* start_progress(char *text
,
61 void end_progress(MainProgressBar
* progress_bar
);
63 ArrayList
<MainProgressBar
*> progress_bars
;
64 MainProgressBar
*mwindow_progress
;
68 // For mwindow progress
77 // c-file-style: "linux"