summaryrefslogtreecommitdiff
path: root/gtk2_ardour/canvas-note-event.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-12-23 21:05:50 +0000
committerDavid Robillard <d@drobilla.net>2008-12-23 21:05:50 +0000
commit2a2067388314ae1695f3be4d6ea9e3c3628f91ba (patch)
tree93b83d5f618e6161c7b8ede87f26565720789e44 /gtk2_ardour/canvas-note-event.h
parent270f1abe8d2a3e3da369a8e64bc0e6806309304d (diff)
Fix note velocity editing.
Don't abuse/leak selection when editing velocity (fix editing velocity of a single note actually editing velocity of every note who's velocity had previously been edited). Properly preserve selection for MIDI operations in general. Less crap method of delineating scroll events to canvas items (no exhaustive type cases needed in editor_canvas_events.cc). Fix silly comment style in midi_region_view.h (hans: please note this and follow in the future). git-svn-id: svn://localhost/ardour2/branches/3.0@4343 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note-event.h')
-rw-r--r--gtk2_ardour/canvas-note-event.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/gtk2_ardour/canvas-note-event.h b/gtk2_ardour/canvas-note-event.h
index 45403ed664..efb717823c 100644
--- a/gtk2_ardour/canvas-note-event.h
+++ b/gtk2_ardour/canvas-note-event.h
@@ -20,20 +20,20 @@
#ifndef __gtk_ardour_canvas_midi_event_h__
#define __gtk_ardour_canvas_midi_event_h__
-
+#include <boost/shared_ptr.hpp>
#include <libgnomecanvasmm/text.h>
#include <libgnomecanvasmm/widget.h>
-#include <ardour/midi_model.h>
#include "rgb_macros.h"
#include "ardour_ui.h"
#include "ui_config.h"
-#include "simplerect.h"
-#include "midi_channel_selector.h"
+#include "interactive-item.h"
class Editor;
class MidiRegionView;
+namespace Evoral { class Note; }
+
namespace Gnome {
namespace Canvas {
@@ -49,7 +49,7 @@ namespace Canvas {
*
* A newer, better canvas should remove the need for all the ugly here.
*/
-class CanvasNoteEvent : public sigc::trackable {
+class CanvasNoteEvent : public sigc::trackable, public InteractiveItem {
public:
CanvasNoteEvent(
MidiRegionView& region,
@@ -75,7 +75,6 @@ public:
void on_channel_selection_change(uint16_t selection);
void show_channel_selector();
-
void hide_channel_selector();
virtual void set_outline_color(uint32_t c) = 0;