mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Add timespan name to export status text
git-svn-id: svn://localhost/ardour2/branches/3.0@11381 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
aaec2a8480
commit
71a5e435e6
3 changed files with 8 additions and 4 deletions
|
|
@ -262,6 +262,8 @@ ExportDialog::update_warnings ()
|
|||
list_files_string += it->substr (0, pos + 1) + "<b>" + it->substr (pos + 1) + "</b>\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -331,12 +333,12 @@ ExportDialog::progress_timeout ()
|
|||
std::string status_text;
|
||||
float progress = 0.0;
|
||||
if (status->normalizing) {
|
||||
status_text = string_compose (_("Normalizing timespan %1 of %2"),
|
||||
status->timespan, status->total_timespans);
|
||||
status_text = string_compose (_("Normalizing '%3' (timespan %1 of %2)"),
|
||||
status->timespan, status->total_timespans, status->timespan_name);
|
||||
progress = ((float) status->current_normalize_cycle) / status->total_normalize_cycles;
|
||||
} else {
|
||||
status_text = string_compose (_("Exporting timespan %1 of %2"),
|
||||
status->timespan, status->total_timespans);
|
||||
status_text = string_compose (_("Exporting '%3' (timespan %1 of %2)"),
|
||||
status->timespan, status->total_timespans, status->timespan_name);
|
||||
progress = ((float) status->processed_frames_current_timespan) / status->total_frames_current_timespan;
|
||||
}
|
||||
progress_bar.set_text (status_text);
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ struct ExportStatus {
|
|||
|
||||
volatile uint32_t total_timespans;
|
||||
volatile uint32_t timespan;
|
||||
std::string timespan_name;
|
||||
|
||||
volatile framecnt_t total_frames;
|
||||
volatile framecnt_t processed_frames;
|
||||
|
|
|
|||
|
|
@ -164,6 +164,7 @@ ExportHandler::start_timespan ()
|
|||
|
||||
current_timespan = config_map.begin()->first;
|
||||
export_status->total_frames_current_timespan = current_timespan->get_length();
|
||||
export_status->timespan_name = current_timespan->name();
|
||||
export_status->processed_frames_current_timespan = 0;
|
||||
|
||||
/* Register file configurations to graph builder */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue