second part of the logic fix for percussive note trimming

This commit is contained in:
Paul Davis 2014-03-07 11:23:48 -05:00
parent e5802bdbea
commit 3cfc873914
1 changed files with 3 additions and 2 deletions

View File

@ -53,13 +53,14 @@ namespace ArdourCanvas {
class NoteBase : public sigc::trackable
{
public:
public:
typedef Evoral::Note<ARDOUR::MidiModel::TimeType> NoteType;
NoteBase (MidiRegionView& region, bool, const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>());
virtual ~NoteBase ();
void set_item (ArdourCanvas::Item *);
ArdourCanvas::Item* item() const { return _item; }
static PBD::Signal1<void, NoteBase*> NoteBaseDeleted;
@ -137,7 +138,7 @@ public:
static const uint32_t midi_channel_colors[16];
bool mouse_near_ends () const;
bool big_enough_to_trim () const;
virtual bool big_enough_to_trim () const;
protected:
enum State { None, Pressed, Dragging };