mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-28 23:52:42 +00:00
New C++ class AppConfig for maintaining the config.ini
New helper function for generating a unified "generated by slic3r" header.
This commit is contained in:
@@ -51,8 +51,6 @@
|
||||
%code%{ RETVAL = THIS->update_dirty_ui((wxChoice*)wxPli_sv_2_object(aTHX_ ui, "Wx::Choice")); %};
|
||||
|
||||
bool select_preset_by_name(char *name) %code%{ RETVAL = THIS->select_preset_by_name(name, true); %};
|
||||
bool select_by_name_ui(char *name, SV *ui)
|
||||
%code%{ RETVAL = THIS->select_by_name_ui(name, (wxChoice*)wxPli_sv_2_object(aTHX_ ui, "Wx::Choice")); %};
|
||||
|
||||
void save_current_preset(char *new_name);
|
||||
void delete_current_preset();
|
||||
@@ -93,10 +91,14 @@ PresetCollection::presets_hash()
|
||||
PresetBundle();
|
||||
~PresetBundle();
|
||||
|
||||
void setup_directories();
|
||||
void load_presets(const char *dir_path);
|
||||
size_t load_configbundle(const char *path);
|
||||
void set_default_suppressed(bool default_suppressed);
|
||||
|
||||
void load_selections (AppConfig *config) %code%{ THIS->load_selections(*config); %};
|
||||
void export_selections(AppConfig *config) %code%{ THIS->export_selections(*config); %};
|
||||
|
||||
Ref<PresetCollection> print() %code%{ RETVAL = &THIS->prints; %};
|
||||
Ref<PresetCollection> filament() %code%{ RETVAL = &THIS->filaments; %};
|
||||
Ref<PresetCollection> printer() %code%{ RETVAL = &THIS->printers; %};
|
||||
|
||||
@@ -210,12 +210,15 @@ PrintObjectSupportMaterial* O_OBJECT_SLIC3R
|
||||
Ref<PrintObjectSupportMaterial> O_OBJECT_SLIC3R_T
|
||||
Clone<PrintObjectSupportMaterial> O_OBJECT_SLIC3R_T
|
||||
|
||||
GLShader* O_OBJECT_SLIC3R
|
||||
Ref<GLShader> O_OBJECT_SLIC3R_T
|
||||
GLVolume* O_OBJECT_SLIC3R
|
||||
Ref<GLVolume> O_OBJECT_SLIC3R_T
|
||||
GLVolumeCollection* O_OBJECT_SLIC3R
|
||||
Ref<GLVolumeCollection> O_OBJECT_SLIC3R_T
|
||||
AppConfig* O_OBJECT_SLIC3R
|
||||
Ref<AppConfig> O_OBJECT_SLIC3R_T
|
||||
|
||||
GLShader* O_OBJECT_SLIC3R
|
||||
Ref<GLShader> O_OBJECT_SLIC3R_T
|
||||
GLVolume* O_OBJECT_SLIC3R
|
||||
Ref<GLVolume> O_OBJECT_SLIC3R_T
|
||||
GLVolumeCollection* O_OBJECT_SLIC3R
|
||||
Ref<GLVolumeCollection> O_OBJECT_SLIC3R_T
|
||||
|
||||
Preset* O_OBJECT_SLIC3R
|
||||
Ref<Preset> O_OBJECT_SLIC3R_T
|
||||
|
||||
@@ -191,6 +191,8 @@
|
||||
%typemap{ModelInstancePtrs*};
|
||||
%typemap{Ref<ModelInstancePtrs>}{simple};
|
||||
%typemap{Clone<ModelInstancePtrs>}{simple};
|
||||
%typemap{AppConfig*};
|
||||
%typemap{Ref<AppConfig>}{simple};
|
||||
%typemap{GLShader*};
|
||||
%typemap{Ref<GLShader>}{simple};
|
||||
%typemap{GLVolume*};
|
||||
|
||||
Reference in New Issue
Block a user