OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::PageBedShape Struct Reference

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

Inheritance diagram for Slic3r::GUI::PageBedShape:
Collaboration diagram for Slic3r::GUI::PageBedShape:

Public Member Functions

 PageBedShape (ConfigWizard *parent)
virtual void apply_custom_config (DynamicPrintConfig &config)
template<class T>
T * append (T *thing, int proportion=0, int flag=wxEXPAND|wxTOP|wxBOTTOM, int border=10)
wxStaticText * append_text (wxString text)
void append_spacer (int space)
ConfigWizard::priv * wizard_p () const
virtual void set_run_reason (ConfigWizard::RunReason run_reason)
virtual void on_activate ()

Public Attributes

BedShapePanel * shape_panel
ConfigWizard * parent
const wxString shortname
wxBoxSizer * content
const unsigned indent

Detailed Description

Constructor & Destructor Documentation

◆ PageBedShape()

Slic3r::GUI::PageBedShape::PageBedShape ( ConfigWizard * parent)
1297 : ConfigWizardPage(parent, _L("Bed Shape and Size"), _L("Bed Shape"), 1)
1298 , shape_panel(new BedShapePanel(this))
1299{
1300 append_text(_L("Set the shape of your printer's bed."));
1301
1302 shape_panel->build_panel(wizard_p()->custom_config->option<ConfigOptionPoints>("printable_area")->values,
1303 *wizard_p()->custom_config->option<ConfigOptionString>("bed_custom_texture"),
1304 *wizard_p()->custom_config->option<ConfigOptionString>("bed_custom_model"));
1305
1307}
#define _L(s)
Definition OBJ.cpp:34
zaa_minimize_perimeter_height ConfigOptionString
Definition PrintConfig.hpp:1702
T * append(T *thing, int proportion=0, int flag=wxEXPAND|wxTOP|wxBOTTOM, int border=10)
Definition ConfigWizard_private.hpp:227
ConfigWizard::priv * wizard_p() const
Definition ConfigWizard_private.hpp:236
ConfigWizard * parent
Definition ConfigWizard_private.hpp:218
ConfigWizardPage(ConfigWizard *parent, wxString title, wxString shortname, unsigned indent=0)
Definition ConfigWizard.cpp:477
wxStaticText * append_text(wxString text)
Definition ConfigWizard.cpp:512
BedShapePanel * shape_panel
Definition ConfigWizard_private.hpp:451

References Slic3r::GUI::ConfigWizardPage::ConfigWizardPage(), _L, Slic3r::GUI::ConfigWizardPage::append(), Slic3r::GUI::ConfigWizardPage::append_text(), Slic3r::GUI::ConfigWizardPage::parent, shape_panel, Slic3r::ConfigOptionVector< T >::values, and Slic3r::GUI::ConfigWizardPage::wizard_p().

Here is the call graph for this function:

Member Function Documentation

◆ append()

template<class T>
T * Slic3r::GUI::ConfigWizardPage::append ( T * thing,
int proportion = 0,
int flag = wxEXPAND|wxTOP|wxBOTTOM,
int border = 10 )
inlineinherited
228 {
229 content->Add(thing, proportion, flag, border);
230 return thing;
231 }
wxBoxSizer * content
Definition ConfigWizard_private.hpp:220

References content.

Referenced by Slic3r::GUI::PageBedShape::PageBedShape(), Slic3r::GUI::PageCustom::PageCustom(), Slic3r::GUI::PageDiameters::PageDiameters(), Slic3r::GUI::PageFirmware::PageFirmware(), Slic3r::GUI::PageMaterials::PageMaterials(), Slic3r::GUI::PagePrinters::PagePrinters(), Slic3r::GUI::PageTemperatures::PageTemperatures(), Slic3r::GUI::PageWelcome::PageWelcome(), and append_text().

Here is the caller graph for this function:

◆ append_spacer()

void Slic3r::GUI::ConfigWizardPage::append_spacer ( int space)
inherited
522{
523 // FIXME: scaling
524 content->AddSpacer(space);
525}

References content.

Referenced by Slic3r::GUI::PageDiameters::PageDiameters(), Slic3r::GUI::PageMaterials::PageMaterials(), and Slic3r::GUI::PageTemperatures::PageTemperatures().

Here is the caller graph for this function:

◆ append_text()

wxStaticText * Slic3r::GUI::ConfigWizardPage::append_text ( wxString text)
inherited
513{
514 auto *widget = new wxStaticText(this, wxID_ANY, text, wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT);
515 widget->Wrap(WRAP_WIDTH);
516 widget->SetMinSize(wxSize(WRAP_WIDTH, -1));
517 append(widget);
518 return widget;
519}
class WXDLLIMPEXP_FWD_CORE wxStaticText
Definition ProgressDialog.hpp:30
@ WRAP_WIDTH
Definition ConfigWizard_private.hpp:50

References append(), Slic3r::GUI::WRAP_WIDTH, and wxStaticText.

Referenced by Slic3r::GUI::PageBedShape::PageBedShape(), Slic3r::GUI::PageDiameters::PageDiameters(), Slic3r::GUI::PageFirmware::PageFirmware(), Slic3r::GUI::PageTemperatures::PageTemperatures(), and Slic3r::GUI::PageWelcome::PageWelcome().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_custom_config()

void Slic3r::GUI::PageBedShape::apply_custom_config ( DynamicPrintConfig & config)
virtual

Reimplemented from Slic3r::GUI::ConfigWizardPage.

1310{
1311 const std::vector<Vec2d>& points = shape_panel->get_shape();
1312 const std::string& custom_texture = shape_panel->get_custom_texture();
1313 const std::string& custom_model = shape_panel->get_custom_model();
1314 config.set_key_value("printable_area", new ConfigOptionPoints(points));
1315 config.set_key_value("bed_custom_texture", new ConfigOptionString(custom_texture));
1316 config.set_key_value("bed_custom_model", new ConfigOptionString(custom_model));
1317}

References Slic3r::ConfigOptionString, Slic3r::DynamicConfig::set_key_value(), and shape_panel.

Here is the call graph for this function:

◆ on_activate()

virtual void Slic3r::GUI::ConfigWizardPage::on_activate ( )
inlinevirtualinherited

Reimplemented in Slic3r::GUI::PageMaterials.

240{}

◆ set_run_reason()

virtual void Slic3r::GUI::ConfigWizardPage::set_run_reason ( ConfigWizard::RunReason run_reason)
inlinevirtualinherited

◆ wizard_p()

ConfigWizard::priv * Slic3r::GUI::ConfigWizardPage::wizard_p ( ) const
inlineinherited
236{ return parent->p.get(); }

References parent.

Referenced by Slic3r::GUI::PageBedShape::PageBedShape(), Slic3r::GUI::PageCustom::PageCustom(), Slic3r::GUI::PagePrinters::PagePrinters(), Slic3r::GUI::PageMaterials::on_activate(), Slic3r::GUI::PageMaterials::select_material(), and Slic3r::GUI::PageMaterials::update_lists().

Here is the caller graph for this function:

Member Data Documentation

◆ content

wxBoxSizer* Slic3r::GUI::ConfigWizardPage::content
inherited

◆ indent

const unsigned Slic3r::GUI::ConfigWizardPage::indent
inherited

◆ parent

◆ shape_panel

BedShapePanel* Slic3r::GUI::PageBedShape::shape_panel

◆ shortname


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