Plate toolbar improvements and fixes (slice button, keep view angle on slice, review button for failed plates, percentage and improve failed state) (#14292)

* Update Plater.cpp

* init

* Revert "Update Plater.cpp"

This reverts commit ae515bc7a4.

* fix empty plate showing as failed

* keep zooming on slice

* update

* add hover effect for active plate

* fix condition and match code

* Update GLCanvas3D.cpp

* fix button colors

* add hover effect to border of plate stats button

* fix scrollbar disappear while clicking plate buttons

* Update GLCanvas3D.cpp

* fix slicing percent for new plates

* update

* Update GLCanvas3D.cpp

* update plate states on config change

* fix non functional scrollbar
This commit is contained in:
yw4z
2026-06-25 17:31:33 +03:00
committed by GitHub
parent dbd9c22d80
commit b06305f990
7 changed files with 123 additions and 43 deletions

View File

@@ -10319,7 +10319,8 @@ void Plater::priv::on_action_select_sliced_plate(wxCommandEvent &evt)
if (q != nullptr) {
BOOST_LOG_TRIVIAL(debug) << __FUNCTION__ << ":received select sliced plate event\n" ;
}
q->select_sliced_plate(evt.GetInt());
bool skip_zoom = evt.GetExtraLong() == 1;
q->select_sliced_plate(evt.GetInt(), skip_zoom);
}
void Plater::priv::on_action_print_all(SimpleEvent&)
@@ -17658,7 +17659,7 @@ int Plater::select_plate(int plate_index, bool need_slice)
return ret;
}
int Plater::select_sliced_plate(int plate_index)
int Plater::select_sliced_plate(int plate_index, bool skip_zoom)
{
int ret = 0;
BOOST_LOG_TRIVIAL(info) << "select_sliced_plate plate_idx=" << plate_index;
@@ -17671,7 +17672,8 @@ int Plater::select_sliced_plate(int plate_index)
Thaw();
return -1;
}
p->partplate_list.select_plate_view();
if(skip_zoom)
p->partplate_list.select_plate_view();
Thaw();
return ret;