13
0
livetrax/gtk2_ardour/canvas-program-change.h
David Robillard 05801cc3d6 Eliminate excessive allocation (for every event) during MidiModel iteration.
git-svn-id: svn://localhost/ardour2/branches/3.0@3351 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-05-15 05:00:28 +00:00

42 lines
1018 B
C++

#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_*/