mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 11:47:54 -06:00
Added LayerRangeEditor class for universally editing of the layer_range's parameters
+ Implemented layer_height editing
This commit is contained in:
parent
79a89c4c8f
commit
4756961678
4 changed files with 85 additions and 32 deletions
|
@ -12,6 +12,22 @@ class ModelObject;
|
|||
namespace GUI {
|
||||
class ConfigOptionsGroup;
|
||||
|
||||
class LayerRangeEditor : public wxTextCtrl
|
||||
{
|
||||
bool m_enter_pressed { false };
|
||||
public:
|
||||
LayerRangeEditor( wxWindow* parent,
|
||||
const wxString& value = wxEmptyString,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
std::function<void(coordf_t val)> edit_fn = [](coordf_t) {; }
|
||||
);
|
||||
~LayerRangeEditor() {}
|
||||
|
||||
|
||||
private:
|
||||
coordf_t get_value();
|
||||
};
|
||||
|
||||
class ObjectLayers : public OG_Settings
|
||||
{
|
||||
ScalableBitmap m_bmp_delete;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue