mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 03:37:54 -06:00
micro refactor vender type
This commit is contained in:
parent
1f03e4d241
commit
aa4c042855
17 changed files with 79 additions and 81 deletions
|
@ -11,6 +11,13 @@
|
|||
|
||||
#define DEFAULT_USER_FOLDER_NAME "default"
|
||||
|
||||
// define an enum class of vendor type
|
||||
enum class VendorType {
|
||||
Unknown = 0,
|
||||
Klipper,
|
||||
Marlin,
|
||||
Marlin_BBL
|
||||
};
|
||||
namespace Slic3r {
|
||||
|
||||
// Bundle of Print + Filament + Printer presets.
|
||||
|
@ -67,6 +74,11 @@ public:
|
|||
//BBS: get vendor's current version
|
||||
Semver get_vendor_profile_version(std::string vendor_name);
|
||||
|
||||
// Orca: get vendor type
|
||||
VendorType get_current_vendor_type();
|
||||
// Vendor related handy functions
|
||||
bool is_bbl_vendor() { return get_current_vendor_type() == VendorType::Marlin_BBL; }
|
||||
|
||||
//BBS: project embedded preset logic
|
||||
PresetsConfigSubstitutions load_project_embedded_presets(std::vector<Preset*> project_presets, ForwardCompatibilitySubstitutionRule substitution_rule);
|
||||
std::vector<Preset*> get_current_project_embedded_presets();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue