2015-12-04 20:25:45 +00:00
|
|
|
%module{Slic3r::XS};
|
|
|
|
|
|
|
|
%{
|
2015-12-07 23:39:54 +00:00
|
|
|
#include <xsinit.h>
|
2015-12-06 11:54:01 +00:00
|
|
|
#include "slic3r/GUI/GUI.hpp"
|
2015-12-04 20:25:45 +00:00
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
|
|
%package{Slic3r::GUI};
|
|
|
|
|
|
|
|
void disable_screensaver()
|
|
|
|
%code{% Slic3r::GUI::disable_screensaver(); %};
|
|
|
|
|
|
|
|
void enable_screensaver()
|
|
|
|
%code{% Slic3r::GUI::enable_screensaver(); %};
|
2016-04-13 18:45:44 +00:00
|
|
|
|
2017-11-02 15:21:34 +00:00
|
|
|
std::vector<std::string> scan_serial_ports()
|
|
|
|
%code{% RETVAL=Slic3r::GUI::scan_serial_ports(); %};
|
|
|
|
|
2016-04-13 18:45:44 +00:00
|
|
|
bool debugged()
|
|
|
|
%code{% RETVAL=Slic3r::GUI::debugged(); %};
|
|
|
|
|
|
|
|
void break_to_debugger()
|
|
|
|
%code{% Slic3r::GUI::break_to_debugger(); %};
|
2017-12-04 09:48:40 +00:00
|
|
|
|
|
|
|
void set_wxapp(SV *ui)
|
|
|
|
%code%{ Slic3r::GUI::set_wxapp((wxApp*)wxPli_sv_2_object(aTHX_ ui, "Wx::App")); %};
|
|
|
|
|
|
|
|
void set_main_frame(SV *ui)
|
|
|
|
%code%{ Slic3r::GUI::set_main_frame((wxFrame*)wxPli_sv_2_object(aTHX_ ui, "Wx::Frame")); %};
|
|
|
|
|
|
|
|
void set_tab_panel(SV *ui)
|
|
|
|
%code%{ Slic3r::GUI::set_tab_panel((wxNotebook*)wxPli_sv_2_object(aTHX_ ui, "Wx::Notebook")); %};
|
2018-02-15 17:13:37 +00:00
|
|
|
|
2018-02-09 10:04:34 +00:00
|
|
|
void add_debug_menu(SV *ui, int event_language_change)
|
|
|
|
%code%{ Slic3r::GUI::add_debug_menu((wxMenuBar*)wxPli_sv_2_object(aTHX_ ui, "Wx::MenuBar"), event_language_change); %};
|
2017-12-04 09:48:40 +00:00
|
|
|
|
2018-02-20 07:58:46 +00:00
|
|
|
void create_preset_tabs(PresetBundle *preset_bundle, bool no_controller,
|
|
|
|
bool is_disabled_button_browse, bool is_user_agent,
|
2018-01-26 00:44:34 +00:00
|
|
|
int event_value_change, int event_presets_changed,
|
|
|
|
int event_button_browse, int event_button_test)
|
2018-02-20 07:58:46 +00:00
|
|
|
%code%{ Slic3r::GUI::create_preset_tabs(preset_bundle, no_controller,
|
2018-01-26 00:44:34 +00:00
|
|
|
is_disabled_button_browse, is_user_agent,
|
|
|
|
event_value_change, event_presets_changed,
|
|
|
|
event_button_browse, event_button_test); %};
|
2017-12-04 09:48:40 +00:00
|
|
|
|
2018-01-23 10:37:19 +00:00
|
|
|
Ref<TabIface> get_preset_tab(char *name)
|
|
|
|
%code%{ RETVAL=Slic3r::GUI::get_preset_tab_iface(name); %};
|
2018-02-09 10:04:34 +00:00
|
|
|
|
|
|
|
bool load_language()
|
|
|
|
%code%{ RETVAL=Slic3r::GUI::load_language(); %};
|
2018-02-02 11:38:35 +00:00
|
|
|
|
|
|
|
void create_combochecklist(SV *ui, std::string text, std::string items, bool initial_value)
|
|
|
|
%code%{ Slic3r::GUI::create_combochecklist((wxComboCtrl*)wxPli_sv_2_object(aTHX_ ui, "Wx::ComboCtrl"), text, items, initial_value); %};
|
|
|
|
|
|
|
|
int combochecklist_get_flags(SV *ui)
|
|
|
|
%code%{ RETVAL=Slic3r::GUI::combochecklist_get_flags((wxComboCtrl*)wxPli_sv_2_object(aTHX_ ui, "Wx::ComboCtrl")); %};
|
2018-02-20 07:58:46 +00:00
|
|
|
|
|
|
|
void set_app_config(AppConfig *app_config)
|
|
|
|
%code%{ Slic3r::GUI::set_app_config(app_config); %};
|
2018-02-22 10:12:29 +00:00
|
|
|
|
|
|
|
void open_preferences_dialog(int preferences_event)
|
|
|
|
%code%{ Slic3r::GUI::open_preferences_dialog(preferences_event); %};
|