f2a912d5061730fa958a2ff2625628ba70f35960
[ardour.git] / gtk2_ardour / canvas-program-change.h
1 #ifndef CANVASPROGRAMCHANGE_H_
2 #define CANVASPROGRAMCHANGE_H_
3
4 #include <libgnomecanvasmm/group.h>
5 #include "simplerect.h"
6 #include "simpleline.h"
7 #include <libgnomecanvasmm/text.h>
8 #include <libgnomecanvasmm/widget.h>
9 #include <ardour/midi_model.h>
10
11 class MidiRegionView;
12
13 namespace Gnome {
14 namespace Canvas {
15
16 class CanvasProgramChange : public Group
17 {
18 public:
19         CanvasProgramChange(
20                 MidiRegionView&                       region,
21                 Group&                                parent,
22                 boost::shared_ptr<Evoral::Event>      event,
23                 double                                height,
24                 double                                x = 0.0,
25                 double                                y = 0.0
26         );
27         
28         virtual ~CanvasProgramChange();
29         
30 private:
31         MidiRegionView&                   _region;
32         boost::shared_ptr<Evoral::Event>  _event;
33         Text*                             _text;
34         SimpleLine*                       _line;
35         SimpleRect*                       _rect;
36 };
37
38 } // namespace Canvas
39 } // namespace Gnome
40
41 #endif /*CANVASPROGRAMCHANGE_H_*/