mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Note selection via clicking (including multi-note selection via ctrl/shift clicking).
git-svn-id: svn://localhost/ardour2/trunk@2245 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c1b73d4a41
commit
c0e916d4da
8 changed files with 120 additions and 37 deletions
|
|
@ -35,15 +35,8 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
virtual void selected(bool yn) {
|
||||
if (!_note)
|
||||
return;
|
||||
else if (yn)
|
||||
property_outline_color_rgba()
|
||||
= ARDOUR_UI::config()->canvasvar_MidiNoteSelectedOutline.get();
|
||||
else
|
||||
property_outline_color_rgba() = note_outline_color(_note->velocity());
|
||||
}
|
||||
void set_outline_color(uint32_t c) { property_outline_color_rgba() = c; }
|
||||
void set_fill_color(uint32_t c) { property_fill_color_rgba() = c; }
|
||||
|
||||
bool on_event(GdkEvent* ev) { return CanvasMidiEvent::on_event(ev); }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue