mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Disabled icon to add color changes, print pauses and custom gcode in vertical slider of standalone gcode viewer
This commit is contained in:
parent
ce3fc31b48
commit
06c35297b6
3 changed files with 8 additions and 1 deletions
|
@ -455,7 +455,6 @@ void Control::render()
|
||||||
// draw both sliders
|
// draw both sliders
|
||||||
draw_thumbs(dc, lower_pos, higher_pos);
|
draw_thumbs(dc, lower_pos, higher_pos);
|
||||||
|
|
||||||
|
|
||||||
// draw lock/unlock
|
// draw lock/unlock
|
||||||
draw_one_layer_icon(dc);
|
draw_one_layer_icon(dc);
|
||||||
|
|
||||||
|
@ -474,6 +473,9 @@ void Control::draw_action_icon(wxDC& dc, const wxPoint pt_beg, const wxPoint pt_
|
||||||
{
|
{
|
||||||
const int tick = m_selection == ssLower ? m_lower_value : m_higher_value;
|
const int tick = m_selection == ssLower ? m_lower_value : m_higher_value;
|
||||||
|
|
||||||
|
if (!m_enable_action_icon)
|
||||||
|
return;
|
||||||
|
|
||||||
// suppress add tick on first layer
|
// suppress add tick on first layer
|
||||||
if (tick == 0)
|
if (tick == 0)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -264,6 +264,7 @@ public:
|
||||||
void edit_extruder_sequence();
|
void edit_extruder_sequence();
|
||||||
#if ENABLE_GCODE_VIEWER
|
#if ENABLE_GCODE_VIEWER
|
||||||
void jump_to_value();
|
void jump_to_value();
|
||||||
|
void enable_action_icon(bool enable) { m_enable_action_icon = enable; }
|
||||||
#else
|
#else
|
||||||
void jump_to_print_z();
|
void jump_to_print_z();
|
||||||
#endif // ENABLE_GCODE_VIEWER
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
|
@ -360,6 +361,9 @@ private:
|
||||||
bool m_is_one_layer = false;
|
bool m_is_one_layer = false;
|
||||||
bool m_is_focused = false;
|
bool m_is_focused = false;
|
||||||
bool m_force_mode_apply = true;
|
bool m_force_mode_apply = true;
|
||||||
|
#if ENABLE_GCODE_VIEWER
|
||||||
|
bool m_enable_action_icon = true;
|
||||||
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
|
|
||||||
DrawMode m_draw_mode = dmRegular;
|
DrawMode m_draw_mode = dmRegular;
|
||||||
|
|
||||||
|
|
|
@ -850,6 +850,7 @@ wxBoxSizer* Preview::create_layers_slider_sizer()
|
||||||
|
|
||||||
m_layers_slider->SetDrawMode(wxGetApp().preset_bundle->printers.get_edited_preset().printer_technology() == ptSLA,
|
m_layers_slider->SetDrawMode(wxGetApp().preset_bundle->printers.get_edited_preset().printer_technology() == ptSLA,
|
||||||
wxGetApp().preset_bundle->prints.get_edited_preset().config.opt_bool("complete_objects"));
|
wxGetApp().preset_bundle->prints.get_edited_preset().config.opt_bool("complete_objects"));
|
||||||
|
m_layers_slider->enable_action_icon(wxGetApp().is_editor());
|
||||||
|
|
||||||
sizer->Add(m_layers_slider, 0, wxEXPAND, 0);
|
sizer->Add(m_layers_slider, 0, wxEXPAND, 0);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue