2009-08-10 16:13:13 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2009-2014 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2009 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2009-08-10 16:13:13 -04:00
|
|
|
|
2024-09-25 20:38:59 -04:00
|
|
|
#pragma once
|
2009-08-10 16:13:13 -04:00
|
|
|
|
2014-11-13 21:32:08 -05:00
|
|
|
#include "region_selection.h"
|
2009-08-10 16:13:13 -04:00
|
|
|
|
|
|
|
class MidiRegionView;
|
2009-08-12 21:57:03 -04:00
|
|
|
class MidiCutBuffer;
|
2011-12-12 14:03:46 -05:00
|
|
|
class RegionView;
|
|
|
|
|
2014-11-13 21:32:08 -05:00
|
|
|
class MidiRegionSelection : public RegionSelection
|
2011-12-12 14:03:46 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
MidiRegionSelection ();
|
2014-11-13 21:32:08 -05:00
|
|
|
MidiRegionSelection (const MidiRegionSelection&);
|
2011-12-12 14:03:46 -05:00
|
|
|
|
2014-11-13 21:32:08 -05:00
|
|
|
MidiRegionSelection& operator= (const MidiRegionSelection&);
|
2011-12-12 14:03:46 -05:00
|
|
|
};
|
2009-08-10 16:13:13 -04:00
|
|
|
|
2014-11-16 22:35:37 -05:00
|
|
|
struct MidiNoteSelection : std::list<MidiCutBuffer*> {
|
|
|
|
public:
|
|
|
|
const_iterator
|
|
|
|
get_nth(size_t nth) const {
|
|
|
|
size_t count = 0;
|
|
|
|
for (const_iterator m = begin(); m != end(); ++m) {
|
|
|
|
if (count++ == nth) {
|
|
|
|
return m;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return end();
|
|
|
|
}
|
|
|
|
};
|
2009-08-10 16:13:13 -04:00
|
|
|
|