mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 15:51:10 -06:00
Merge with latest master
This commit is contained in:
commit
a7298d9d89
469 changed files with 186404 additions and 685 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <xsinit.h>
|
||||
#include "slic3r/GUI/GUI.hpp"
|
||||
#include "slic3r/Utils/ASCIIFolding.hpp"
|
||||
#include "slic3r/Utils/Serial.hpp"
|
||||
%}
|
||||
|
||||
|
||||
|
@ -19,7 +20,7 @@ void enable_screensaver()
|
|||
%code{% Slic3r::GUI::enable_screensaver(); %};
|
||||
|
||||
std::vector<std::string> scan_serial_ports()
|
||||
%code{% RETVAL=Slic3r::GUI::scan_serial_ports(); %};
|
||||
%code{% RETVAL=Slic3r::Utils::scan_serial_ports(); %};
|
||||
|
||||
bool debugged()
|
||||
%code{% RETVAL=Slic3r::GUI::debugged(); %};
|
||||
|
@ -36,8 +37,8 @@ void set_main_frame(SV *ui)
|
|||
void set_tab_panel(SV *ui)
|
||||
%code%{ Slic3r::GUI::set_tab_panel((wxNotebook*)wxPli_sv_2_object(aTHX_ ui, "Wx::Notebook")); %};
|
||||
|
||||
void add_config_menu(SV *ui, int event_preferences_changed, int event_language_change)
|
||||
%code%{ Slic3r::GUI::add_config_menu((wxMenuBar*)wxPli_sv_2_object(aTHX_ ui, "Wx::MenuBar"), event_preferences_changed, event_language_change); %};
|
||||
void add_menus(SV *ui, int event_preferences_changed, int event_language_change)
|
||||
%code%{ Slic3r::GUI::add_menus((wxMenuBar*)wxPli_sv_2_object(aTHX_ ui, "Wx::MenuBar"), event_preferences_changed, event_language_change); %};
|
||||
|
||||
void create_preset_tabs(bool no_controller, int event_value_change, int event_presets_changed)
|
||||
%code%{ Slic3r::GUI::create_preset_tabs(no_controller, event_value_change, event_presets_changed); %};
|
||||
|
@ -94,4 +95,6 @@ void add_export_option(SV *ui, std::string format)
|
|||
|
||||
int get_export_option(SV *ui)
|
||||
%code%{ RETVAL = Slic3r::GUI::get_export_option((wxFileDialog*)wxPli_sv_2_object(aTHX_ ui, "Wx::FileDialog")); %};
|
||||
|
||||
|
||||
void desktop_open_datadir_folder()
|
||||
%code%{ Slic3r::GUI::desktop_open_datadir_folder(); %};
|
||||
|
|
|
@ -92,10 +92,9 @@
|
|||
int count()
|
||||
%code{% RETVAL = THIS->volumes.size(); %};
|
||||
|
||||
std::vector<double> get_current_print_zs()
|
||||
%code{% RETVAL = THIS->get_current_print_zs(); %};
|
||||
std::vector<double> get_current_print_zs(bool active_only)
|
||||
%code{% RETVAL = THIS->get_current_print_zs(active_only); %};
|
||||
|
||||
|
||||
void set_range(double low, double high);
|
||||
|
||||
void render_VBOs() const;
|
||||
|
@ -104,7 +103,12 @@
|
|||
void release_geometry();
|
||||
|
||||
void set_print_box(float min_x, float min_y, float min_z, float max_x, float max_y, float max_z);
|
||||
void update_outside_state(DynamicPrintConfig* config, bool all_inside);
|
||||
bool check_outside_state(DynamicPrintConfig* config)
|
||||
%code%{
|
||||
RETVAL = THIS->check_outside_state(config);
|
||||
%};
|
||||
|
||||
void reset_outside_state();
|
||||
void update_colors_by_extruder(DynamicPrintConfig* config);
|
||||
|
||||
bool move_volume_up(int idx)
|
||||
|
|
|
@ -99,9 +99,6 @@
|
|||
|
||||
void print_info() const;
|
||||
|
||||
bool fits_print_volume(DynamicPrintConfig* config) const
|
||||
%code%{ RETVAL = THIS->fits_print_volume(config); %};
|
||||
|
||||
bool store_stl(char *path, bool binary)
|
||||
%code%{ TriangleMesh mesh = THIS->mesh(); RETVAL = Slic3r::store_stl(path, &mesh, binary); %};
|
||||
bool store_amf(char *path, Print* print, bool export_print_config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue