mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 02:21:58 +08:00
48 lines
945 B
C++
48 lines
945 B
C++
#ifndef slic3r_EditGCodeDialog_hpp_
|
|
#define slic3r_EditGCodeDialog_hpp_
|
|
|
|
#include <vector>
|
|
|
|
#include <wx/gdicmn.h>
|
|
|
|
#include "GUI_Utils.hpp"
|
|
|
|
class wxListBox;
|
|
class wxTextCtrl;
|
|
//class wxStaticText;
|
|
class ScalableButton;
|
|
//class wxBoxSizer;
|
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
class PresetComboBox;
|
|
|
|
//------------------------------------------
|
|
// EditGCodeDialog
|
|
//------------------------------------------
|
|
|
|
class EditGCodeDialog : public DPIDialog
|
|
{
|
|
wxListBox* m_patterns_list {nullptr};
|
|
ScalableButton* m_add_btn {nullptr};
|
|
wxTextCtrl* m_gcode_editor {nullptr};
|
|
|
|
void OnOK(wxEvent& event);
|
|
|
|
public:
|
|
EditGCodeDialog(wxWindow* parent, const std::string& key, const std::string& value);
|
|
~EditGCodeDialog() {}
|
|
|
|
protected:
|
|
void on_dpi_changed(const wxRect& suggested_rect) override;
|
|
void on_sys_color_changed() override;
|
|
};
|
|
|
|
|
|
} // namespace GUI
|
|
} // namespace Slic3r
|
|
|
|
#endif
|