mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
ENH: Add Ellis' pattern method for flow dynamic calibration
Github: #2356 Change-Id: I05068bd47fa8381429064ea0e5ba0f38e5da17c1 (cherry picked from commit c5d54d26e32909e1785cef9ba6a07d801419fa98)
This commit is contained in:
parent
2f8f2642f6
commit
aa1c8c8fe2
18 changed files with 442 additions and 73 deletions
|
@ -40,6 +40,29 @@ protected:
|
|||
float m_flow_ratio_value;
|
||||
};
|
||||
|
||||
class CaliComboBox : public wxPanel
|
||||
{
|
||||
public:
|
||||
CaliComboBox(wxWindow *parent,
|
||||
wxString title,
|
||||
wxArrayString values,
|
||||
int default_index = 0, // default delected id
|
||||
std::function<void(wxCommandEvent &)> on_value_change = nullptr,
|
||||
wxWindowID id = wxID_ANY,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxTAB_TRAVERSAL);
|
||||
|
||||
wxString get_value() const;
|
||||
void set_values(const wxArrayString& values);
|
||||
|
||||
private:
|
||||
wxBoxSizer* m_top_sizer;
|
||||
wxString m_title;
|
||||
ComboBox* m_combo_box;
|
||||
std::function<void(wxCommandEvent&)> m_on_value_change_call_back;
|
||||
};
|
||||
|
||||
class CaliPresetWarningPanel : public wxPanel
|
||||
{
|
||||
public:
|
||||
|
@ -181,6 +204,7 @@ public:
|
|||
std::string get_print_preset_name();
|
||||
|
||||
wxArrayString get_custom_range_values();
|
||||
CalibMode get_pa_cali_method();
|
||||
|
||||
CaliPresetPageStatus get_page_status() { return m_page_status; }
|
||||
protected:
|
||||
|
@ -227,6 +251,7 @@ protected:
|
|||
CaliPresetPageStatus get_status() { return m_page_status; }
|
||||
|
||||
CaliPageStepGuide* m_step_panel{ nullptr };
|
||||
CaliComboBox * m_pa_cali_method_combox{nullptr};
|
||||
CaliPresetCaliStagePanel* m_cali_stage_panel { nullptr };
|
||||
wxPanel* m_selection_panel { nullptr };
|
||||
wxPanel* m_filament_from_panel { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue