mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-12 19:47:43 +00:00
NEW: add plate tab at objectlist
Jira: STUDIO-4154 Change-Id: Id24517df3c15cc3907cb6b1fe0ea9d1b6c6d1e56
This commit is contained in:
@@ -390,6 +390,10 @@ void ParamsPanel::create_layout()
|
||||
m_left_sizer->Add( m_tab_print, 0, wxEXPAND );
|
||||
}
|
||||
|
||||
if (m_tab_print_plate) {
|
||||
m_left_sizer->Add(m_tab_print_plate, 0, wxEXPAND);
|
||||
}
|
||||
|
||||
if (m_tab_print_object) {
|
||||
m_left_sizer->Add( m_tab_print_object, 0, wxEXPAND );
|
||||
}
|
||||
@@ -480,6 +484,7 @@ void ParamsPanel::refresh_tabs()
|
||||
}
|
||||
}
|
||||
if (m_top_panel) {
|
||||
m_tab_print_plate = wxGetApp().get_plate_tab();
|
||||
m_tab_print_object = wxGetApp().get_model_tab();
|
||||
m_tab_print_part = wxGetApp().get_model_tab(true);
|
||||
m_tab_print_layer = wxGetApp().get_layer_tab();
|
||||
@@ -556,6 +561,8 @@ void ParamsPanel::set_active_tab(wxPanel* tab)
|
||||
cur_tab = (Tab*)m_tab_print_layer;
|
||||
} else if (m_tab_print_object && ((TabPrintModel*) m_tab_print_object)->has_model_config()) {
|
||||
cur_tab = (Tab*) m_tab_print_object;
|
||||
} else if (m_tab_print_plate && ((TabPrintPlate*)m_tab_print_plate)->has_model_config()) {
|
||||
cur_tab = (Tab*)m_tab_print_plate;
|
||||
}
|
||||
Show(cur_tab != nullptr);
|
||||
wxGetApp().sidebar().show_object_list(m_mode_region->GetValue());
|
||||
@@ -576,6 +583,7 @@ void ParamsPanel::set_active_tab(wxPanel* tab)
|
||||
{m_tab_print_object, m_staticline_print_object},
|
||||
{m_tab_print_part, m_staticline_print_part},
|
||||
{m_tab_print_layer, nullptr},
|
||||
{m_tab_print_plate, nullptr},
|
||||
{m_tab_filament, m_staticline_filament},
|
||||
{m_tab_printer, m_staticline_printer}})) {
|
||||
if (!t.first) continue;
|
||||
@@ -639,7 +647,7 @@ void ParamsPanel::msw_rescale()
|
||||
((SwitchButton* )m_mode_region)->Rescale();
|
||||
if (m_mode_view)
|
||||
((SwitchButton* )m_mode_view)->Rescale();
|
||||
for (auto tab : {m_tab_print, m_tab_print_object, m_tab_print_part, m_tab_print_layer, m_tab_filament, m_tab_printer}) {
|
||||
for (auto tab : {m_tab_print, m_tab_print_plate, m_tab_print_object, m_tab_print_part, m_tab_print_layer, m_tab_filament, m_tab_printer}) {
|
||||
if (tab) dynamic_cast<Tab*>(tab)->msw_rescale();
|
||||
}
|
||||
//((Button*)m_export_to_file)->Rescale();
|
||||
|
||||
Reference in New Issue
Block a user