1361{
1363 wxString value =
double_to_string(default_nozzle !=
nullptr && default_nozzle->size() > 0 ? default_nozzle->get_at(0) : 0.5);
1365
1367 value =
double_to_string(default_filam !=
nullptr && default_filam->size() > 0 ? default_filam->get_at(0) : 3.0);
1369
1372
1373 append_text(
_L(
"Enter the diameter of your printer's hot end nozzle."));
1374
1375 auto *sizer_nozzle = new wxFlexGridSizer(3, 5, 5);
1376 auto *text_nozzle =
new wxStaticText(
this, wxID_ANY,
_L(
"Nozzle Diameter:"));
1378 sizer_nozzle->AddGrowableCol(0, 1);
1379 sizer_nozzle->Add(text_nozzle, 0, wxALIGN_CENTRE_VERTICAL);
1381 sizer_nozzle->Add(unit_nozzle, 0, wxALIGN_CENTRE_VERTICAL);
1383
1385
1387 append_text(
_L(
"Good precision is required, so use a caliper and do multiple measurements along the filament, then compute the average."));
1388
1389 auto *sizer_filam = new wxFlexGridSizer(3, 5, 5);
1390 auto *text_filam =
new wxStaticText(
this, wxID_ANY,
_L(
"Filament Diameter:"));
1392 sizer_filam->AddGrowableCol(0, 1);
1393 sizer_filam->Add(text_filam, 0, wxALIGN_CENTRE_VERTICAL);
1395 sizer_filam->Add(unit_filam, 0, wxALIGN_CENTRE_VERTICAL);
1397}
#define _L(s)
Definition OBJ.cpp:34
class WXDLLIMPEXP_FWD_CORE wxStaticText
Definition ProgressDialog.hpp:30
const ConfigOptionDef * get(const t_config_option_key &opt_key) const
Definition Config.hpp:2662
const T * get_default_value() const
Definition Config.hpp:2350
wxString double_to_string(double const value, const int max_precision)
Definition Field.cpp:99
static void focus_event(wxFocusEvent &e, wxTextCtrl *ctrl, double def_value)
Definition ConfigWizard.cpp:1319
@ VERTICAL_SPACING
Definition ConfigWizard_private.hpp:57
const PrintConfigDef print_config_def
Definition PrintConfig.cpp:10099
ConfigOptionFloatsTempl< false > ConfigOptionFloats
Definition Config.hpp:1015
T * append(T *thing, int proportion=0, int flag=wxEXPAND|wxTOP|wxBOTTOM, int border=10)
Definition ConfigWizard_private.hpp:227
ConfigWizard * parent
Definition ConfigWizard_private.hpp:218
void append_spacer(int space)
Definition ConfigWizard.cpp:521
ConfigWizardPage(ConfigWizard *parent, wxString title, wxString shortname, unsigned indent=0)
Definition ConfigWizard.cpp:477
wxStaticText * append_text(wxString text)
Definition ConfigWizard.cpp:512
wxTextCtrl * diam_nozzle
Definition ConfigWizard_private.hpp:459
wxTextCtrl * diam_filam
Definition ConfigWizard_private.hpp:460