13
0
livetrax/gtk2_ardour/canvas-program-change.h
Hans Baier 6d319e2132 * first prototype of program changes UI show up correctly (see http://www.flickr.com/photos/24012642@N02/2451596190/)
git-svn-id: svn://localhost/ardour2/branches/3.0@3293 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-04-29 07:28:24 +00:00

44 lines
1.0 KiB
C++

#ifndef CANVASPROGRAMCHANGE_H_
#define CANVASPROGRAMCHANGE_H_
#include <libgnomecanvasmm/group.h>
#include "simplerect.h"
#include "simpleline.h"
#include "midi_region_view.h"
#include <libgnomecanvasmm/text.h>
#include <libgnomecanvasmm/widget.h>
#include <ardour/midi_model.h>
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;
Widget* _widget;
};
} // namespace Canvas
} // namespace Gnome
#endif /*CANVASPROGRAMCHANGE_H_*/