GCodeViewer -> Estimated printing times shown in the legend

This commit is contained in:
enricoturri1966 2020-08-06 10:15:34 +02:00
parent 8fc5be7e4f
commit 2aa1c2776c
5 changed files with 320 additions and 10 deletions

View file

@ -1458,7 +1458,11 @@ wxString Preview::get_option_type_string(OptionType type) const
case OptionType::CustomGCodes: { return _L("Custom GCodes"); }
case OptionType::Shells: { return _L("Shells"); }
case OptionType::ToolMarker: { return _L("Tool marker"); }
#if GCODE_VIEWER_TIME_ESTIMATE == TIME_ESTIMATE_LEGEND
case OptionType::Legend: { return _L("Legend/Estimated printing time"); }
#else
case OptionType::Legend: { return _L("Legend"); }
#endif // GCODE_VIEWER_TIME_ESTIMATE
#if GCODE_VIEWER_TIME_ESTIMATE != TIME_ESTIMATE_NONE
case OptionType::TimeEstimate: { return _L("Estimated printing time"); }
#endif // GCODE_VIEWER_TIME_ESTIMATE != TIME_ESTIMATE_NONE