13
0
livetrax/gtk2_ardour/canvas-program-change.h

42 lines
1018 B
C
Raw Normal View History

#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<Evoral::Event> event,
double height,
double x = 0.0,
double y = 0.0
);
virtual ~CanvasProgramChange();
private:
MidiRegionView& _region;
boost::shared_ptr<Evoral::Event> _event;
Text* _text;
SimpleLine* _line;
SimpleRect* _rect;
};
} // namespace Canvas
} // namespace Gnome
#endif /*CANVASPROGRAMCHANGE_H_*/