summaryrefslogtreecommitdiff
path: root/gtk2_ardour/note_base.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-03-07 11:23:48 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-03-07 11:23:48 -0500
commit3cfc873914615df4d1aed002ec6120a336123ba3 (patch)
tree4b49b218d7d84df962f1c10818ff9347522b1d48 /gtk2_ardour/note_base.h
parente5802bdbea5a6c6b60df4be4d8a41713af680e8f (diff)
second part of the logic fix for percussive note trimming
Diffstat (limited to 'gtk2_ardour/note_base.h')
-rw-r--r--gtk2_ardour/note_base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/note_base.h b/gtk2_ardour/note_base.h
index 6528b28659..5e52be0732 100644
--- a/gtk2_ardour/note_base.h
+++ b/gtk2_ardour/note_base.h
@@ -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 };