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

@ -37,6 +37,7 @@
#include "format.hpp"
#include "UnsavedChangesDialog.hpp"
#include "SavePresetDialog.hpp"
#include "EditGCodeDialog.hpp"
#include "MsgDialog.hpp"
#include "Notebook.hpp"
@ -2868,7 +2869,12 @@ static void validate_custom_gcode_cb(Tab* tab, ConfigOptionsGroupShp opt_group,
void Tab::edit_custom_gcode(const t_config_option_key& opt_key)
{
MessageDialog(this, format_wxstr("Edit gcode for %1%", opt_key), this->title()).ShowModal();
EditGCodeDialog(this, opt_key, m_config->opt_string(opt_key)).ShowModal();
}
void TabFilament::edit_custom_gcode(const t_config_option_key& opt_key)
{
EditGCodeDialog(this, opt_key, m_config->opt_string(opt_key, unsigned(m_presets_choice->GetSelection()))).ShowModal();
}
void TabFilament::add_filament_overrides_page()