Ardour  9.0-pre0-822-g12e3bc5c20
ghost_event.h
Go to the documentation of this file.
1 #ifndef __gtk2_ardour_ghost_event_h__
2 #define __gtk2_ardour_ghost_event_h__
3 
4 #include <memory>
5 #include <unordered_map>
6 #include <sigc++/trackable.h>
7 
8 #include "evoral/Note.h"
9 #include "temporal/beats.h"
10 
11 namespace ArdourCanvas {
12  class Container;
13  class Item;
14 }
15 
16 class NoteBase;
17 
18 class GhostEvent : public sigc::trackable
19 {
20  public:
23  virtual ~GhostEvent ();
24 
25  void set_sensitive (bool yn);
26 
29  bool is_hit;
31 
32  /* must match typedef in NoteBase */
34  typedef std::unordered_map<std::shared_ptr<NoteType>, GhostEvent* > EventList;
35 
36  static GhostEvent* find (std::shared_ptr<NoteType> parent, EventList& events, EventList::iterator& opti);
37 };
38 
39 
40 #endif /* __gtk2_ardour_ghost_event_h__ */
bool is_hit
Definition: ghost_event.h:29
NoteBase * event
Definition: ghost_event.h:27
Evoral::Note< Temporal::Beats > NoteType
Definition: ghost_event.h:33
int velocity_while_editing
Definition: ghost_event.h:30
GhostEvent(::NoteBase *, ArdourCanvas::Container *)
void set_sensitive(bool yn)
static GhostEvent * find(std::shared_ptr< NoteType > parent, EventList &events, EventList::iterator &opti)
ArdourCanvas::Item * item
Definition: ghost_event.h:28
GhostEvent(::NoteBase *, ArdourCanvas::Container *, ArdourCanvas::Item *i)
virtual ~GhostEvent()
std::unordered_map< std::shared_ptr< NoteType >, GhostEvent * > EventList
Definition: ghost_event.h:34