GCodeProcessor -> Added cancel callback
This commit is contained in:
parent
0cfa64e245
commit
573194e059
3 changed files with 16 additions and 7 deletions
src/libslic3r/GCode
|
@ -419,7 +419,8 @@ namespace Slic3r {
|
|||
Result&& extract_result() { return std::move(m_result); }
|
||||
|
||||
// Process the gcode contained in the file with the given filename
|
||||
void process_file(const std::string& filename);
|
||||
// throws CanceledException through print->throw_if_canceled() (sent by the caller as callback).
|
||||
void process_file(const std::string& filename, std::function<void()> cancel_callback = std::function<void()>());
|
||||
|
||||
float get_time(PrintEstimatedTimeStatistics::ETimeMode mode) const;
|
||||
std::string get_time_dhm(PrintEstimatedTimeStatistics::ETimeMode mode) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue