- CanvasFlagText* _text;
- double _height;
- guint _outline_color_rgba;
- guint _fill_color_rgba;
-
-private:
- void delete_allocated_objects();
-
- MidiRegionView& _region;
- SimpleLine* _line;
- CanvasFlagRect* _rect;
-};
-
-class CanvasFlagText: public Text
-{
-public:
- CanvasFlagText(Group& parent, double x, double y, const Glib::ustring& text)
- : Text(parent, x, y, text) {
- _parent = dynamic_cast<CanvasFlag*>(&parent);
-;
- }
-
- virtual bool on_event(GdkEvent* ev) {
- if(_parent) {
- return _parent->on_event(ev);
- } else {
- return false;
- }
- }
+ Text* _text;
+ double _height;
+ guint _outline_color_rgba;
+ guint _fill_color_rgba;
+ MidiRegionView& _region;