# HG changeset patch # User Chris Cannam # Date 1249490167 0 # Node ID b73f486fc2e408e68bca7204ce98dbf6e0d8d006 # Parent 5930f2b0b1d27d5d1feb10d73cd54ec93762a96e * minor fixes diff -r 5930f2b0b1d2 -r b73f486fc2e4 layer/RegionLayer.cpp --- a/layer/RegionLayer.cpp Mon Aug 03 16:42:25 2009 +0000 +++ b/layer/RegionLayer.cpp Wed Aug 05 16:36:07 2009 +0000 @@ -40,8 +40,8 @@ SingleColourLayer(), m_model(0), m_editing(false), - m_originalPoint(0, 0.0, 0, tr("New Point")), - m_editingPoint(0, 0.0, 0, tr("New Point")), + m_originalPoint(0, 0.0, 0, tr("New Region")), + m_editingPoint(0, 0.0, 0, tr("New Region")), m_editingCommand(0), m_verticalScale(EqualSpaced), m_colourMap(0), @@ -852,12 +852,12 @@ float value = getValueForY(v, e->y()); - m_editingPoint = RegionModel::Point(frame, value, 0, tr("New Point")); + m_editingPoint = RegionModel::Point(frame, value, 0, tr("New Region")); m_originalPoint = m_editingPoint; if (m_editingCommand) finish(m_editingCommand); m_editingCommand = new RegionModel::EditCommand(m_model, - tr("Draw Point")); + tr("Draw Region")); m_editingCommand->addPoint(m_editingPoint); m_editing = true; @@ -939,7 +939,7 @@ points.begin()->value != m_editingPoint.value) return; m_editingCommand = new RegionModel::EditCommand - (m_model, tr("Erase Point")); + (m_model, tr("Erase Region")); m_editingCommand->deletePoint(m_editingPoint); @@ -984,7 +984,7 @@ if (!m_editingCommand) { m_editingCommand = new RegionModel::EditCommand(m_model, - tr("Drag Point")); + tr("Drag Region")); } m_editingCommand->deletePoint(m_editingPoint); @@ -1005,9 +1005,9 @@ if (m_editingPoint.frame != m_originalPoint.frame) { if (m_editingPoint.value != m_originalPoint.value) { - newName = tr("Edit Point"); + newName = tr("Edit Region"); } else { - newName = tr("Relocate Point"); + newName = tr("Relocate Region"); } } else { newName = tr("Change Point Value"); @@ -1053,7 +1053,7 @@ newRegion.label = dialog->getText(); RegionModel::EditCommand *command = new RegionModel::EditCommand - (m_model, tr("Edit Point")); + (m_model, tr("Edit Region")); command->deletePoint(region); command->addPoint(newRegion); finish(command);