AppConfig: Support for vendor / model / variant enable state

This commit is contained in:
Vojtech Kral 2018-03-28 11:36:36 +02:00
parent 3fcf194e39
commit 57e47a3296
12 changed files with 267 additions and 142 deletions

View file

@ -43,4 +43,5 @@
void update_last_output_dir(char *dir);
void reset_selections();
bool slic3r_update_avail() const;
};

View file

@ -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(); %};

View 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);
};

View file

@ -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