63 |
sigc::signal<void, gig::Region*>& signal_region_to_be_changed(); |
sigc::signal<void, gig::Region*>& signal_region_to_be_changed(); |
64 |
sigc::signal<void, gig::Region*>& signal_region_changed_signal(); |
sigc::signal<void, gig::Region*>& signal_region_changed_signal(); |
65 |
|
|
66 |
|
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_hit(); |
67 |
|
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
68 |
|
|
69 |
gig::Region* get_region() { return region; } |
gig::Region* get_region() { return region; } |
70 |
|
|
71 |
|
void on_note_on_event(int key, int velocity); |
72 |
|
void on_note_off_event(int key, int velocity); |
73 |
|
|
74 |
protected: |
protected: |
75 |
virtual void on_realize(); |
virtual void on_realize(); |
76 |
virtual bool on_expose_event(GdkEventExpose* e); |
virtual bool on_expose_event(GdkEventExpose* e); |
82 |
gig::Region* get_region(int key); |
gig::Region* get_region(int key); |
83 |
|
|
84 |
Glib::RefPtr<Gdk::GC> gc; |
Glib::RefPtr<Gdk::GC> gc; |
85 |
Gdk::Color blue, red, grey1; |
Gdk::Color activeKeyColor, red, grey1, white, black; |
|
|
|
|
void draw_region(int from, int to, const Gdk::Color& color); |
|
86 |
|
|
87 |
sigc::signal<void> region_selected; |
sigc::signal<void> region_selected; |
88 |
sigc::signal<void> instrument_changed; |
sigc::signal<void> instrument_changed; |
93 |
sigc::signal<void, gig::Region*> region_to_be_changed_signal; |
sigc::signal<void, gig::Region*> region_to_be_changed_signal; |
94 |
sigc::signal<void, gig::Region*> region_changed_signal; |
sigc::signal<void, gig::Region*> region_changed_signal; |
95 |
|
|
96 |
|
sigc::signal<void, int/*key*/, int/*velocity*/> keyboard_key_hit_signal; |
97 |
|
sigc::signal<void, int/*key*/, int/*velocity*/> keyboard_key_released_signal; |
98 |
|
|
99 |
gig::Instrument* instrument; |
gig::Instrument* instrument; |
100 |
gig::Region* region; |
gig::Region* region; |
101 |
SortedRegions regions; |
SortedRegions regions; |
102 |
|
|
103 |
|
bool is_black_key(int key); |
104 |
|
void draw_region(int from, int to, const Gdk::Color& color); |
105 |
|
void draw_digit(int key); |
106 |
void motion_resize_region(int x, int y); |
void motion_resize_region(int x, int y); |
107 |
void motion_move_region(int x, int y); |
void motion_move_region(int x, int y); |
108 |
|
|