2008-04-29 03:28:24 -04:00
|
|
|
#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>
|
|
|
|
|
2008-04-29 17:58:05 -04:00
|
|
|
class MidiRegionView;
|
|
|
|
|
|
|
|
namespace Gnome {
|
|
|
|
namespace Canvas {
|
2008-04-29 03:28:24 -04:00
|
|
|
|
|
|
|
class CanvasProgramChange : public Group
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CanvasProgramChange(
|
|
|
|
MidiRegionView& region,
|
|
|
|
Group& parent,
|
2008-09-18 20:47:49 -04:00
|
|
|
boost::shared_ptr<Evoral::Event> event,
|
2008-04-29 03:28:24 -04:00
|
|
|
double height,
|
|
|
|
double x = 0.0,
|
|
|
|
double y = 0.0
|
|
|
|
);
|
|
|
|
|
|
|
|
virtual ~CanvasProgramChange();
|
|
|
|
|
|
|
|
private:
|
|
|
|
MidiRegionView& _region;
|
2008-09-18 20:47:49 -04:00
|
|
|
boost::shared_ptr<Evoral::Event> _event;
|
2008-04-29 03:28:24 -04:00
|
|
|
Text* _text;
|
|
|
|
SimpleLine* _line;
|
|
|
|
SimpleRect* _rect;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Canvas
|
|
|
|
} // namespace Gnome
|
|
|
|
|
|
|
|
#endif /*CANVASPROGRAMCHANGE_H_*/
|