Skip to main content

Module progress_page

Module progress_page 

Source
Expand description

What scenes 4b and 6 share: they are the same screen at two moments of the run, with the same control ids.

Constants§

PROGRESS_SCALE
Progress bar steps; bytes would overflow PBM_SETRANGE32’s i32 past 2 GB.

Functions§

finish_page⚠
Shows the finished run’s state, then has the sheet move to next by pressing Next, or by page id when the next page is not the one after this.
init_progress⚠
log_line⚠
Appends to the run log and adds the line to the pane, where the page has one; show_log has brought the pane up to date when the page appeared.
on_cancel⚠
Always vetoes the close: a confirmed Cancel raises the flag, and the worker’s Cancelled then walks the wizard on to the summary. Scene 6 disables the button, since the engine cannot stop between files.
set_progress⚠
show_log⚠
The whole log so far, for a page coming into view: lines are logged from pages that have no pane, so this page has not seen them.
show_progress⚠