OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
RammingDialog Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/WipeTowerDialog.hpp>

Inheritance diagram for RammingDialog:
Collaboration diagram for RammingDialog:

Public Member Functions

 RammingDialog (wxWindow *parent, const std::string &parameters)
std::string get_parameters ()

Private Attributes

RammingPanel * m_panel_ramming = nullptr
std::string m_output_data

Detailed Description

Constructor & Destructor Documentation

◆ RammingDialog()

RammingDialog::RammingDialog ( wxWindow * parent,
const std::string & parameters )
66: wxDialog(parent, wxID_ANY, _(L("Ramming customization")), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE/* | wxRESIZE_BORDER*/)
67{
68 SetBackgroundColour(*wxWHITE);
69 m_panel_ramming = new RammingPanel(this,parameters);
70 m_panel_ramming->Show(true);
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&) {
82 m_output_data = m_panel_ramming->get_parameters();
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);// .ShowModal();
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

References _, L, m_output_data, m_panel_ramming, and Slic3r::GUI::DPIAware< P >::ShowModal().

Here is the call graph for this function:

Member Function Documentation

◆ get_parameters()

std::string RammingDialog::get_parameters ( )
inline
42{ return m_output_data; }

References m_output_data.

Member Data Documentation

◆ m_output_data

std::string RammingDialog::m_output_data
private

Referenced by RammingDialog(), and get_parameters().

◆ m_panel_ramming

RammingPanel* RammingDialog::m_panel_ramming = nullptr
private

Referenced by RammingDialog().


The documentation for this class was generated from the following files: