mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
ENH: add restriction of selecting preset [STUDIO-3715]
1.forbid PEI Plate when PA Auto-Calibration 2.add ams black list 3.TPU cannot use when PA Auto-Calibration Change-Id: I6a7d0438ba136f5685e5f3b868d5c063ed8ca9ef
This commit is contained in:
parent
04c6964de4
commit
3a9b49abeb
2 changed files with 89 additions and 1 deletions
|
@ -118,6 +118,7 @@ enum CaliPresetPageStatus
|
|||
CaliPresetStatusNeedForceUpgrading,
|
||||
CaliPresetStatusNeedConsistencyUpgrading,
|
||||
CaliPresetStatusUnsupportedPrinter,
|
||||
CaliPresetStatusFilamentIncompatible,
|
||||
};
|
||||
|
||||
class CalibrationPresetPage : public CalibrationWizardPage
|
||||
|
@ -204,6 +205,7 @@ protected:
|
|||
|
||||
void check_filament_compatible();
|
||||
bool is_filaments_compatiable(const std::vector<Preset*>& prests);
|
||||
bool is_filament_in_blacklist(Preset* preset, std::string& error_tips);
|
||||
bool is_filaments_compatiable(const std::vector<Preset*>& prests,
|
||||
int& bed_temp,
|
||||
std::string& incompatiable_filament_name,
|
||||
|
@ -211,6 +213,7 @@ protected:
|
|||
|
||||
float get_nozzle_value();
|
||||
|
||||
void update_plate_type_collection(CalibrationMethod method);
|
||||
void update_combobox_filaments(MachineObject* obj);
|
||||
void update_show_status();
|
||||
void show_status(CaliPresetPageStatus status);
|
||||
|
@ -267,6 +270,7 @@ protected:
|
|||
CaliPresetPageStatus m_page_status { CaliPresetPageStatus::CaliPresetStatusInit };
|
||||
|
||||
bool m_show_custom_range { false };
|
||||
bool m_has_filament_incompatible { false };
|
||||
MachineObject* curr_obj { nullptr };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue