mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06: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:
parent
835e5b71a8
commit
1fee3633a0
11 changed files with 107 additions and 51 deletions
|
@ -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; %};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue