diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-09-09 16:46:18 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-09-09 16:46:18 +0000 |
commit | 5f319d0a08a4950f4cb8ee1bdc39f35bfce088bc (patch) | |
tree | cb5bec0a2fabe857984c7022c4b624562137a107 /gtk2_ardour/canvas-note-event.h | |
parent | 58f5ad640672d3ac0193b36befaa8d53dddefecf (diff) |
re-use canvas note items when the model changes ; slightly more efficient (probably) and avoids invalidating references to said items in, for example, ResizeData in a copied region
git-svn-id: svn://localhost/ardour2/branches/3.0@5650 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note-event.h')
-rw-r--r-- | gtk2_ardour/canvas-note-event.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/canvas-note-event.h b/gtk2_ardour/canvas-note-event.h index ec306d29b8..6b394e1bb5 100644 --- a/gtk2_ardour/canvas-note-event.h +++ b/gtk2_ardour/canvas-note-event.h @@ -66,6 +66,10 @@ public: virtual void hide() = 0; virtual bool on_event(GdkEvent* ev); + bool valid() const { return _valid; } + void invalidate (); + void validate (); + bool selected() const { return _selected; } void selected(bool yn); @@ -129,6 +133,7 @@ protected: const boost::shared_ptr<NoteType> _note; bool _own_note; bool _selected; + bool _valid; }; } // namespace Gnome |