MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / removeTab

Method removeTab

libs/librepcb/editor/mainwindow.cpp:479–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479std::shared_ptr<WindowTab> MainWindow::removeTab(
480 int section, int tab, bool* wasCurrentTab,
481 bool* wasCurrentSection) noexcept {
482 const ui::Data& d = mWindow->global<ui::Data>();
483 const int currentSection = d.get_current_section_index();
484 if (wasCurrentSection) {
485 *wasCurrentSection = (section == currentSection);
486 }
487 if (auto s = mSections->value(section)) {
488 return s->removeTab(tab, wasCurrentTab);
489 }
490 return nullptr;
491}
492
493void MainWindow::showPanelPage(ui::PanelPage page) noexcept {
494 mWindow->global<ui::Data>().fn_set_panel_page(page);

Callers 2

moveTabMethod · 0.45
GraphicsExportDialogMethod · 0.45

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected