Skip to content

GUI: Sidebar

Alex Petsiuk edited this page Jul 8, 2023 · 2 revisions

GUI_App.cpp

bool GUI_App::OnInit(){...}

bool GUI_App::on_init_inner(){
    //load fonts and stuff
    ...
    mainframe = new MainFrame();
    sidebar().obj_list()->init_objects(); // propagate model objects to object list

    if (is_gcode_viewer()) {
        mainframe->update_layout();
        if (plater_ != nullptr)
            plater_->set_printer_technology(ptFFF);
    }
    else
        load_current_presets();

    mainframe->Show(true);
    obj_list()->set_min_height();
    update_mode(); // update view mode after fix of the object_list size
    }

image

  • plater
  • mainframe --
  • sidebar

class Plater -> class Sidebar