mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
NEW: add first layer and spaghetti options
Change-Id: I6e2237a59a2e1fdb3a2f0432be3c7b22db944811 Signed-off-by: Stone Li <stone.li@bambulab.com> (cherry picked from commit 382652d8da84198bd51caa9d33331b53c5ac6721)
This commit is contained in:
parent
ad7e4d6de9
commit
506605041e
7 changed files with 312 additions and 5 deletions
47
src/slic3r/GUI/PrintOptionsDialog.hpp
Normal file
47
src/slic3r/GUI/PrintOptionsDialog.hpp
Normal file
|
@ -0,0 +1,47 @@
|
|||
#ifndef slic3r_GUI_PrintOptionsDialog_hpp_
|
||||
#define slic3r_GUI_PrintOptionsDialog_hpp_
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/font.h>
|
||||
#include <wx/colour.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/dialog.h>
|
||||
|
||||
#include "GUI_Utils.hpp"
|
||||
#include "wxExtensions.hpp"
|
||||
#include "DeviceManager.hpp"
|
||||
#include "Widgets/Label.hpp"
|
||||
#include "Widgets/CheckBox.hpp"
|
||||
#include "Widgets/StaticLine.hpp"
|
||||
|
||||
namespace Slic3r { namespace GUI {
|
||||
|
||||
class PrintOptionsDialog : public DPIDialog
|
||||
{
|
||||
protected:
|
||||
// settings
|
||||
CheckBox* m_cb_first_layer;
|
||||
CheckBox* m_cb_spaqhetti;
|
||||
CheckBox* m_cb_spaqhetti_print_halt;
|
||||
wxStaticText* text_spaqhetti_print_halt;
|
||||
wxBoxSizer* create_settings_group(wxWindow* parent);
|
||||
|
||||
public:
|
||||
PrintOptionsDialog(wxWindow* parent);
|
||||
~PrintOptionsDialog();
|
||||
void on_dpi_changed(const wxRect &suggested_rect) override;
|
||||
void update_spaqhetti();
|
||||
|
||||
MachineObject *obj { nullptr };
|
||||
|
||||
std::vector<int> last_stage_list_info;
|
||||
int m_state{0};
|
||||
void update_options(MachineObject *obj_);
|
||||
void update_machine_obj(MachineObject *obj_);
|
||||
bool Show(bool show) override;
|
||||
};
|
||||
|
||||
}} // namespace Slic3r::GUI
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue