#ifndef slic3r_AMSSettingDialog_hpp_ #define slic3r_AMSSettingDialog_hpp_ #include "libslic3r/Preset.hpp" #include "wxExtensions.hpp" #include "GUI_Utils.hpp" #include "DeviceManager.hpp" #include "Widgets/RadioBox.hpp" #include "Widgets/Button.hpp" #include "Widgets/RoundedRectangle.hpp" #include "Widgets/Label.hpp" #include "Widgets/CheckBox.hpp" #define AMS_SETTING_DEF_COLOUR wxColour(255, 255, 255) #define AMS_SETTING_GREY800 wxColour(50, 58, 61) #define AMS_SETTING_GREY700 wxColour(107, 107, 107) #define AMS_SETTING_GREY200 wxColour(248, 248, 248) #define AMS_SETTING_BODY_WIDTH FromDIP(380) #define AMS_SETTING_BUTTON_SIZE wxSize(FromDIP(150), FromDIP(24)) namespace Slic3r { namespace GUI { class AMSSetting : public DPIDialog { public: AMSSetting(wxWindow *parent, wxWindowID id, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE); ~AMSSetting(); void create(); void update_insert_material_read_mode(bool selected); void update_starting_read_mode(bool selected); void on_select_ok(wxMouseEvent &event); void on_insert_material_read(wxCommandEvent &event); void on_starting_read(wxCommandEvent &event); wxString append_title(wxString text); wxStaticText *append_text(wxString text); MachineObject *obj{nullptr}; int ams_id { 0 }; protected: void on_dpi_changed(const wxRect &suggested_rect) override; protected: wxPanel * m_panel_body; CheckBox * m_checkbox_Insert_material_auto_read; wxStaticText *m_title_Insert_material_auto_read; wxStaticText *m_tip_Insert_material_line1; wxStaticText *m_tip_Insert_material_line2; wxStaticText *m_tip_Insert_material_line3; CheckBox * m_checkbox_starting_auto_read; wxStaticText *m_title_starting_auto_read; wxStaticText *m_tip_starting_line1; wxStaticText *m_tip_starting_line2; wxPanel * m_panel_img; wxStaticText *m_tip_ams_img; Button * m_button_auto_demarcate; wxBoxSizer *m_sizer_Insert_material_tip_inline; wxBoxSizer *m_sizer_starting_tip_inline; }; }} // namespace Slic3r::GUI #endif