mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 07:41:09 -06:00
Added possibility for upload to Duet
Further changes: - Added new configuration option Host Type - Added abstract base class for future printer hosts - Moved location of upload dialog (also made it a little bit more configureable) - added possibility to send file via postfield instead a new frame
This commit is contained in:
parent
3433e8e374
commit
dd1fd66a47
29 changed files with 699 additions and 128 deletions
|
@ -1,13 +0,0 @@
|
|||
%module{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <xsinit.h>
|
||||
#include "slic3r/Utils/OctoPrint.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::OctoPrint} class OctoPrint {
|
||||
OctoPrint(DynamicPrintConfig *config);
|
||||
~OctoPrint();
|
||||
|
||||
bool send_gcode(std::string filename) const;
|
||||
};
|
10
xs/xsp/Utils_PrintHost.xsp
Normal file
10
xs/xsp/Utils_PrintHost.xsp
Normal file
|
@ -0,0 +1,10 @@
|
|||
%module{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <xsinit.h>
|
||||
#include "slic3r/Utils/PrintHost.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::PrintHost} class PrintHost {
|
||||
bool send_gcode(std::string filename) const;
|
||||
};
|
13
xs/xsp/Utils_PrintHostFactory.xsp
Normal file
13
xs/xsp/Utils_PrintHostFactory.xsp
Normal file
|
@ -0,0 +1,13 @@
|
|||
%module{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <xsinit.h>
|
||||
#include "slic3r/Utils/PrintHostFactory.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::PrintHostFactory} class PrintHostFactory {
|
||||
PrintHostFactory();
|
||||
~PrintHostFactory();
|
||||
|
||||
static PrintHost * get_print_host(DynamicPrintConfig *config);
|
||||
};
|
|
@ -239,9 +239,11 @@ Ref<TabIface> O_OBJECT_SLIC3R_T
|
|||
PresetUpdater* O_OBJECT_SLIC3R
|
||||
Ref<PresetUpdater> O_OBJECT_SLIC3R_T
|
||||
|
||||
OctoPrint* O_OBJECT_SLIC3R
|
||||
Ref<OctoPrint> O_OBJECT_SLIC3R_T
|
||||
Clone<OctoPrint> O_OBJECT_SLIC3R_T
|
||||
PrintHostFactory* O_OBJECT_SLIC3R
|
||||
Ref<PrintHostFactory> O_OBJECT_SLIC3R_T
|
||||
Clone<PrintHostFactory> O_OBJECT_SLIC3R_T
|
||||
|
||||
PrintHost* O_OBJECT_SLIC3R
|
||||
|
||||
Axis T_UV
|
||||
ExtrusionLoopRole T_UV
|
||||
|
|
|
@ -270,3 +270,4 @@
|
|||
};
|
||||
%typemap{AppController*};
|
||||
%typemap{PrintController*};
|
||||
%typemap{PrintHost*};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue