NEW: add plate name edit function

Change-Id: Ic2aacd8617856efd2f528bddab74e5881df28e01
(cherry picked from commit b0bd89928ed974aa77a0b2f4138c53899ae8ba93)
This commit is contained in:
zhou.xu 2023-06-29 16:26:43 +08:00 committed by Lane.Wei
parent e9f3ddb61b
commit e55aa34da0
11 changed files with 247 additions and 28 deletions

View file

@ -49,17 +49,35 @@ public:
return choice;
};
wxString get_plate_name() const;
void set_plate_name(const wxString &name);
protected:
ComboBox* m_print_seq_choice { nullptr };
ComboBox* m_bed_type_choice { nullptr };
Button* m_button_ok;
Button* m_button_cancel;
TextInput *m_ti_plate_name;
};
class PlateNameEditDialog : public DPIDialog
{
public:
enum ButtonStyle { ONLY_CONFIRM = 0, CONFIRM_AND_CANCEL = 1, MAX_STYLE_NUM = 2 };
PlateNameEditDialog(wxWindow * parent,
wxWindowID id = wxID_ANY,
const wxString &title = wxEmptyString,
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize,
long style = wxCLOSE_BOX | wxCAPTION);
~PlateNameEditDialog();
void on_dpi_changed(const wxRect &suggested_rect) override;
wxString get_plate_name() const;
void set_plate_name(const wxString &name);
protected:
Button * m_button_ok;
Button * m_button_cancel;
TextInput *m_ti_plate_name;
};
}} // namespace Slic3r::GUI
#endif