Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2019-07-17 15:53:02 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-07-17 15:53:02 +0300
commit75c53a53b653427de63f9b5f24637895c0562a01 (patch)
treedff2af6120664767bce9fd4b36525fdf14c08845 /src/slic3r/GUI/BedShapeDialog.hpp
parentce5618fb270179e6cc8792bdf54e7ccf0e44370f (diff)
Refactoring of BedShapePanel and BedShapeDialog
Diffstat (limited to 'src/slic3r/GUI/BedShapeDialog.hpp')
-rw-r--r--src/slic3r/GUI/BedShapeDialog.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/slic3r/GUI/BedShapeDialog.hpp b/src/slic3r/GUI/BedShapeDialog.hpp
index d2c67a7c7..81d47320d 100644
--- a/src/slic3r/GUI/BedShapeDialog.hpp
+++ b/src/slic3r/GUI/BedShapeDialog.hpp
@@ -23,15 +23,15 @@ public:
BedShapePanel(wxWindow* parent) : wxPanel(parent, wxID_ANY) {}
~BedShapePanel() {}
- void build_panel(ConfigOptionPoints* default_pt);
-
+ void build_panel(const ConfigOptionPoints& default_pt);
+
// Returns the resulting bed shape polygon. This value will be stored to the ini file.
- std::vector<Vec2d> GetValue() { return m_canvas->m_bed_shape; }
+ std::vector<Vec2d> get_bed_shape() { return m_canvas->m_bed_shape; }
private:
ConfigOptionsGroupShp init_shape_options_page(const wxString& title);
- void set_shape(ConfigOptionPoints* points);
- void update_preview();
+ void set_shape(const ConfigOptionPoints& points);
+ void update_preview();
void update_shape();
void load_stl();
@@ -49,8 +49,8 @@ public:
wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) {}
~BedShapeDialog() {}
- void build_dialog(ConfigOptionPoints* default_pt);
- std::vector<Vec2d> GetValue() { return m_panel->GetValue(); }
+ void build_dialog(const ConfigOptionPoints& default_pt);
+ std::vector<Vec2d> get_bed_shape() { return m_panel->get_bed_shape(); }
protected:
void on_dpi_changed(const wxRect &suggested_rect) override;