From 166395c96b8a85d90b9785e629c739494494130f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Feb 2009 19:44:27 +0000 Subject: Fix genererally retarded and broken note range / diskstream display / etc. related things (correctly display region contents on initial session load). git-svn-id: svn://localhost/ardour2/branches/3.0@4583 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/canvas-note-event.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/canvas-note-event.h') diff --git a/gtk2_ardour/canvas-note-event.h b/gtk2_ardour/canvas-note-event.h index 1f22a5b797..060e4d9fa9 100644 --- a/gtk2_ardour/canvas-note-event.h +++ b/gtk2_ardour/canvas-note-event.h @@ -59,6 +59,8 @@ public: virtual ~CanvasNoteEvent(); + virtual void show() = 0; + virtual void hide() = 0; virtual bool on_event(GdkEvent* ev); bool selected() const { return _selected; } @@ -71,10 +73,10 @@ public: void show_velocity(); void hide_velocity(); - /** - * This slot is called, when a new channel is selected for the single event - * */ + /** Channel changed for this specific event */ void on_channel_change(uint8_t channel); + + /** Channel selection changed */ void on_channel_selection_change(uint16_t selection); void show_channel_selector(); @@ -111,7 +113,7 @@ public: return UINT_INTERPOLATE(color, 0x000000ff, 0.5); } - /// dividing the hue circle in 16 parts, hand adjusted for equal look, courtesy Thorsten Wilms + /// hue circle divided into 16 equal-looking parts, courtesy Thorsten Wilms static const uint32_t midi_channel_colors[16]; protected: -- cgit v1.2.3