mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 07:41:09 -06:00
AppConfig: Support for vendor / model / variant enable state
This commit is contained in:
parent
3fcf194e39
commit
57e47a3296
12 changed files with 267 additions and 142 deletions
|
@ -43,4 +43,5 @@
|
|||
void update_last_output_dir(char *dir);
|
||||
|
||||
void reset_selections();
|
||||
bool slic3r_update_avail() const;
|
||||
};
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
%module{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <xsinit.h>
|
||||
#include "slic3r/Utils/PresetUpdate.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::PresetUpdater} class PresetUpdater {
|
||||
static void download(PresetBundle *preset_bundle);
|
||||
};
|
||||
|
||||
|
||||
# TODO: remove:
|
||||
|
||||
%package{Slic3r::Utils};
|
||||
|
||||
void preset_update_check()
|
||||
%code%{ Slic3r::Utils::preset_update_check(); %};
|
11
xs/xsp/Utils_PresetUpdater.xsp
Normal file
11
xs/xsp/Utils_PresetUpdater.xsp
Normal file
|
@ -0,0 +1,11 @@
|
|||
%module{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <xsinit.h>
|
||||
#include "slic3r/Utils/PresetUpdater.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::PresetUpdater} class PresetUpdater {
|
||||
PresetUpdater(int version_online_event, AppConfig *app_config);
|
||||
void download(PresetBundle* preset_bundle);
|
||||
};
|
|
@ -239,6 +239,10 @@ Ref<TabIface> O_OBJECT_SLIC3R_T
|
|||
# ConfigWizard* O_OBJECT_SLIC3R
|
||||
# Ref<ConfigWizard> O_OBJECT_SLIC3R_T
|
||||
|
||||
PresetUpdater* O_OBJECT_SLIC3R
|
||||
Ref<PresetUpdater> O_OBJECT_SLIC3R_T
|
||||
Clone<PresetUpdater> O_OBJECT_SLIC3R_T
|
||||
|
||||
OctoPrint* O_OBJECT_SLIC3R
|
||||
Ref<OctoPrint> O_OBJECT_SLIC3R_T
|
||||
Clone<OctoPrint> O_OBJECT_SLIC3R_T
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue