mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 12:30:35 +08:00
finished removing local settings in favor of singleton ui_settings
This commit is contained in:
parent
ce4330e868
commit
deba961bf7
@ -4,7 +4,6 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include <wx/wx.h>
|
||||
#endif
|
||||
#include "Settings.hpp"
|
||||
#include "Model.hpp"
|
||||
#include "Config.hpp"
|
||||
|
||||
@ -13,14 +12,13 @@ namespace Slic3r { namespace GUI {
|
||||
class Plate3D : public wxPanel {
|
||||
public:
|
||||
void update() {};
|
||||
Plate3D(wxWindow* parent, const wxSize& size, std::vector<PlaterObject>& _objects, std::shared_ptr<Model> _model, std::shared_ptr<Config> _config, std::shared_ptr<Settings> _settings) :
|
||||
wxPanel(parent, wxID_ANY, wxDefaultPosition, size, wxTAB_TRAVERSAL), objects(_objects), model(_model), config(_config), settings(_settings)
|
||||
Plate3D(wxWindow* parent, const wxSize& size, std::vector<PlaterObject>& _objects, std::shared_ptr<Model> _model, std::shared_ptr<Config> _config) :
|
||||
wxPanel(parent, wxID_ANY, wxDefaultPosition, size, wxTAB_TRAVERSAL), objects(_objects), model(_model), config(_config)
|
||||
{}
|
||||
private:
|
||||
std::vector<PlaterObject>& objects; //< reference to parent vector
|
||||
std::shared_ptr<Slic3r::Model> model;
|
||||
std::shared_ptr<Slic3r::Config> config;
|
||||
std::shared_ptr<Settings> settings;
|
||||
};
|
||||
|
||||
} } // Namespace Slic3r::GUI
|
||||
|
@ -14,7 +14,7 @@ class Preview2D : public wxPanel {
|
||||
public:
|
||||
void reload_print() {};
|
||||
Preview2D(wxWindow* parent, const wxSize& size, std::vector<PlaterObject>& _objects, std::shared_ptr<Model> _model, std::shared_ptr<Config> _config) :
|
||||
wxPanel(parent, wxID_ANY, wxDefaultPosition, size, wxTAB_TRAVERSAL), objects(_objects), model(_model), config(_config), settings(_settings)
|
||||
wxPanel(parent, wxID_ANY, wxDefaultPosition, size, wxTAB_TRAVERSAL), objects(_objects), model(_model), config(_config)
|
||||
{}
|
||||
|
||||
void enabled(bool enable = true) {}
|
||||
|
@ -14,7 +14,7 @@ class Preview3D : public wxPanel {
|
||||
public:
|
||||
void reload_print() {};
|
||||
Preview3D(wxWindow* parent, const wxSize& size, std::vector<PlaterObject>& _objects, std::shared_ptr<Model> _model, std::shared_ptr<Config> _config) :
|
||||
wxPanel(parent, wxID_ANY, wxDefaultPosition, size, wxTAB_TRAVERSAL), objects(_objects), model(_model), config(_config), settings(_settings)
|
||||
wxPanel(parent, wxID_ANY, wxDefaultPosition, size, wxTAB_TRAVERSAL), objects(_objects), model(_model), config(_config)
|
||||
{}
|
||||
|
||||
void enabled(bool enable = true) {}
|
||||
|
@ -14,7 +14,7 @@ class PreviewDLP : public wxPanel {
|
||||
public:
|
||||
void reload_print() {};
|
||||
PreviewDLP(wxWindow* parent, const wxSize& size, std::vector<PlaterObject>& _objects, std::shared_ptr<Model> _model, std::shared_ptr<Config> _config) :
|
||||
wxPanel(parent, wxID_ANY, wxDefaultPosition, size, wxTAB_TRAVERSAL), objects(_objects), model(_model), config(_config), settings(_settings)
|
||||
wxPanel(parent, wxID_ANY, wxDefaultPosition, size, wxTAB_TRAVERSAL), objects(_objects), model(_model), config(_config)
|
||||
{}
|
||||
|
||||
void enabled(bool enable = true) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user