projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put some up/down buttons to the right of the summary. Might help with #3786.
[ardour.git]
/
gtk2_ardour
/
canvas-note-event.h
diff --git
a/gtk2_ardour/canvas-note-event.h
b/gtk2_ardour/canvas-note-event.h
index c1795c330e4a766870153030bf3eb48e5e20ea43..191b9e2ad8195f20213157d9c93d6c3b7b4347a7 100644
(file)
--- a/
gtk2_ardour/canvas-note-event.h
+++ b/
gtk2_ardour/canvas-note-event.h
@@
-100,6
+100,9
@@
class CanvasNoteEvent : virtual public sigc::trackable
virtual double x2() = 0;
virtual double y2() = 0;
virtual double x2() = 0;
virtual double y2() = 0;
+ float mouse_x_fraction() const { return _mouse_x_fraction; }
+ float mouse_y_fraction() const { return _mouse_y_fraction; }
+
const boost::shared_ptr<NoteType> note() const { return _note; }
MidiRegionView& region_view() const { return _region; }
const boost::shared_ptr<NoteType> note() const { return _note; }
MidiRegionView& region_view() const { return _region; }
@@
-139,7
+142,9
@@
class CanvasNoteEvent : virtual public sigc::trackable
/// hue circle divided into 16 equal-looking parts, courtesy Thorsten Wilms
static const uint32_t midi_channel_colors[16];
/// hue circle divided into 16 equal-looking parts, courtesy Thorsten Wilms
static const uint32_t midi_channel_colors[16];
-protected:
+ bool mouse_near_ends () const;
+
+ protected:
enum State { None, Pressed, Dragging };
MidiRegionView& _region;
enum State { None, Pressed, Dragging };
MidiRegionView& _region;
@@
-151,6
+156,10
@@
protected:
bool _own_note;
bool _selected;
bool _valid;
bool _own_note;
bool _selected;
bool _valid;
+ float _mouse_x_fraction;
+ float _mouse_y_fraction;
+
+ void set_mouse_fractions (GdkEvent*);
};
} // namespace Gnome
};
} // namespace Gnome