mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
fix ramming ui
This commit is contained in:
parent
1a358721c2
commit
e95ec070c1
3 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
// Orca: This file is ported from latest PrusaSlicer
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <wx/dcbuffer.h>
|
#include <wx/dcbuffer.h>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// Orca: This file is ported from latest PrusaSlicer
|
||||||
|
|
||||||
#ifndef RAMMING_CHART_H_
|
#ifndef RAMMING_CHART_H_
|
||||||
#define RAMMING_CHART_H_
|
#define RAMMING_CHART_H_
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ RammingPanel::RammingPanel(wxWindow* parent, const std::string& parameters)
|
||||||
while (stream >> x >> y)
|
while (stream >> x >> y)
|
||||||
buttons.push_back(std::make_pair(x, y));
|
buttons.push_back(std::make_pair(x, y));
|
||||||
|
|
||||||
m_chart = new Chart(this, wxRect(scale(1),scale(1),scale(48),scale(36)), buttons, ramming_speed_size, 0.25f, scale(1));
|
m_chart = new Chart(this, wxRect(scale(10),scale(10),scale(480),scale(360)), buttons, ramming_speed_size, 0.25f, scale(10));
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
update_ui(m_chart);
|
update_ui(m_chart);
|
||||||
#else
|
#else
|
||||||
|
@ -122,10 +122,10 @@ RammingPanel::RammingPanel(wxWindow* parent, const std::string& parameters)
|
||||||
#endif
|
#endif
|
||||||
sizer_chart->Add(m_chart, 0, wxALL, 5);
|
sizer_chart->Add(m_chart, 0, wxALL, 5);
|
||||||
|
|
||||||
m_widget_time = new wxSpinCtrlDouble(this,wxID_ANY,wxEmptyString,wxDefaultPosition,wxSize(ITEM_WIDTH(), -1),style,0.,5.0,3.,0.5);
|
m_widget_time = new wxSpinCtrlDouble(this,wxID_ANY,wxEmptyString,wxDefaultPosition,wxSize(ITEM_WIDTH()*2.5, -1),style,0.,5.0,3.,0.5);
|
||||||
m_widget_volume = new wxSpinCtrl(this,wxID_ANY,wxEmptyString,wxDefaultPosition,wxSize(ITEM_WIDTH(), -1),style,0,10000,0);
|
m_widget_volume = new wxSpinCtrl(this,wxID_ANY,wxEmptyString,wxDefaultPosition,wxSize(ITEM_WIDTH()*2.5, -1),style,0,10000,0);
|
||||||
m_widget_ramming_line_width_multiplicator = new wxSpinCtrl(this,wxID_ANY,wxEmptyString,wxDefaultPosition,wxSize(ITEM_WIDTH(), -1),style,10,200,100);
|
m_widget_ramming_line_width_multiplicator = new wxSpinCtrl(this,wxID_ANY,wxEmptyString,wxDefaultPosition,wxSize(ITEM_WIDTH()*2.5, -1),style,10,200,100);
|
||||||
m_widget_ramming_step_multiplicator = new wxSpinCtrl(this,wxID_ANY,wxEmptyString,wxDefaultPosition,wxSize(ITEM_WIDTH(), -1),style,10,200,100);
|
m_widget_ramming_step_multiplicator = new wxSpinCtrl(this,wxID_ANY,wxEmptyString,wxDefaultPosition,wxSize(ITEM_WIDTH()*2.5, -1),style,10,200,100);
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
update_ui(m_widget_time->GetText());
|
update_ui(m_widget_time->GetText());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue