Add first impl of EditGCodeDialog

Only current issue is that the grabber for the resizeable window is currently white (ongoing issue for Orca)

Original Commit: prusa3d/PrusaSlicer@a8307bf

Co-authored-by: YuSanka <yusanka@gmail.com>
This commit is contained in:
Ocraftyone 2023-12-24 05:20:27 -05:00
parent accdbb9661
commit dd802764b9
No known key found for this signature in database
GPG key ID: 85836ED21AD4D125
5 changed files with 314 additions and 2 deletions

View file

@ -404,11 +404,12 @@ public:
void restore_last_select_item();
static bool validate_custom_gcode(const wxString& title, const std::string& gcode);
void edit_custom_gcode(const t_config_option_key &opt_key);
bool validate_custom_gcodes();
bool validate_custom_gcodes_was_shown{ false };
void set_just_edit(bool just_edit);
virtual void edit_custom_gcode(const t_config_option_key &opt_key);
protected:
void create_line_with_widget(ConfigOptionsGroup* optgroup, const std::string& opt_key, const std::string& path, widget_t widget);
wxSizer* compatible_widget_create(wxWindow* parent, PresetDependencies &deps);
@ -561,6 +562,7 @@ public:
void update() override;
void clear_pages() override;
bool supports_printer_technology(const PrinterTechnology tech) const override { return tech == ptFFF; }
void edit_custom_gcode(const t_config_option_key& opt_key) override;
};
class TabPrinter : public Tab