Merge pull request #569 from sam0737/master
Showing filament statistics in GUI after slicing.
This commit is contained in:
commit
8cca3a6b28
2 changed files with 12 additions and 2 deletions
|
@ -559,7 +559,12 @@ sub export_gcode2 {
|
||||||
$message .= sprintf " %d minutes and", $minutes if $minutes;
|
$message .= sprintf " %d minutes and", $minutes if $minutes;
|
||||||
$message .= sprintf " %.1f seconds", $print->processing_time - $minutes*60;
|
$message .= sprintf " %.1f seconds", $print->processing_time - $minutes*60;
|
||||||
}
|
}
|
||||||
$message .= ".";
|
$message .= ".\n";
|
||||||
|
|
||||||
|
# Filament required
|
||||||
|
$message .= sprintf "Filament required: %.1fmm (%.1fcm3).",
|
||||||
|
$print->total_extrusion_length, $print->total_extrusion_volume;
|
||||||
|
|
||||||
$params{on_completed}->($message);
|
$params{on_completed}->($message);
|
||||||
$print->cleanup;
|
$print->cleanup;
|
||||||
};
|
};
|
||||||
|
|
|
@ -154,7 +154,12 @@ sub do_slice {
|
||||||
$message .= sprintf " %d minutes and", $minutes if $minutes;
|
$message .= sprintf " %d minutes and", $minutes if $minutes;
|
||||||
$message .= sprintf " %.1f seconds", $print->processing_time - $minutes*60;
|
$message .= sprintf " %.1f seconds", $print->processing_time - $minutes*60;
|
||||||
}
|
}
|
||||||
$message .= ".";
|
$message .= ".\n";
|
||||||
|
|
||||||
|
# Filament required
|
||||||
|
$message .= sprintf "Filament required: %.1fmm (%.1fcm3).",
|
||||||
|
$print->total_extrusion_length, $print->total_extrusion_volume;
|
||||||
|
|
||||||
&Wx::wxTheApp->notify($message);
|
&Wx::wxTheApp->notify($message);
|
||||||
Wx::MessageDialog->new($self, $message, 'Slicing Done!',
|
Wx::MessageDialog->new($self, $message, 'Slicing Done!',
|
||||||
wxOK | wxICON_INFORMATION)->ShowModal;
|
wxOK | wxICON_INFORMATION)->ShowModal;
|
||||||
|
|
Loading…
Reference in a new issue