mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 12:17:54 -06:00
NEW: support restore calibration status of printer
1.store each printer's calibration status to appconfig. 2.add retraction calibration 3.add choose fine calibration directly at flowrate calibration 4.add start pages for every calibration 5.add history window for pa calibration Change-Id: I117fd46e689e0573e70e8579f5a52ba62d99f3d6
This commit is contained in:
parent
cacd42f4e0
commit
e2934516ed
14 changed files with 1134 additions and 504 deletions
|
@ -31,6 +31,16 @@ private:
|
|||
ButtonType m_type;
|
||||
};
|
||||
|
||||
enum class PageType {
|
||||
Start,
|
||||
Preset,
|
||||
Calibration,
|
||||
CoarseSave,
|
||||
FineCalibration,
|
||||
Save,
|
||||
Finish,
|
||||
};
|
||||
|
||||
class CalibrationWizardPage : public wxPanel
|
||||
{
|
||||
public:
|
||||
|
@ -53,14 +63,14 @@ public:
|
|||
wxBoxSizer* get_btn_hsizer() { return m_btn_sizer; }
|
||||
PageButton* get_prev_btn() { return m_btn_prev; }
|
||||
PageButton* get_next_btn() { return m_btn_next; }
|
||||
PageType get_page_type() { return m_page_type; }
|
||||
|
||||
void set_page_type(PageType type) { m_page_type = type; }
|
||||
void set_page_title(wxString title) { m_title->SetLabel(title); }
|
||||
void set_page_index(wxString index) { m_index->SetLabel(index); }
|
||||
void set_highlight_step_text(wxString text);
|
||||
void set_highlight_step_text(PageType page_type);
|
||||
|
||||
private:
|
||||
wxStaticText* m_title;
|
||||
wxStaticText* m_index;
|
||||
wxBoxSizer* m_top_sizer;
|
||||
wxStaticText* m_preset_text;
|
||||
wxStaticText* m_calibration_text;
|
||||
|
@ -69,6 +79,7 @@ private:
|
|||
wxBoxSizer* m_btn_sizer;
|
||||
PageButton* m_btn_prev;
|
||||
PageButton* m_btn_next;
|
||||
PageType m_page_type;
|
||||
|
||||
CalibrationWizardPage* m_prev_page{nullptr};
|
||||
CalibrationWizardPage* m_next_page{nullptr};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue