13
0

Don't tempt the user with visual cues that they can adjust fades when they can't (in MIDI internal edit mode)

git-svn-id: svn://localhost/ardour2/branches/3.0@7433 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-07-16 21:12:06 +00:00
parent da67628bcf
commit 27dd925f42
7 changed files with 10 additions and 10 deletions

View File

@ -1229,7 +1229,7 @@ AudioRegionView::add_ghost (TimeAxisView& tv)
} }
void void
AudioRegionView::entered () AudioRegionView::entered (bool internal_editing)
{ {
if (gain_line && _flags & EnvelopeVisible) { if (gain_line && _flags & EnvelopeVisible) {
gain_line->show_all_control_points (); gain_line->show_all_control_points ();
@ -1239,7 +1239,7 @@ AudioRegionView::entered ()
UINT_TO_RGBA(fade_color,&r,&g,&b,&a); UINT_TO_RGBA(fade_color,&r,&g,&b,&a);
a=255; 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_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); fade_out_handle->property_fill_color_rgba() = RGBA_TO_UINT(r,g,b,a);
} }

View File

@ -111,7 +111,7 @@ class AudioRegionView : public RegionView
void show_region_editor (); void show_region_editor ();
virtual void entered (); virtual void entered (bool);
virtual void exited (); virtual void exited ();
protected: protected:

View File

@ -186,7 +186,7 @@ AutomationRegionView::region_resized (const PBD::PropertyChange& what_changed)
void void
AutomationRegionView::entered() AutomationRegionView::entered (bool)
{ {
if (_line) if (_line)
_line->track_entered(); _line->track_entered();

View File

@ -68,7 +68,7 @@ protected:
void region_resized (const PBD::PropertyChange&); void region_resized (const PBD::PropertyChange&);
bool canvas_event(GdkEvent* ev); bool canvas_event(GdkEvent* ev);
void add_automation_event (GdkEvent* event, nframes_t when, double y); void add_automation_event (GdkEvent* event, nframes_t when, double y);
void entered(); void entered (bool);
void exited(); void exited();
private: private:

View File

@ -797,7 +797,7 @@ Editor::set_entered_regionview (RegionView* rv)
} }
if ((entered_regionview = rv) != 0) { if ((entered_regionview = rv) != 0) {
entered_regionview->entered (); entered_regionview->entered (internal_editing ());
} }
} }

View File

@ -1612,7 +1612,7 @@ Editor::enter_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_
break; break;
case FadeInHandleItem: case FadeInHandleItem:
if (mouse_mode == MouseObject) { if (mouse_mode == MouseObject && !internal_editing()) {
ArdourCanvas::SimpleRect *rect = dynamic_cast<ArdourCanvas::SimpleRect *> (item); ArdourCanvas::SimpleRect *rect = dynamic_cast<ArdourCanvas::SimpleRect *> (item);
if (rect) { if (rect) {
rect->property_fill_color_rgba() = 0; rect->property_fill_color_rgba() = 0;
@ -1623,7 +1623,7 @@ Editor::enter_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_
break; break;
case FadeOutHandleItem: case FadeOutHandleItem:
if (mouse_mode == MouseObject) { if (mouse_mode == MouseObject && !internal_editing()) {
ArdourCanvas::SimpleRect *rect = dynamic_cast<ArdourCanvas::SimpleRect *> (item); ArdourCanvas::SimpleRect *rect = dynamic_cast<ArdourCanvas::SimpleRect *> (item);
if (rect) { if (rect) {
rect->property_fill_color_rgba() = 0; rect->property_fill_color_rgba() = 0;

View File

@ -83,7 +83,7 @@ class RegionView : public TimeAxisViewItem
uint32_t get_fill_color (); uint32_t get_fill_color ();
virtual void entered () {} virtual void entered (bool) {}
virtual void exited () {} virtual void exited () {}
virtual void enable_display(bool yn) { _enable_display = yn; } virtual void enable_display(bool yn) { _enable_display = yn; }