support profile notes

This commit is contained in:
SoftFever 2023-08-30 23:38:09 +08:00
parent 0c3802ac4c
commit 4564945b48
6 changed files with 69 additions and 4 deletions

View file

@ -1338,6 +1338,16 @@ void PrintConfigDef::init_fff_params()
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionStrings{ "#F2754E" });
// PS
def = this->add("filament_notes", coStrings);
def->label = L("Filament notes");
def->tooltip = L("You can put your notes regarding the filament here.");
def->multiline = true;
def->full_width = true;
def->height = 13;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionStrings { "" });
//bbs
def = this->add("required_nozzle_HRC", coInts);
def->label = L("Required nozzle HRC");
@ -2405,6 +2415,16 @@ void PrintConfigDef::init_fff_params()
def->max = 100;
def->set_default_value(new ConfigOptionFloats { 0.4 });
def = this->add("notes", coString);
def->label = L("Configuration notes");
def->tooltip = L("You can put here your personal notes. This text will be added to the G-code "
"header comments.");
def->multiline = true;
def->full_width = true;
def->height = 13;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionString(""));
def = this->add("host_type", coEnum);
def->label = L("Host Type");
def->tooltip = L("Slic3r can upload G-code files to a printer host. This field must contain "
@ -2569,6 +2589,15 @@ void PrintConfigDef::init_fff_params()
def->set_default_value(new ConfigOptionString());
def->cli = ConfigOptionDef::nocli;
def = this->add("printer_notes", coString);
def->label = L("Printer notes");
def->tooltip = L("You can put your notes regarding the printer here.");
def->multiline = true;
def->full_width = true;
def->height = 13;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionString(""));
def = this->add("printer_variant", coString);
//def->label = L("Printer variant");
def->label = "Printer variant";