comparison framework/MainWindowBase.cpp @ 185:9f49d0f1bd20 sv-v1.7

* Big improvements to editing behaviour in note and region models
author Chris Cannam
date Fri, 02 Oct 2009 13:56:10 +0000
parents f701c0c686e5
children f694ee2567fe
comparison
equal deleted inserted replaced
184:f701c0c686e5 185:9f49d0f1bd20
894 if (!layer) return; 894 if (!layer) return;
895 895
896 RegionModel *rm = dynamic_cast<RegionModel *>(layer->getModel()); 896 RegionModel *rm = dynamic_cast<RegionModel *>(layer->getModel());
897 if (rm) { 897 if (rm) {
898 RegionModel::Point point(alignedStart, 898 RegionModel::Point point(alignedStart,
899 rm->getValueMinimum(), 899 rm->getValueMaximum() + 1,
900 alignedDuration, 900 alignedDuration,
901 ""); 901 "");
902 RegionModel::EditCommand *command = 902 RegionModel::EditCommand *command =
903 new RegionModel::EditCommand(rm, tr("Add Point")); 903 new RegionModel::EditCommand(rm, tr("Add Point"));
904 command->addPoint(point); 904 command->addPoint(point);