65 |
|
|
66 |
gig::Region* get_region() { return region; } |
gig::Region* get_region() { return region; } |
67 |
|
|
68 |
|
void on_note_on_event(int key, int velocity); |
69 |
|
void on_note_off_event(int key, int velocity); |
70 |
|
|
71 |
protected: |
protected: |
72 |
virtual void on_realize(); |
virtual void on_realize(); |
73 |
virtual bool on_expose_event(GdkEventExpose* e); |
virtual bool on_expose_event(GdkEventExpose* e); |
79 |
gig::Region* get_region(int key); |
gig::Region* get_region(int key); |
80 |
|
|
81 |
Glib::RefPtr<Gdk::GC> gc; |
Glib::RefPtr<Gdk::GC> gc; |
82 |
Gdk::Color blue, red, grey1; |
Gdk::Color activeKeyColor, red, grey1, white, black; |
|
|
|
|
void draw_region(int from, int to, const Gdk::Color& color); |
|
83 |
|
|
84 |
sigc::signal<void> region_selected; |
sigc::signal<void> region_selected; |
85 |
sigc::signal<void> instrument_changed; |
sigc::signal<void> instrument_changed; |
94 |
gig::Region* region; |
gig::Region* region; |
95 |
SortedRegions regions; |
SortedRegions regions; |
96 |
|
|
97 |
|
bool is_black_key(int key); |
98 |
|
void draw_region(int from, int to, const Gdk::Color& color); |
99 |
void motion_resize_region(int x, int y); |
void motion_resize_region(int x, int y); |
100 |
void motion_move_region(int x, int y); |
void motion_move_region(int x, int y); |
101 |
|
|