Refactored code

This commit is contained in:
YuSanka 2018-08-22 14:24:30 +02:00
parent a5119a41a5
commit d2282c4bf9
3 changed files with 97 additions and 76 deletions

View file

@ -1053,11 +1053,13 @@ void add_frequently_changed_parameters(wxWindow* parent, wxBoxSizer* sizer, wxFl
add_objects_list(parent, sizer);
// experiment with slider
PrusaDoubleSlider* slider_h = new PrusaDoubleSlider(parent, wxID_ANY, 50, 70, 0, 200, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL);
PrusaDoubleSlider* slider_h = new PrusaDoubleSlider(parent, wxID_ANY, 50, 70, 0, 200, wxDefaultPosition,
wxSize(60, wxDefaultSize.y), wxSL_HORIZONTAL);
sizer->AddSpacer(5);
sizer->Add(slider_h, 0, wxEXPAND | wxLEFT, 20);
sizer->AddSpacer(5);
PrusaDoubleSlider* slider_v = new PrusaDoubleSlider(parent, wxID_ANY, 5, 7, 0, 10, wxDefaultPosition, wxSize(wxDefaultSize.x ,150), wxSL_VERTICAL);
PrusaDoubleSlider* slider_v = new PrusaDoubleSlider(parent, wxID_ANY, 50, 70, 0, 200, wxDefaultPosition,
wxSize(wxDefaultSize.x ,250), wxSL_VERTICAL);
slider_v->SetKoefForLabels(0.15);
sizer->AddSpacer(5);
sizer->Add(slider_v, 0, wxLEFT, 20);