Merge pull request #569 from sam0737/master

Showing filament statistics in GUI after slicing.
This commit is contained in:
Alessandro Ranellucci 2012-07-29 12:00:54 -07:00
commit 8cca3a6b28
2 changed files with 12 additions and 2 deletions

View file

@ -559,7 +559,12 @@ sub export_gcode2 {
$message .= sprintf " %d minutes and", $minutes if $minutes;
$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);
$print->cleanup;
};

View file

@ -154,7 +154,12 @@ sub do_slice {
$message .= sprintf " %d minutes and", $minutes if $minutes;
$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::MessageDialog->new($self, $message, 'Slicing Done!',
wxOK | wxICON_INFORMATION)->ShowModal;