comparison framework/MainWindowBase.cpp @ 691:c8ba09756eff by-id

Work on management of alignment-related models
author Chris Cannam
date Fri, 12 Jul 2019 13:58:02 +0100
parents e56cc6fe7da2
children b5000a78249a
comparison
equal deleted inserted replaced
690:827a522a5da4 691:c8ba09756eff
1725 SVCERR << "Mode is CreateAdditionalModel" << endl; 1725 SVCERR << "Mode is CreateAdditionalModel" << endl;
1726 1726
1727 CommandHistory::getInstance()->startCompoundOperation 1727 CommandHistory::getInstance()->startCompoundOperation
1728 (tr("Import \"%1\"").arg(source.getBasename()), true); 1728 (tr("Import \"%1\"").arg(source.getBasename()), true);
1729 1729
1730 m_document->addImportedModel(newModel); 1730 m_document->addNonDerivedModel(newModel);
1731 1731
1732 AddPaneCommand *command = new AddPaneCommand(this); 1732 AddPaneCommand *command = new AddPaneCommand(this);
1733 CommandHistory::getInstance()->addCommand(command); 1733 CommandHistory::getInstance()->addCommand(command);
1734 1734
1735 Pane *pane = command->getPane(); 1735 Pane *pane = command->getPane();
1769 } 1769 }
1770 1770
1771 CommandHistory::getInstance()->startCompoundOperation 1771 CommandHistory::getInstance()->startCompoundOperation
1772 (tr("Import \"%1\"").arg(source.getBasename()), true); 1772 (tr("Import \"%1\"").arg(source.getBasename()), true);
1773 1773
1774 m_document->addImportedModel(newModel); 1774 m_document->addNonDerivedModel(newModel);
1775 1775
1776 if (replace) { 1776 if (replace) {
1777 m_document->removeLayerFromView(pane, replace); 1777 m_document->removeLayerFromView(pane, replace);
1778 } 1778 }
1779 1779
3319 } else { 3319 } else {
3320 3320
3321 CommandHistory::getInstance()->startCompoundOperation 3321 CommandHistory::getInstance()->startCompoundOperation
3322 (tr("Import Recorded Audio"), true); 3322 (tr("Import Recorded Audio"), true);
3323 3323
3324 m_document->addImportedModel(modelId); 3324 m_document->addNonDerivedModel(modelId);
3325 3325
3326 AddPaneCommand *command = new AddPaneCommand(this); 3326 AddPaneCommand *command = new AddPaneCommand(this);
3327 CommandHistory::getInstance()->addCommand(command); 3327 CommandHistory::getInstance()->addCommand(command);
3328 3328
3329 Pane *pane = command->getPane(); 3329 Pane *pane = command->getPane();