mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-28 13:22:06 +00:00
ENH: optimize WipeTowerDialog logics
1. flush_multiplier will be apply the the flush volume during slicing rather than only in auto-calc 2. mark too small flush volume as red instead of a warning dialog 3. do not forbidden flush volume lower than the nozzle volume 4. fix incorrect focus status of text input box in WipeTowerDialog 5. check the minimum flush volume based on flush_multiplier 6. limit the decimal digit to two places Signed-off-by: yifan.wu <yifan.wu@bambulab.com> Change-Id: Icdcc50c88ecd9463fb9ce73f996d57c2d9f0187f (cherry picked from commit 60e01edc511f117b05a8a9b92aaf6fd55325e485)
This commit is contained in:
@@ -29,6 +29,7 @@ private:
|
||||
void fill_in_matrix();
|
||||
bool advanced_matches_simple();
|
||||
int calc_flushing_volume(const wxColour& from, const wxColour& to);
|
||||
void update_warning_texts();
|
||||
|
||||
std::vector<wxSpinCtrl*> m_old;
|
||||
std::vector<wxSpinCtrl*> m_new;
|
||||
@@ -45,8 +46,11 @@ private:
|
||||
wxGridSizer* m_gridsizer_advanced = nullptr;
|
||||
wxButton* m_widget_button = nullptr;
|
||||
|
||||
const int m_min_flush_volume;
|
||||
const int m_max_flush_volume;
|
||||
|
||||
wxTextCtrl* m_flush_multiplier_ebox = nullptr;
|
||||
float m_extra_flush_volume = 0;
|
||||
wxStaticText* m_min_flush_label = nullptr;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user