}
void
-AudioRegionView::entered ()
+AudioRegionView::entered (bool internal_editing)
{
if (gain_line && _flags & EnvelopeVisible) {
gain_line->show_all_control_points ();
UINT_TO_RGBA(fade_color,&r,&g,&b,&a);
a=255;
- if (fade_in_handle) {
+ if (fade_in_handle && !internal_editing) {
fade_in_handle->property_fill_color_rgba() = RGBA_TO_UINT(r,g,b,a);
fade_out_handle->property_fill_color_rgba() = RGBA_TO_UINT(r,g,b,a);
}
break;
}
}
-}
\ No newline at end of file
+}
void show_region_editor ();
- virtual void entered ();
+ virtual void entered (bool);
virtual void exited ();
protected:
void
-AutomationRegionView::entered()
+AutomationRegionView::entered (bool)
{
if (_line)
_line->track_entered();
void region_resized (const PBD::PropertyChange&);
bool canvas_event(GdkEvent* ev);
void add_automation_event (GdkEvent* event, nframes_t when, double y);
- void entered();
+ void entered (bool);
void exited();
private:
}
if ((entered_regionview = rv) != 0) {
- entered_regionview->entered ();
+ entered_regionview->entered (internal_editing ());
}
}
break;
case FadeInHandleItem:
- if (mouse_mode == MouseObject) {
+ if (mouse_mode == MouseObject && !internal_editing()) {
ArdourCanvas::SimpleRect *rect = dynamic_cast<ArdourCanvas::SimpleRect *> (item);
if (rect) {
rect->property_fill_color_rgba() = 0;
break;
case FadeOutHandleItem:
- if (mouse_mode == MouseObject) {
+ if (mouse_mode == MouseObject && !internal_editing()) {
ArdourCanvas::SimpleRect *rect = dynamic_cast<ArdourCanvas::SimpleRect *> (item);
if (rect) {
rect->property_fill_color_rgba() = 0;
uint32_t get_fill_color ();
- virtual void entered () {}
+ virtual void entered (bool) {}
virtual void exited () {}
virtual void enable_display(bool yn) { _enable_display = yn; }