MCPcopy Create free account
hub / github.com/KDE/labplot / if

Function if

src/frontend/MainWin.cpp:1569–1592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1567 }
1568#ifdef HAVE_LIBORIGIN
1569 else if (OriginProjectParser::isOriginProject(fileName)) {
1570 OriginProjectParser parser;
1571 parser.setProjectFileName(fileName);
1572
1573 // check if graphs have multiple layer
1574 bool hasUnusedObjects, hasMultiLayerGraphs;
1575 parser.checkContent(hasUnusedObjects, hasMultiLayerGraphs);
1576 DEBUG(Q_FUNC_INFO << ", project has multilayer graphs: " << hasMultiLayerGraphs)
1577 // ask how to import OPJ graph layers if graphs have multiple layer
1578 if (hasMultiLayerGraphs) {
1579 auto* dlg = new ImportOriginLayersDialog(this);
1580 bool graphLayersAsPlotArea = true;
1581 if (dlg->exec() == QDialog::Accepted)
1582 graphLayersAsPlotArea = dlg->graphLayersAsPlotArea();
1583 delete dlg;
1584
1585 parser.setGraphLayerAsPlotArea(graphLayersAsPlotArea);
1586 }
1587
1588 WAIT_CURSOR;
1589 parser.importTo(m_project, QStringList()); // TODO: add return code
1590 RESET_CURSOR;
1591 rc = true;
1592 }
1593#endif
1594
1595#ifdef HAVE_CANTOR_LIBS

Callers 1

FADDEEVA(w)Function · 0.50

Calls 6

checkContentMethod · 0.80
execMethod · 0.80
graphLayersAsPlotAreaMethod · 0.80
setProjectFileNameMethod · 0.45
importToMethod · 0.45

Tested by

no test coverage detected