mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
#5080 - Reworked logic for automatic selection of current view type in preview
This commit is contained in:
parent
4870656877
commit
26982b16c7
4 changed files with 56 additions and 1 deletions
|
@ -102,7 +102,11 @@ class Preview : public wxPanel
|
|||
std::function<void()> m_schedule_background_process;
|
||||
|
||||
unsigned int m_number_extruders { 1 };
|
||||
#if ENABLE_PREVIEW_TYPE_CHANGE
|
||||
bool m_keep_current_preview_type{ false };
|
||||
#else
|
||||
std::string m_preferred_color_mode;
|
||||
#endif // ENABLE_PREVIEW_TYPE_CHANGE
|
||||
|
||||
bool m_loaded { false };
|
||||
|
||||
|
@ -136,7 +140,9 @@ public:
|
|||
|
||||
void set_as_dirty();
|
||||
|
||||
#if !ENABLE_PREVIEW_TYPE_CHANGE
|
||||
void set_number_extruders(unsigned int number_extruders);
|
||||
#endif // !ENABLE_PREVIEW_TYPE_CHANGE
|
||||
void bed_shape_changed();
|
||||
void select_view(const std::string& direction);
|
||||
void set_drop_target(wxDropTarget* target);
|
||||
|
@ -150,7 +156,9 @@ public:
|
|||
void move_layers_slider(wxKeyEvent& evt);
|
||||
void edit_layers_slider(wxKeyEvent& evt);
|
||||
|
||||
#if !ENABLE_PREVIEW_TYPE_CHANGE
|
||||
void update_view_type(bool keep_volumes);
|
||||
#endif // !ENABLE_PREVIEW_TYPE_CHANGE
|
||||
|
||||
bool is_loaded() const { return m_loaded; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue