summaryrefslogtreecommitdiff
path: root/gtk2_ardour/canvas-program-change.h
blob: 3ac9b103838321958207e7b911060846600ebc77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef CANVASPROGRAMCHANGE_H_
#define CANVASPROGRAMCHANGE_H_

#include <libgnomecanvasmm/group.h>
#include "simplerect.h"
#include "simpleline.h"
#include <libgnomecanvasmm/text.h>
#include <libgnomecanvasmm/widget.h>
#include <ardour/midi_model.h>

class MidiRegionView;

namespace Gnome {
namespace Canvas {

class CanvasProgramChange : public Group
{
public:
	CanvasProgramChange(
		MidiRegionView&                       region,
		Group&                                parent,
		boost::shared_ptr<MIDI::Event>        event,
		double                                height,
		double                                x = 0.0,
		double                                y = 0.0
	);
	
	virtual ~CanvasProgramChange();
	
private:
	MidiRegionView&                   _region;
	boost::shared_ptr<MIDI::Event>    _event;
	Text*                             _text;
	SimpleLine*                       _line;
	SimpleRect*                       _rect;
};

} // namespace Canvas
} // namespace Gnome

#endif /*CANVASPROGRAMCHANGE_H_*/