remove AU GUI debugging test in which arrow keys could be used to change GUI size
[ardour.git] / gtk2_ardour / canvas-flag.h
1 #ifndef CANVASFLAG_H_
2 #define CANVASFLAG_H_
3
4 #include <string>
5 #include <libgnomecanvasmm/group.h>
6 #include <libgnomecanvasmm/widget.h>
7 #include <libgnomecanvasmm/text.h>
8
9 #include "simplerect.h"
10 #include "simpleline.h"
11
12 class MidiRegionView;
13
14 namespace Gnome {
15 namespace Canvas {
16
17 class CanvasFlag : public Group
18 {
19 public:
20         CanvasFlag(MidiRegionView& region,
21                    Group&          parent,
22                    double          height,
23                    guint           outline_color_rgba = 0xc0c0c0ff,
24                    guint           fill_color_rgba = 0x07070707,
25                    double          x = 0.0,
26                    double          y = 0.0);
27
28         virtual ~CanvasFlag();
29
30         virtual bool on_event(GdkEvent* ev);
31
32         virtual void set_text(const std::string& a_text);
33         virtual void set_height (double);
34
35 protected:
36         Text*            _text;
37         double           _height;
38         guint            _outline_color_rgba;
39         guint            _fill_color_rgba;
40         MidiRegionView&  _region;
41
42 private:
43         void delete_allocated_objects();
44
45         SimpleLine*      _line;
46         SimpleRect*      _rect;
47 };
48
49
50 } // namespace Canvas
51 } // namespace Gnome
52
53 #endif /*CANVASFLAG_H_*/