David Robillard
bb9cc45cd2
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
40 lines
757 B
C++
40 lines
757 B
C++
#include "canvas-note.h"
|
|
#include "midi_region_view.h"
|
|
#include "public_editor.h"
|
|
#include "evoral/Note.hpp"
|
|
|
|
using namespace ARDOUR;
|
|
|
|
namespace Gnome {
|
|
namespace Canvas {
|
|
|
|
bool
|
|
CanvasNote::on_event(GdkEvent* ev)
|
|
{
|
|
if (!_region.get_trackview().editor().canvas_note_event (ev, this)) {
|
|
return CanvasNoteEvent::on_event (ev);
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
void
|
|
CanvasNote::move_event(double dx, double dy)
|
|
{
|
|
property_x1() = property_x1() + dx;
|
|
property_y1() = property_y1() + dy;
|
|
property_x2() = property_x2() + dx;
|
|
property_y2() = property_y2() + dy;
|
|
|
|
if (_text) {
|
|
_text->hide();
|
|
_text->property_x() = _text->property_x() + dx;
|
|
_text->property_y() = _text->property_y() + dy;
|
|
_text->show();
|
|
}
|
|
}
|
|
|
|
|
|
} // namespace Gnome
|
|
} // namespace Canvas
|