RemoveStaff::RemoveStaff(const ScoreLocation &location) : QUndoCommand(QObject::tr("Remove Staff")), myLocation(location), myOriginalStaff(location.getStaff()), myIndex(location.getStaffIndex()) { }
RemoveDynamic::RemoveDynamic(const ScoreLocation &location) : QUndoCommand(QObject::tr("Remove Dynamic")), myLocation(location), myOriginalDynamic(*ScoreUtils::findByPosition( location.getStaff().getDynamics(), location.getPositionIndex())) { setText(QObject::tr("Remove Dynamic")); }