mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00

Only current issue is that the grabber for the resizeable window is currently white (ongoing issue for Orca) Original Commit: prusa3d/PrusaSlicer@a8307bf Co-authored-by: YuSanka <yusanka@gmail.com>
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
#ifndef slic3r_EditGCodeDialog_hpp_
|
|
#define slic3r_EditGCodeDialog_hpp_
|
|
|
|
#include <vector>
|
|
|
|
#include <wx/gdicmn.h>
|
|
#include <slic3r/GUI/Widgets/Button.hpp>
|
|
|
|
#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:
|
|
std::unordered_map<int, Button *> m_button_list;
|
|
|
|
void on_dpi_changed(const wxRect& suggested_rect) override;
|
|
void on_sys_color_changed() override;
|
|
wxBoxSizer* EditGCodeDialog::create_btn_sizer(long flags);
|
|
};
|
|
|
|
|
|
} // namespace GUI
|
|
} // namespace Slic3r
|
|
|
|
#endif
|