c88d2780ce
* Octoprint: GUI for CA file, improvements * Octoprint: Add GUI for Bonjour lookup, bugfixes * Octoprint: Bonjour browser: Cleanup Perl interaction * Octoprint: Bonjour: Perform several broadcast, UI fixes * Octoprint: Add files to localization list * Http: Disable CA File setting on SSL backends that don't support it
66 lines
2.6 KiB
Plaintext
66 lines
2.6 KiB
Plaintext
%module{Slic3r::XS};
|
|
|
|
%{
|
|
#include <xsinit.h>
|
|
#include "slic3r/GUI/GUI.hpp"
|
|
%}
|
|
|
|
|
|
%package{Slic3r::GUI};
|
|
|
|
void disable_screensaver()
|
|
%code{% Slic3r::GUI::disable_screensaver(); %};
|
|
|
|
void enable_screensaver()
|
|
%code{% Slic3r::GUI::enable_screensaver(); %};
|
|
|
|
std::vector<std::string> scan_serial_ports()
|
|
%code{% RETVAL=Slic3r::GUI::scan_serial_ports(); %};
|
|
|
|
bool debugged()
|
|
%code{% RETVAL=Slic3r::GUI::debugged(); %};
|
|
|
|
void break_to_debugger()
|
|
%code{% Slic3r::GUI::break_to_debugger(); %};
|
|
|
|
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")); %};
|
|
|
|
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); %};
|
|
|
|
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); %};
|
|
|
|
Ref<TabIface> get_preset_tab(char *name)
|
|
%code%{ RETVAL=Slic3r::GUI::get_preset_tab_iface(name); %};
|
|
|
|
bool load_language()
|
|
%code%{ RETVAL=Slic3r::GUI::load_language(); %};
|
|
|
|
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")); %};
|
|
|
|
void set_app_config(AppConfig *app_config)
|
|
%code%{ Slic3r::GUI::set_app_config(app_config); %};
|
|
|
|
void open_preferences_dialog(int preferences_event)
|
|
%code%{ Slic3r::GUI::open_preferences_dialog(preferences_event); %};
|
|
|
|
void set_preset_bundle(PresetBundle *preset_bundle)
|
|
%code%{ Slic3r::GUI::set_preset_bundle(preset_bundle); %};
|
|
|
|
void add_frequently_changed_parameters(SV *ui_parent, SV *ui_sizer, SV *ui_p_sizer)
|
|
%code%{ Slic3r::GUI::add_frequently_changed_parameters((wxWindow*)wxPli_sv_2_object(aTHX_ ui_parent, "Wx::Window"),
|
|
(wxBoxSizer*)wxPli_sv_2_object(aTHX_ ui_sizer, "Wx::BoxSizer"),
|
|
(wxFlexGridSizer*)wxPli_sv_2_object(aTHX_ ui_p_sizer, "Wx::FlexGridSizer")); %};
|