Add missing icons

This commit is contained in:
Vojtech Kral 2018-11-19 13:46:56 +01:00
parent 60563e6702
commit ee33f0f1d7
4 changed files with 11 additions and 18 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -999,10 +999,8 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
})) }))
, notebook(new wxNotebook(q, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_BOTTOM)) , notebook(new wxNotebook(q, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_BOTTOM))
, sidebar(new Sidebar(q)) , sidebar(new Sidebar(q))
// , panel3d(new wxPanel(notebook, wxID_ANY)) , panel3d(new wxPanel(notebook, wxID_ANY))
, panel3d(nullptr) , canvas3D(GLCanvas3DManager::create_wxglcanvas(panel3d))
// , canvas3D(GLCanvas3DManager::create_wxglcanvas(panel3d))
, canvas3D(GLCanvas3DManager::create_wxglcanvas(notebook))
#if ENABLE_NEW_MENU_LAYOUT #if ENABLE_NEW_MENU_LAYOUT
, project_filename(wxEmptyString) , project_filename(wxEmptyString)
#endif // ENABLE_NEW_MENU_LAYOUT #endif // ENABLE_NEW_MENU_LAYOUT
@ -1030,21 +1028,17 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
_3DScene::add_canvas(canvas3D); _3DScene::add_canvas(canvas3D);
_3DScene::allow_multisample(canvas3D, GLCanvas3DManager::can_multisample()); _3DScene::allow_multisample(canvas3D, GLCanvas3DManager::can_multisample());
// XXX: reverting panel3d and panel_gizmo_widgets auto *panel3dsizer = new wxBoxSizer(wxVERTICAL);
// ! cf. on_notebook_changed panel3dsizer->Add(canvas3D, 1, wxEXPAND);
auto *panel_gizmo_widgets = new wxPanel(panel3d, wxID_ANY);
panel_gizmo_widgets->SetSizer(new wxBoxSizer(wxVERTICAL));
panel3dsizer->Add(panel_gizmo_widgets, 0, wxEXPAND);
// auto *panel3dsizer = new wxBoxSizer(wxVERTICAL); panel3d->SetSizer(panel3dsizer);
// panel3dsizer->Add(canvas3D, 1, wxEXPAND); notebook->AddPage(panel3d, _(L("3D")));
// auto *panel_gizmo_widgets = new wxPanel(panel3d, wxID_ANY);
// panel_gizmo_widgets->SetSizer(new wxBoxSizer(wxVERTICAL));
// panel3dsizer->Add(panel_gizmo_widgets, 0, wxEXPAND);
// panel3d->SetSizer(panel3dsizer);
// notebook->AddPage(panel3d, _(L("3D")));
notebook->AddPage(canvas3D, _(L("3D")));
preview = new GUI::Preview(notebook, config, &print, &gcode_preview_data, [this](){ schedule_background_process(); }); preview = new GUI::Preview(notebook, config, &print, &gcode_preview_data, [this](){ schedule_background_process(); });
// _3DScene::get_canvas(canvas3D)->set_external_gizmo_widgets_parent(panel_gizmo_widgets); _3DScene::get_canvas(canvas3D)->set_external_gizmo_widgets_parent(panel_gizmo_widgets);
// XXX: If have OpenGL // XXX: If have OpenGL
_3DScene::enable_picking(canvas3D, true); _3DScene::enable_picking(canvas3D, true);
@ -1824,8 +1818,7 @@ void Plater::priv::fix_through_netfabb(const int obj_idx)
void Plater::priv::on_notebook_changed(wxBookCtrlEvent&) void Plater::priv::on_notebook_changed(wxBookCtrlEvent&)
{ {
const auto current_id = notebook->GetCurrentPage()->GetId(); const auto current_id = notebook->GetCurrentPage()->GetId();
// if (current_id == panel3d->GetId()) { if (current_id == panel3d->GetId()) {
if (current_id == canvas3D->GetId()) {
if (_3DScene::is_reload_delayed(canvas3D)) { if (_3DScene::is_reload_delayed(canvas3D)) {
// Delayed loading of the 3D scene. // Delayed loading of the 3D scene.
if (this->printer_technology == ptSLA) { if (this->printer_technology == ptSLA) {