X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fpiano_roll_header.h;h=7f469aebcefe20b49ff7defb4f1a1846c6d9650f;hb=678bb05bd6c68282448e1920fd7511a4289a1fc4;hp=141e7663f5de6114e2577d13b62c63782545580b;hpb=2db91c126edc8fcaeda711d35369970576715719;p=ardour.git diff --git a/gtk2_ardour/piano_roll_header.h b/gtk2_ardour/piano_roll_header.h index 141e7663f5..7f469aebce 100644 --- a/gtk2_ardour/piano_roll_header.h +++ b/gtk2_ardour/piano_roll_header.h @@ -1,5 +1,6 @@ /* - Copyright (C) 2008 Paul Davis + Copyright (C) 2008 Paul Davis + Author: Audan Holland ?? This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,7 +20,7 @@ #ifndef __ardour_piano_roll_header_h__ #define __ardour_piano_roll_header_h__ -#include +#include "ardour/types.h" #include @@ -51,12 +52,16 @@ public: Color(); Color(double _r, double _g, double _b); inline void set(const Color& c); - + double r; double g; double b; }; + sigc::signal AddNoteSelection; + sigc::signal ToggleNoteSelection; + sigc::signal ExtendNoteSelection; + private: static Color white; static Color white_highlight; @@ -87,16 +92,19 @@ private: void send_note_on(uint8_t note); void send_note_off(uint8_t note); + void reset_clicked_note(uint8_t, bool invalidate = true); + MidiStreamView& _view; - ARDOUR::Byte _event[3]; + uint8_t _event[3]; Cairo::RefPtr cc; bool _active_notes[128]; uint8_t _highlighted_note; uint8_t _clicked_note; double _grab_y; - + bool _dragging; + double _note_height; double _black_note_width; };