mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 10:51:22 +00:00
Make AMS trays read-only in laser mode and add the gradient fill helper
This commit is contained in:
@@ -503,6 +503,9 @@ public:
|
||||
void support_cali(bool sup) { m_support_cali = sup; Refresh(); };
|
||||
virtual bool Enable(bool enable = true);
|
||||
void set_disable_mode(bool disable) { m_disable_mode = disable; }
|
||||
// View-only mode (2D laser/cut): show the read-only (eye) icon for every editable spool
|
||||
// while keeping it clickable to open the read-only filament dialog.
|
||||
void set_view_only(bool view_only) { if (m_view_only != view_only) { m_view_only = view_only; Refresh(); } }
|
||||
void msw_rescale();
|
||||
void on_pass_road(bool pass);
|
||||
|
||||
@@ -542,6 +545,7 @@ protected:
|
||||
wxColour m_road_def_color;
|
||||
wxColour m_lib_color;
|
||||
bool m_disable_mode{ false };
|
||||
bool m_view_only{ false };
|
||||
bool m_pass_road{false};
|
||||
|
||||
void on_enter_window(wxMouseEvent &evt);
|
||||
|
||||
Reference in New Issue
Block a user