FIX: hide spiral mode of plate config
jira: STUDIO-4902 Change-Id: I54a4a281294afcd048be23bd9ab3b33cc73ce2bf
This commit is contained in:
parent
08bfc8d980
commit
34abdf0233
|
@ -662,7 +662,6 @@ void PrintConfigDef::init_fff_params()
|
|||
def = this->add("first_layer_sequence_choice", coEnum);
|
||||
def->category = L("Quality");
|
||||
def->label = L("First layer filament sequence");
|
||||
def->tooltip = L("test");
|
||||
def->enum_keys_map = &ConfigOptionEnum<FirstLayerSeq>::get_enum_values();
|
||||
def->enum_values.push_back("Auto");
|
||||
def->enum_values.push_back("Customize");
|
||||
|
|
|
@ -74,15 +74,16 @@ PlateSettingsDialog::PlateSettingsDialog(wxWindow* parent, const wxString& title
|
|||
top_sizer->Add(0, 0, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT | wxALL, FromDIP(0));
|
||||
top_sizer->Add(m_drag_canvas, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT | wxALL, FromDIP(5));
|
||||
|
||||
m_spiral_mode_choice = new ComboBox(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(FromDIP(240), -1), 0, NULL, wxCB_READONLY);
|
||||
m_spiral_mode_choice->Append(_L("Same as Global"));
|
||||
m_spiral_mode_choice->Append(_L("Enable"));
|
||||
m_spiral_mode_choice->Append(_L("Disable"));
|
||||
m_spiral_mode_choice->SetSelection(0);
|
||||
wxStaticText* spiral_mode_txt = new wxStaticText(this, wxID_ANY, _L("Spiral vase"));
|
||||
spiral_mode_txt->SetFont(Label::Body_14);
|
||||
top_sizer->Add(spiral_mode_txt, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT | wxALL, FromDIP(5));
|
||||
top_sizer->Add(m_spiral_mode_choice, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL, FromDIP(5));
|
||||
// hidden
|
||||
//m_spiral_mode_choice = new ComboBox(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(FromDIP(240), -1), 0, NULL, wxCB_READONLY);
|
||||
//m_spiral_mode_choice->Append(_L("Same as Global"));
|
||||
//m_spiral_mode_choice->Append(_L("Enable"));
|
||||
//m_spiral_mode_choice->Append(_L("Disable"));
|
||||
//m_spiral_mode_choice->SetSelection(0);
|
||||
//wxStaticText* spiral_mode_txt = new wxStaticText(this, wxID_ANY, _L("Spiral vase"));
|
||||
//spiral_mode_txt->SetFont(Label::Body_14);
|
||||
//top_sizer->Add(spiral_mode_txt, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT | wxALL, FromDIP(5));
|
||||
//top_sizer->Add(m_spiral_mode_choice, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL, FromDIP(5));
|
||||
|
||||
|
||||
m_sizer_main->Add(top_sizer, 0, wxEXPAND | wxALL, FromDIP(30));
|
||||
|
|
|
@ -2477,7 +2477,7 @@ void TabPrintModel::update_custom_dirty()
|
|||
}
|
||||
|
||||
//BBS: GUI refactor
|
||||
static const std::vector<std::string> plate_keys = { "curr_bed_type", "first_layer_print_sequence", "first_layer_sequence_choice", "print_sequence", "spiral_mode"};
|
||||
static const std::vector<std::string> plate_keys = { "curr_bed_type", "first_layer_print_sequence", "first_layer_sequence_choice", "print_sequence"/*, "spiral_mode"*/};
|
||||
TabPrintPlate::TabPrintPlate(ParamsPanel* parent) :
|
||||
TabPrintModel(parent, plate_keys)
|
||||
{
|
||||
|
@ -2505,7 +2505,8 @@ void TabPrintPlate::build()
|
|||
optgroup->append_single_option_line("curr_bed_type");
|
||||
optgroup->append_single_option_line("print_sequence");
|
||||
optgroup->append_single_option_line("first_layer_sequence_choice");
|
||||
optgroup->append_single_option_line("spiral_mode");
|
||||
// hidden
|
||||
//optgroup->append_single_option_line("spiral_mode");
|
||||
for (auto& line : const_cast<std::vector<Line>&>(optgroup->get_lines())) {
|
||||
line.undo_to_sys = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue