mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
NEW: rearch calibration
Change-Id: I20ee304eba1a63e08d0a36abdf06ebe6a6e4451f Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
ced9e43be6
commit
2368d929fe
44 changed files with 7710 additions and 5851 deletions
|
@ -40,15 +40,6 @@ class StepIndicator;
|
|||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
enum MonitorStatus {
|
||||
MONITOR_UNKNOWN = 0,
|
||||
MONITOR_NORMAL = 1 << 1,
|
||||
MONITOR_NO_PRINTER = 1 << 2,
|
||||
MONITOR_DISCONNECTED = 1 << 3,
|
||||
MONITOR_DISCONNECTED_SERVER = 1 << 4,
|
||||
MONITOR_CONNECTING = 1 << 5,
|
||||
};
|
||||
|
||||
enum CameraRecordingStatus {
|
||||
RECORDING_NONE,
|
||||
RECORDING_OFF_NORMAL,
|
||||
|
@ -65,6 +56,79 @@ enum CameraTimelapseStatus {
|
|||
TIMELAPSE_ON_HOVER,
|
||||
};
|
||||
|
||||
enum PrintingTaskType {
|
||||
PRINGINT,
|
||||
CALIBRATION,
|
||||
};
|
||||
|
||||
class PrintingTaskPanel : public wxPanel
|
||||
{
|
||||
public:
|
||||
PrintingTaskPanel(wxWindow* parent, PrintingTaskType type);
|
||||
~PrintingTaskPanel();
|
||||
void create_panel(wxWindow* parent);
|
||||
|
||||
private:
|
||||
MachineObject* m_obj;
|
||||
ScalableBitmap m_thumbnail_placeholder;
|
||||
ScalableBitmap m_bitmap_use_time;
|
||||
ScalableBitmap m_bitmap_use_weight;
|
||||
|
||||
wxPanel * m_panel_printing_title;
|
||||
wxPanel* m_staticline;
|
||||
wxPanel* m_panel_error_txt;
|
||||
|
||||
wxBoxSizer* m_printing_sizer;
|
||||
wxStaticText * m_staticText_printing;
|
||||
wxStaticText* m_staticText_subtask_value;
|
||||
wxStaticText* m_staticText_consumption_of_time;
|
||||
wxStaticText* m_staticText_consumption_of_weight;
|
||||
wxStaticText* m_printing_stage_value;
|
||||
wxStaticText* m_staticText_profile_value;
|
||||
wxStaticText* m_staticText_progress_percent;
|
||||
wxStaticText* m_staticText_progress_percent_icon;
|
||||
wxStaticText* m_staticText_progress_left;
|
||||
wxStaticText* m_staticText_layers;
|
||||
wxStaticBitmap* m_bitmap_thumbnail;
|
||||
wxStaticBitmap* m_bitmap_static_use_time;
|
||||
wxStaticBitmap* m_bitmap_static_use_weight;
|
||||
ScalableButton* m_button_pause_resume;
|
||||
ScalableButton* m_button_abort;
|
||||
Button* m_button_market_scoring;
|
||||
Button* m_button_clean;
|
||||
|
||||
ProgressBar* m_gauge_progress;
|
||||
ErrorMsgStaticText* m_error_text;
|
||||
PrintingTaskType m_type;
|
||||
|
||||
public:
|
||||
void init_bitmaps();
|
||||
void init_scaled_buttons();
|
||||
void error_info_reset();
|
||||
void show_error_msg(wxString msg);
|
||||
void reset_printing_value();
|
||||
void msw_rescale();
|
||||
|
||||
public:
|
||||
void enable_pause_resume_button(bool enable, std::string type);
|
||||
void enable_abort_button(bool enable);
|
||||
void update_subtask_name(wxString name);
|
||||
void update_stage_value(wxString stage, int val);
|
||||
void update_progress_percent(wxString percent, wxString icon);
|
||||
void update_left_time(wxString time);
|
||||
void update_left_time(int mc_left_time);
|
||||
void update_layers_num(bool show, wxString num = wxEmptyString);
|
||||
void show_priting_use_info(bool show, wxString time = wxEmptyString, wxString weight = wxEmptyString);
|
||||
void show_profile_info(bool show, wxString profile = wxEmptyString);
|
||||
|
||||
public:
|
||||
ScalableButton* get_abort_button() {return m_button_abort;};
|
||||
ScalableButton* get_pause_resume_button() {return m_button_pause_resume;};
|
||||
Button* get_market_scoring_button() {return m_button_market_scoring;};
|
||||
Button* get_clean_button() {return m_button_clean;};
|
||||
wxStaticBitmap* get_bitmap_thumbnail() {return m_bitmap_thumbnail;};
|
||||
};
|
||||
|
||||
class StatusBasePanel : public wxScrolledWindow
|
||||
{
|
||||
protected:
|
||||
|
@ -208,7 +272,7 @@ protected:
|
|||
StepIndicator* m_calibration_flow;
|
||||
|
||||
wxPanel * m_machine_ctrl_panel;
|
||||
wxPanel * m_project_task_panel;
|
||||
PrintingTaskPanel * m_project_task_panel;
|
||||
|
||||
// Virtual event handlers, override them in your derived class
|
||||
virtual void on_subtask_pause_resume(wxCommandEvent &event) { event.Skip(); }
|
||||
|
@ -239,7 +303,6 @@ public:
|
|||
|
||||
void init_bitmaps();
|
||||
wxBoxSizer *create_monitoring_page();
|
||||
wxBoxSizer *create_project_task_page(wxWindow *parent);
|
||||
wxBoxSizer *create_machine_control_page(wxWindow *parent);
|
||||
|
||||
wxBoxSizer *create_temp_axis_group(wxWindow *parent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue