/*
Copyright (C) 2007 Paul Davis
- Author: Dave Robillard
+ Author: David Robillard
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
virtual void set_outline_color(uint32_t c) = 0;
virtual void set_fill_color(uint32_t c) = 0;
- virtual double x1() = 0;
- virtual double y1() = 0;
- virtual double x2() = 0;
- virtual double y2() = 0;
+ virtual double x1() const = 0;
+ virtual double y1() const = 0;
+ virtual double x2() const = 0;
+ virtual double y2() const = 0;
float mouse_x_fraction() const { return _mouse_x_fraction; }
float mouse_y_fraction() const { return _mouse_y_fraction; }
static const uint32_t midi_channel_colors[16];
bool mouse_near_ends () const;
-
+ bool big_enough_to_trim () const;
+
protected:
enum State { None, Pressed, Dragging };
Widget* _channel_selector_widget;
State _state;
const boost::shared_ptr<NoteType> _note;
- bool _own_note;
bool _selected;
bool _valid;
float _mouse_x_fraction;
float _mouse_y_fraction;
-
+ uint16_t _channel_selection;
+
void set_mouse_fractions (GdkEvent*);
};