#include <src/slic3r/GUI/ConfigWizard_private.hpp>
◆ Bundle() [1/2]
| Slic3r::GUI::Bundle::Bundle |
( |
| ) |
|
|
default |
◆ Bundle() [2/2]
| Slic3r::GUI::Bundle::Bundle |
( |
Bundle && |
other | ) |
|
112{
113 other.vendor_profile = nullptr;
114}
BundleLocation location
Definition ConfigWizard_private.hpp:72
bool is_prusa_bundle
Definition ConfigWizard_private.hpp:73
std::unique_ptr< PresetBundle > preset_bundle
Definition ConfigWizard_private.hpp:69
VendorProfile * vendor_profile
Definition ConfigWizard_private.hpp:70
◆ load()
| bool Slic3r::GUI::Bundle::load |
( |
fs::path |
source_path, |
|
|
BundleLocation |
location, |
|
|
bool |
is_prusa_bundle = false |
|
) |
| |
80{
84
85 std::string path_string = source_path.string();
86
87 auto [config_substitutions, presets_loaded] =
preset_bundle->load_configbundle(
89 UNUSED(config_substitutions);
90
91 assert(config_substitutions.empty());
94 BOOST_LOG_TRIVIAL(
error) << boost::format(
"Vendor bundle: `%1%`: No vendor information defined, cannot install.") % path_string;
95 return false;
96 }
97 if (presets_loaded == 0) {
98 BOOST_LOG_TRIVIAL(
error) << boost::format(
"Vendor bundle: `%1%`: No profile loaded.") % path_string;
99 return false;
100 }
101
102 BOOST_LOG_TRIVIAL(trace) << boost::format("Vendor bundle: `%1%`: %2% profiles loaded.") % path_string % presets_loaded;
104 return true;
105}
@ LoadSystem
Definition PresetBundle.hpp:115
#define UNUSED(x)
Definition libslic3r.h:74
@ Disable
Definition Config.hpp:219
static char error[256]
Definition tga.cpp:50
References Slic3r::Disable, error, is_prusa_bundle, Slic3r::PresetBundle::LoadSystem, location, preset_bundle, UNUSED, and vendor_profile.
Referenced by Slic3r::GUI::BundleMap::load().
◆ vendor_id()
| const std::string & Slic3r::GUI::Bundle::vendor_id |
( |
| ) |
const |
|
inline |
◆ is_prusa_bundle
| bool Slic3r::GUI::Bundle::is_prusa_bundle { false } |
◆ location
◆ preset_bundle
| std::unique_ptr<PresetBundle> Slic3r::GUI::Bundle::preset_bundle |
◆ vendor_profile
The documentation for this struct was generated from the following files: