mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 10:35:53 +08:00
YAGNI - sizer-types don't need a passed-in window ID.
This commit is contained in:
parent
e337c5ad89
commit
3d52dd53ad
@ -291,10 +291,10 @@ private:
|
||||
std::regex show_value_flag {"\bshow_value\b"};
|
||||
};
|
||||
|
||||
class UI_Point : public UI_Sizer{
|
||||
class UI_Point : public UI_Sizer {
|
||||
public:
|
||||
|
||||
UI_Point(wxWindow* _parent, Slic3r::ConfigOptionDef _opt, wxWindowID id = wxID_ANY);
|
||||
UI_Point(wxWindow* _parent, Slic3r::ConfigOptionDef _opt);
|
||||
~UI_Point() { _lbl_x->Destroy(); _lbl_y->Destroy(); _ctrl_x->Destroy(); _ctrl_y->Destroy(); }
|
||||
std::string get_string();
|
||||
|
||||
|
@ -56,7 +56,7 @@ void UI_Point::_set_value(std::string value) {
|
||||
|
||||
}
|
||||
|
||||
UI_Point::UI_Point(wxWindow* _parent, Slic3r::ConfigOptionDef _opt, wxWindowID id) : UI_Sizer(_parent, _opt) {
|
||||
UI_Point::UI_Point(wxWindow* _parent, Slic3r::ConfigOptionDef _opt) : UI_Sizer(_parent, _opt) {
|
||||
Slic3r::Pointf def_val {_opt.default_value == nullptr ? Pointf() : Pointf(*(dynamic_cast<ConfigOptionPoint*>(_opt.default_value))) };
|
||||
|
||||
this->_ctrl_x = new wxTextCtrl(parent, wxID_ANY, trim_zeroes(wxString::FromDouble(def_val.x)), wxDefaultPosition, this->field_size, wxTE_PROCESS_ENTER);
|
||||
|
Loading…
x
Reference in New Issue
Block a user