5 #include "bcprogressbox.inc"
7 #include "mainprogress.inc"
9 #include "mwindowgui.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(long length
);
27 int update(long 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 MainProgressBar
* start_progress(char *text
, long total_length
);
58 void end_progress(MainProgressBar
* progress_bar
);
60 ArrayList
<MainProgressBar
*> progress_bars
;
61 MainProgressBar
*mwindow_progress
;
65 // For mwindow progress