mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
WIP: Plater
This commit is contained in:
parent
746d06fe3e
commit
342b584399
18 changed files with 1104 additions and 43 deletions
60
src/slic3r/GUI/Plater.hpp
Normal file
60
src/slic3r/GUI/Plater.hpp
Normal file
|
@ -0,0 +1,60 @@
|
|||
#ifndef slic3r_Plater_hpp_
|
||||
#define slic3r_Plater_hpp_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <wx/panel.h>
|
||||
#include <wx/scrolwin.h>
|
||||
|
||||
#include "Preset.hpp"
|
||||
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
class MainFrame;
|
||||
|
||||
class Sidebar : public wxPanel
|
||||
{
|
||||
public:
|
||||
Sidebar(wxWindow *parent);
|
||||
Sidebar(Sidebar &&) = delete;
|
||||
Sidebar(const Sidebar &) = delete;
|
||||
Sidebar &operator=(Sidebar &&) = delete;
|
||||
Sidebar &operator=(const Sidebar &) = delete;
|
||||
~Sidebar();
|
||||
|
||||
void update_presets(Slic3r::Preset::Type preset_type);
|
||||
private:
|
||||
struct priv;
|
||||
std::unique_ptr<priv> p;
|
||||
|
||||
friend class Plater; // XXX: better encapsulation?
|
||||
};
|
||||
|
||||
|
||||
class Plater: public wxPanel
|
||||
{
|
||||
public:
|
||||
Plater(wxWindow *parent, MainFrame *main_frame);
|
||||
Plater(Plater &&) = delete;
|
||||
Plater(const Plater &) = delete;
|
||||
Plater &operator=(Plater &&) = delete;
|
||||
Plater &operator=(const Plater &) = delete;
|
||||
~Plater();
|
||||
|
||||
Sidebar& sidebar();
|
||||
|
||||
// TODO: use fs::path
|
||||
// Note: empty string means request default path
|
||||
std::string export_gcode(const std::string &output_path);
|
||||
void reslice();
|
||||
private:
|
||||
struct priv;
|
||||
std::unique_ptr<priv> p;
|
||||
};
|
||||
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue