66: wxDialog(parent, wxID_ANY,
_(
L(
"Ramming customization")), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE)
67{
68 SetBackgroundColour(*wxWHITE);
71
72 auto main_sizer = new wxBoxSizer(wxVERTICAL);
73 main_sizer->Add(
m_panel_ramming, 1, wxEXPAND | wxTOP | wxLEFT | wxRIGHT, 5);
74 auto dlg_btns = new DialogButtons(this, {"OK", "Cancel"});
75 main_sizer->Add(dlg_btns, 0, wxEXPAND);
76 SetSizer(main_sizer);
77 main_sizer->SetSizeHints(this);
78
79 this->Bind(wxEVT_CLOSE_WINDOW, [this](wxCloseEvent& e) { EndModal(wxCANCEL); });
80
81 this->Bind(wxEVT_BUTTON,[this](wxCommandEvent&) {
83 EndModal(wxID_OK);
84 },wxID_OK);
85
86 wxGetApp().UpdateDlgDarkUI(this);
87 this->Show();
88
89 Slic3r::GUI::MessageDialog dlg(
this,
_(
L(
"Ramming denotes the rapid extrusion just before a tool change in a single-extruder MM printer. Its purpose is to "
90 "properly shape the end of the unloaded filament so it does not prevent insertion of the new filament and can itself "
91 "be reinserted later. This phase is important and different materials can require different extrusion speeds to get "
92 "the good shape. For this reason, the extrusion rates during ramming are adjustable.\n\nThis is an expert-level "
93 "setting, incorrect adjustment will likely lead to jams, extruder wheel grinding into filament etc.")),
_(
L(
"Warning")), wxOK | wxICON_EXCLAMATION);
94 dlg.ShowModal();
95}
#define _(s)
Definition 3mf.cpp:306
#define L(s)
Definition ExtrusionEntity.cpp:25
RammingPanel * m_panel_ramming
Definition WipeTowerDialog.hpp:44
std::string m_output_data
Definition WipeTowerDialog.hpp:45