2022-07-15 15:37:19 +00:00
|
|
|
#ifndef slic3r_StatusPanel_hpp_
|
|
|
|
#define slic3r_StatusPanel_hpp_
|
|
|
|
|
|
|
|
#include "libslic3r/ProjectTask.hpp"
|
|
|
|
#include "DeviceManager.hpp"
|
|
|
|
#include "MonitorPage.hpp"
|
|
|
|
#include "SliceInfoPanel.hpp"
|
|
|
|
#include "CameraPopup.hpp"
|
|
|
|
#include "GUI.hpp"
|
|
|
|
#include <wx/panel.h>
|
|
|
|
#include <wx/bitmap.h>
|
|
|
|
#include <wx/image.h>
|
|
|
|
#include <wx/sizer.h>
|
|
|
|
#include <wx/gbsizer.h>
|
|
|
|
#include <wx/webrequest.h>
|
|
|
|
#include "wxMediaCtrl2.h"
|
|
|
|
#include "MediaPlayCtrl.h"
|
|
|
|
#include "AMSSetting.hpp"
|
|
|
|
#include "Calibration.hpp"
|
2022-07-27 10:13:40 +00:00
|
|
|
#include "PrintOptionsDialog.hpp"
|
2022-07-15 15:37:19 +00:00
|
|
|
#include "AMSMaterialsSetting.hpp"
|
2022-11-11 07:12:55 +00:00
|
|
|
#include "ReleaseNote.hpp"
|
2022-07-15 15:37:19 +00:00
|
|
|
#include "Widgets/SwitchButton.hpp"
|
|
|
|
#include "Widgets/AxisCtrlButton.hpp"
|
|
|
|
#include "Widgets/TextInput.hpp"
|
|
|
|
#include "Widgets/TempInput.hpp"
|
|
|
|
#include "Widgets/StaticLine.hpp"
|
|
|
|
#include "Widgets/ProgressBar.hpp"
|
|
|
|
#include "Widgets/ImageSwitchButton.hpp"
|
|
|
|
#include "Widgets/AMSControl.hpp"
|
2022-08-05 09:57:07 +00:00
|
|
|
#include "HMS.hpp"
|
2022-08-29 07:31:54 +00:00
|
|
|
#include "Widgets/ErrorMsgStaticText.hpp"
|
2022-07-15 15:37:19 +00:00
|
|
|
class StepIndicator;
|
|
|
|
|
2022-07-22 09:46:10 +00:00
|
|
|
#define COMMAND_TIMEOUT_U0 15
|
|
|
|
#define COMMAND_TIMEOUT 5
|
2022-07-15 15:37:19 +00:00
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
enum MonitorStatus {
|
2022-07-22 09:46:10 +00:00
|
|
|
MONITOR_UNKNOWN = 0,
|
|
|
|
MONITOR_NORMAL = 1 << 1,
|
|
|
|
MONITOR_NO_PRINTER = 1 << 2,
|
|
|
|
MONITOR_DISCONNECTED = 1 << 3,
|
2022-07-15 15:37:19 +00:00
|
|
|
MONITOR_DISCONNECTED_SERVER = 1 << 4,
|
2022-07-22 09:46:10 +00:00
|
|
|
MONITOR_CONNECTING = 1 << 5,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum CameraRecordingStatus {
|
|
|
|
RECORDING_NONE,
|
|
|
|
RECORDING_OFF_NORMAL,
|
|
|
|
RECORDING_OFF_HOVER,
|
|
|
|
RECORDING_ON_NORMAL,
|
|
|
|
RECORDING_ON_HOVER,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum CameraTimelapseStatus {
|
|
|
|
TIMELAPSE_NONE,
|
|
|
|
TIMELAPSE_OFF_NORMAL,
|
|
|
|
TIMELAPSE_OFF_HOVER,
|
|
|
|
TIMELAPSE_ON_NORMAL,
|
|
|
|
TIMELAPSE_ON_HOVER,
|
2022-07-15 15:37:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class StatusBasePanel : public wxScrolledWindow
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
wxBitmap m_item_placeholder;
|
2022-08-01 07:06:36 +00:00
|
|
|
ScalableBitmap m_thumbnail_placeholder;
|
|
|
|
ScalableBitmap m_thumbnail_sdcard;
|
2022-07-15 15:37:19 +00:00
|
|
|
wxBitmap m_bitmap_item_prediction;
|
|
|
|
wxBitmap m_bitmap_item_cost;
|
|
|
|
wxBitmap m_bitmap_item_print;
|
2022-07-27 09:40:07 +00:00
|
|
|
ScalableBitmap m_bitmap_speed;
|
|
|
|
ScalableBitmap m_bitmap_speed_active;
|
|
|
|
ScalableBitmap m_bitmap_axis_home;
|
|
|
|
ScalableBitmap m_bitmap_lamp_on;
|
|
|
|
ScalableBitmap m_bitmap_lamp_off;
|
|
|
|
ScalableBitmap m_bitmap_fan_on;
|
|
|
|
ScalableBitmap m_bitmap_fan_off;
|
2022-08-23 10:47:41 +00:00
|
|
|
ScalableBitmap m_bitmap_use_time;
|
|
|
|
ScalableBitmap m_bitmap_use_weight;
|
2022-10-27 05:11:52 +00:00
|
|
|
wxBitmap m_bitmap_extruder_empty_load;
|
|
|
|
wxBitmap m_bitmap_extruder_filled_load;
|
|
|
|
wxBitmap m_bitmap_extruder_empty_unload;
|
|
|
|
wxBitmap m_bitmap_extruder_filled_unload;
|
2022-07-22 09:46:10 +00:00
|
|
|
|
|
|
|
CameraRecordingStatus m_state_recording{CameraRecordingStatus::RECORDING_NONE};
|
|
|
|
CameraTimelapseStatus m_state_timelapse{CameraTimelapseStatus::TIMELAPSE_NONE};
|
|
|
|
|
|
|
|
|
|
|
|
CameraItem *m_timelapse_button;
|
|
|
|
CameraItem *m_recording_button;
|
2022-09-19 01:50:34 +00:00
|
|
|
CameraItem *m_vcamera_button;
|
2022-07-22 09:46:10 +00:00
|
|
|
|
2022-07-15 15:37:19 +00:00
|
|
|
wxBitmap m_bitmap_camera;
|
2022-07-22 09:46:10 +00:00
|
|
|
wxBitmap m_bitmap_sdcard_state_on;
|
|
|
|
wxBitmap m_bitmap_sdcard_state_off;
|
2022-07-15 15:37:19 +00:00
|
|
|
|
|
|
|
/* title panel */
|
|
|
|
wxPanel * media_ctrl_panel;
|
|
|
|
wxPanel * m_panel_monitoring_title;
|
|
|
|
wxPanel * m_panel_printing_title;
|
|
|
|
wxPanel * m_panel_control_title;
|
|
|
|
|
2022-08-23 10:47:41 +00:00
|
|
|
wxStaticText* m_staticText_consumption_of_time;
|
|
|
|
wxStaticText * m_staticText_consumption_of_weight;
|
2022-07-15 15:37:19 +00:00
|
|
|
wxStaticText * m_staticText_monitoring;
|
|
|
|
wxStaticText * m_staticText_timelapse;
|
|
|
|
SwitchButton * m_bmToggleBtn_timelapse;
|
|
|
|
|
2022-07-22 09:46:10 +00:00
|
|
|
wxStaticBitmap *m_bitmap_camera_img;
|
|
|
|
wxStaticBitmap *m_bitmap_recording_img;
|
|
|
|
wxStaticBitmap *m_bitmap_sdcard_on_img;
|
|
|
|
wxStaticBitmap *m_bitmap_sdcard_off_img;
|
2022-08-23 10:47:41 +00:00
|
|
|
wxStaticBitmap *m_bitmap_static_use_time;
|
|
|
|
wxStaticBitmap *m_bitmap_static_use_weight;
|
2022-07-22 09:46:10 +00:00
|
|
|
|
2022-07-15 15:37:19 +00:00
|
|
|
|
|
|
|
wxMediaCtrl2 * m_media_ctrl;
|
|
|
|
MediaPlayCtrl * m_media_play_ctrl;
|
|
|
|
|
|
|
|
wxStaticText * m_staticText_printing;
|
|
|
|
wxStaticBitmap *m_bitmap_thumbnail;
|
|
|
|
wxStaticText * m_staticText_subtask_value;
|
|
|
|
wxStaticText * m_printing_stage_value;
|
|
|
|
ProgressBar* m_gauge_progress;
|
|
|
|
wxStaticText * m_staticText_progress_percent;
|
2022-08-23 10:47:41 +00:00
|
|
|
wxStaticText * m_staticText_progress_percent_icon;
|
2022-07-15 15:37:19 +00:00
|
|
|
wxStaticText * m_staticText_progress_left;
|
|
|
|
Button * m_button_report;
|
2022-08-23 10:47:41 +00:00
|
|
|
ScalableButton *m_button_pause_resume;
|
|
|
|
ScalableButton *m_button_abort;
|
2022-07-22 08:43:08 +00:00
|
|
|
Button * m_button_clean;
|
2022-07-15 15:37:19 +00:00
|
|
|
|
|
|
|
wxStaticText * m_text_tasklist_caption;
|
|
|
|
|
|
|
|
wxStaticText * m_staticText_control;
|
|
|
|
ImageSwitchButton *m_switch_lamp;
|
|
|
|
int m_switch_lamp_timeout{0};
|
|
|
|
ImageSwitchButton *m_switch_speed;
|
|
|
|
|
|
|
|
/* TempInput */
|
|
|
|
TempInput * m_tempCtrl_nozzle;
|
|
|
|
int m_temp_nozzle_timeout {0};
|
|
|
|
StaticLine * m_line_nozzle;
|
|
|
|
TempInput * m_tempCtrl_bed;
|
|
|
|
int m_temp_bed_timeout {0};
|
|
|
|
TempInput * m_tempCtrl_frame;
|
|
|
|
ImageSwitchButton *m_switch_nozzle_fan;
|
|
|
|
int m_switch_nozzle_fan_timeout{0};
|
|
|
|
ImageSwitchButton *m_switch_printing_fan;
|
|
|
|
int m_switch_printing_fan_timeout{0};
|
|
|
|
|
|
|
|
float m_fixed_aspect_ratio{1.8};
|
|
|
|
|
|
|
|
AxisCtrlButton *m_bpButton_xy;
|
|
|
|
//wxStaticText * m_staticText_xy;
|
|
|
|
Button * m_bpButton_z_10;
|
|
|
|
Button * m_bpButton_z_1;
|
|
|
|
Button * m_bpButton_z_down_1;
|
|
|
|
Button * m_bpButton_z_down_10;
|
|
|
|
Button * m_button_unload;
|
|
|
|
wxStaticText * m_staticText_z_tip;
|
|
|
|
wxStaticText * m_staticText_e;
|
|
|
|
Button * m_bpButton_e_10;
|
|
|
|
Button * m_bpButton_e_down_10;
|
|
|
|
StaticLine * m_temp_extruder_line;
|
|
|
|
wxBoxSizer* m_ams_list;
|
|
|
|
wxStaticText * m_ams_debug;
|
|
|
|
bool m_show_ams_group{false};
|
|
|
|
AMSControl* m_ams_control;
|
2022-08-02 06:07:56 +00:00
|
|
|
RoundedRectangle* m_ams_control_box;
|
2022-07-15 15:37:19 +00:00
|
|
|
wxStaticBitmap *m_ams_extruder_img;
|
|
|
|
wxStaticBitmap* m_bitmap_extruder_img;
|
|
|
|
wxPanel * m_panel_separator_right;
|
|
|
|
wxPanel * m_panel_separotor_bottom;
|
|
|
|
wxGridBagSizer *m_tasklist_info_sizer{nullptr};
|
|
|
|
wxBoxSizer * m_printing_sizer;
|
|
|
|
wxBoxSizer * m_tasklist_sizer;
|
|
|
|
wxBoxSizer * m_tasklist_caption_sizer;
|
2022-07-22 08:43:08 +00:00
|
|
|
wxPanel* m_panel_error_txt;
|
|
|
|
wxPanel* m_staticline;
|
2022-08-29 07:31:54 +00:00
|
|
|
ErrorMsgStaticText * m_error_text;
|
2022-07-15 15:37:19 +00:00
|
|
|
wxStaticText* m_staticText_calibration_caption;
|
|
|
|
wxStaticText* m_staticText_calibration_caption_top;
|
|
|
|
wxStaticText* m_calibration_text;
|
2022-07-27 10:13:40 +00:00
|
|
|
Button* m_options_btn;
|
2022-07-15 15:37:19 +00:00
|
|
|
Button* m_calibration_btn;
|
|
|
|
StepIndicator* m_calibration_flow;
|
|
|
|
|
|
|
|
wxPanel * m_machine_ctrl_panel;
|
|
|
|
wxPanel * m_project_task_panel;
|
|
|
|
|
|
|
|
// Virtual event handlers, override them in your derived class
|
|
|
|
virtual void on_subtask_pause_resume(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_subtask_abort(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_lamp_switch(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_bed_temp_kill_focus(wxFocusEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_bed_temp_set_focus(wxFocusEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_nozzle_temp_kill_focus(wxFocusEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_nozzle_temp_set_focus(wxFocusEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_nozzle_fan_switch(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_printing_fan_switch(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_axis_ctrl_z_up_10(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_axis_ctrl_z_up_1(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_axis_ctrl_z_down_1(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_axis_ctrl_z_down_10(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_axis_ctrl_e_up_10(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
virtual void on_axis_ctrl_e_down_10(wxCommandEvent &event) { event.Skip(); }
|
|
|
|
|
|
|
|
public:
|
|
|
|
StatusBasePanel(wxWindow * parent,
|
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
const wxPoint & pos = wxDefaultPosition,
|
|
|
|
const wxSize & size = wxDefaultSize,
|
|
|
|
long style = wxTAB_TRAVERSAL,
|
|
|
|
const wxString &name = wxEmptyString);
|
|
|
|
|
|
|
|
~StatusBasePanel();
|
|
|
|
|
|
|
|
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);
|
|
|
|
wxBoxSizer *create_temp_control(wxWindow *parent);
|
|
|
|
wxBoxSizer *create_misc_control(wxWindow *parent);
|
|
|
|
wxBoxSizer *create_axis_control(wxWindow *parent);
|
|
|
|
wxBoxSizer *create_bed_control(wxWindow *parent);
|
|
|
|
wxBoxSizer *create_extruder_control(wxWindow *parent);
|
|
|
|
|
|
|
|
void reset_temp_misc_control();
|
2022-07-22 08:43:08 +00:00
|
|
|
int before_error_code = 0;
|
2022-11-14 09:15:25 +00:00
|
|
|
int skip_print_error = 0;
|
2022-07-15 15:37:19 +00:00
|
|
|
wxBoxSizer *create_ams_group(wxWindow *parent);
|
2022-07-27 10:13:40 +00:00
|
|
|
wxBoxSizer *create_settings_group(wxWindow *parent);
|
2022-07-15 15:37:19 +00:00
|
|
|
|
|
|
|
void show_ams_group(bool show = true);
|
2022-07-22 09:46:10 +00:00
|
|
|
void upodate_camera_state(bool recording, bool timelapse, bool has_sdcard);
|
2022-07-15 15:37:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class StatusPanel : public StatusBasePanel
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
friend class MonitorPanel;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
std::shared_ptr<SliceInfoPopup> m_slice_info_popup;
|
|
|
|
std::shared_ptr<ImageTransientPopup> m_image_popup;
|
|
|
|
std::shared_ptr<CameraPopup> m_camera_popup;
|
|
|
|
std::vector<SliceInfoPanel *> slice_info_list;
|
|
|
|
AMSSetting *m_ams_setting_dlg{nullptr};
|
2022-07-27 10:13:40 +00:00
|
|
|
PrintOptionsDialog* print_options_dlg { nullptr };
|
|
|
|
CalibrationDialog* calibration_dlg {nullptr};
|
2022-07-15 15:37:19 +00:00
|
|
|
AMSMaterialsSetting *m_filament_setting_dlg{nullptr};
|
2022-11-11 07:12:55 +00:00
|
|
|
std::shared_ptr<SecondaryCheckDialog> m_print_error_dlg = nullptr;
|
2022-07-15 15:37:19 +00:00
|
|
|
|
|
|
|
wxString m_request_url;
|
|
|
|
bool m_start_loading_thumbnail = false;
|
|
|
|
bool m_load_sdcard_thumbnail = false;
|
|
|
|
wxWebRequest web_request;
|
|
|
|
bool bed_temp_input = false;
|
|
|
|
bool nozzle_temp_input = false;
|
|
|
|
int speed_lvl = 1; // 0 - 3
|
|
|
|
int speed_lvl_timeout {0};
|
|
|
|
boost::posix_time::ptime speed_dismiss_time;
|
|
|
|
|
|
|
|
std::map<wxString, wxImage> img_list; // key: url, value: wxBitmap png Image
|
|
|
|
std::vector<Button *> m_buttons;
|
|
|
|
int last_status;
|
|
|
|
void init_scaled_buttons();
|
2022-07-22 08:43:08 +00:00
|
|
|
void update_error_message();
|
2022-07-15 15:37:19 +00:00
|
|
|
void create_tasklist_info();
|
|
|
|
void clean_tasklist_info();
|
|
|
|
void show_task_list_info(bool show = true);
|
|
|
|
void update_tasklist_info();
|
|
|
|
|
|
|
|
void on_subtask_pause_resume(wxCommandEvent &event);
|
|
|
|
void on_subtask_abort(wxCommandEvent &event);
|
2022-11-14 09:15:25 +00:00
|
|
|
void on_print_error_clean(wxCommandEvent &event);
|
2022-08-05 09:57:07 +00:00
|
|
|
void show_error_message(wxString msg);
|
2022-07-22 08:43:08 +00:00
|
|
|
void error_info_reset();
|
2022-08-31 08:32:56 +00:00
|
|
|
void show_recenter_dialog();
|
2022-07-15 15:37:19 +00:00
|
|
|
|
|
|
|
/* axis control */
|
2022-08-31 08:32:56 +00:00
|
|
|
bool check_axis_z_at_home(MachineObject* obj);
|
2022-07-15 15:37:19 +00:00
|
|
|
void on_axis_ctrl_xy(wxCommandEvent &event);
|
|
|
|
void on_axis_ctrl_z_up_10(wxCommandEvent &event);
|
|
|
|
void on_axis_ctrl_z_up_1(wxCommandEvent &event);
|
|
|
|
void on_axis_ctrl_z_down_1(wxCommandEvent &event);
|
|
|
|
void on_axis_ctrl_z_down_10(wxCommandEvent &event);
|
|
|
|
void on_axis_ctrl_e_up_10(wxCommandEvent &event);
|
|
|
|
void on_axis_ctrl_e_down_10(wxCommandEvent &event);
|
|
|
|
|
|
|
|
void on_start_unload(wxCommandEvent &event);
|
|
|
|
/* temp control */
|
|
|
|
void on_bed_temp_kill_focus(wxFocusEvent &event);
|
|
|
|
void on_bed_temp_set_focus(wxFocusEvent &event);
|
|
|
|
void on_set_bed_temp();
|
|
|
|
void on_nozzle_temp_kill_focus(wxFocusEvent &event);
|
|
|
|
void on_nozzle_temp_set_focus(wxFocusEvent &event);
|
|
|
|
void on_set_nozzle_temp();
|
|
|
|
|
|
|
|
/* extruder apis */
|
|
|
|
void on_ams_load(SimpleEvent &event);
|
2022-10-17 06:12:56 +00:00
|
|
|
void on_ams_load_curr();
|
2022-07-15 15:37:19 +00:00
|
|
|
void on_ams_unload(SimpleEvent &event);
|
|
|
|
void on_ams_setting_click(SimpleEvent &event);
|
|
|
|
void on_filament_edit(wxCommandEvent &event);
|
|
|
|
void on_ams_refresh_rfid(wxCommandEvent &event);
|
|
|
|
void on_ams_selected(wxCommandEvent &event);
|
2022-09-28 12:22:16 +00:00
|
|
|
void on_ams_guide(wxCommandEvent &event);
|
|
|
|
void on_ams_retry(wxCommandEvent &event);
|
2022-07-15 15:37:19 +00:00
|
|
|
|
|
|
|
void on_switch_speed(wxCommandEvent &event);
|
|
|
|
void on_lamp_switch(wxCommandEvent &event);
|
|
|
|
void on_printing_fan_switch(wxCommandEvent &event);
|
|
|
|
void on_nozzle_fan_switch(wxCommandEvent &event);
|
|
|
|
void on_thumbnail_enter(wxMouseEvent &event);
|
|
|
|
void on_thumbnail_leave(wxMouseEvent &event);
|
2022-07-22 09:46:10 +00:00
|
|
|
void on_switch_recording(wxMouseEvent &event);
|
2022-09-19 01:50:34 +00:00
|
|
|
void on_switch_vcamera(wxMouseEvent &event);
|
2022-07-22 09:46:10 +00:00
|
|
|
void on_camera_enter(wxMouseEvent &event);
|
2022-07-15 15:37:19 +00:00
|
|
|
void on_camera_leave(wxMouseEvent& event);
|
|
|
|
void on_auto_leveling(wxCommandEvent &event);
|
|
|
|
void on_xyz_abs(wxCommandEvent &event);
|
|
|
|
|
2022-07-27 10:13:40 +00:00
|
|
|
/* print options */
|
|
|
|
void on_show_print_options(wxCommandEvent &event);
|
|
|
|
|
2022-07-15 15:37:19 +00:00
|
|
|
/* calibration */
|
|
|
|
void on_start_calibration(wxCommandEvent &event);
|
|
|
|
|
|
|
|
|
|
|
|
/* update apis */
|
|
|
|
void update(MachineObject* obj);
|
|
|
|
void show_printing_status(bool ctrl_area = true, bool temp_area = true);
|
2022-07-22 09:46:10 +00:00
|
|
|
void update_left_time(int mc_left_time);
|
2022-08-23 10:47:41 +00:00
|
|
|
void update_basic_print_data(bool def = false);
|
2022-07-15 15:37:19 +00:00
|
|
|
void update_subtask(MachineObject *obj);
|
|
|
|
void update_cloud_subtask(MachineObject *obj);
|
|
|
|
void update_sdcard_subtask(MachineObject *obj);
|
|
|
|
void update_temp_ctrl(MachineObject *obj);
|
|
|
|
void update_misc_ctrl(MachineObject *obj);
|
|
|
|
void update_ams(MachineObject* obj);
|
2022-10-27 05:11:52 +00:00
|
|
|
void update_extruder_status(MachineObject* obj);
|
2022-07-15 15:37:19 +00:00
|
|
|
void update_cali(MachineObject* obj);
|
|
|
|
|
|
|
|
void reset_printing_values();
|
|
|
|
void on_webrequest_state(wxWebRequestEvent &evt);
|
|
|
|
bool is_task_changed(MachineObject* obj);
|
|
|
|
|
|
|
|
public:
|
|
|
|
StatusPanel(wxWindow * parent,
|
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
const wxPoint & pos = wxDefaultPosition,
|
|
|
|
const wxSize & size = wxDefaultSize,
|
|
|
|
long style = wxTAB_TRAVERSAL,
|
|
|
|
const wxString &name = wxEmptyString);
|
|
|
|
~StatusPanel();
|
|
|
|
|
|
|
|
MachineObject *obj {nullptr};
|
|
|
|
BBLSubTask * last_subtask{nullptr};
|
|
|
|
std::string last_profile_id;
|
|
|
|
std::string last_task_id;
|
|
|
|
long last_tray_exist_bits { -1 };
|
|
|
|
long last_ams_exist_bits { -1 };
|
|
|
|
long last_tray_is_bbl_bits{ -1 };
|
|
|
|
long last_read_done_bits{ -1 };
|
2022-08-31 12:02:57 +00:00
|
|
|
long last_reading_bits { -1 };
|
2022-07-15 15:37:19 +00:00
|
|
|
long last_ams_version { -1 };
|
|
|
|
|
|
|
|
std::vector<int> last_stage_list_info;
|
|
|
|
|
|
|
|
bool is_stage_list_info_changed(MachineObject* obj);
|
|
|
|
|
|
|
|
void set_default();
|
|
|
|
void show_status(int status);
|
|
|
|
|
2022-07-22 09:46:10 +00:00
|
|
|
void set_hold_count(int& count);
|
|
|
|
|
2022-07-15 15:37:19 +00:00
|
|
|
void msw_rescale();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|