mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Merge all the (disconcertingly missing) track/region/etc height changes from 2.0.
Fix track y positioning and initial region size/location. Fix automation click-to-add-points (i.e. points actually show up where you click). Fancy whiz-bang dynamic resize 2.0 professional edition support for MIDI/CC/Automation tracks/regions. git-svn-id: svn://localhost/ardour2/branches/3.0@3769 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7aea02083a
commit
b87ca000f8
23 changed files with 112 additions and 126 deletions
|
|
@ -69,8 +69,7 @@ AutomationRegionView::create_line (boost::shared_ptr<ARDOUR::AutomationList> lis
|
|||
_line->set_colors();
|
||||
_line->show();
|
||||
_line->show_all_control_points();
|
||||
_line->set_y_position_and_height (trackview.y_position,
|
||||
(uint32_t)rint(trackview.current_height() - NAME_HIGHLIGHT_SIZE));
|
||||
_line->set_height ((uint32_t)rint(trackview.current_height() - NAME_HIGHLIGHT_SIZE));
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
@ -124,24 +123,13 @@ AutomationRegionView::add_automation_event (GdkEvent* event, nframes_t when, dou
|
|||
view->session().set_dirty ();
|
||||
}
|
||||
|
||||
void
|
||||
AutomationRegionView::set_y_position_and_height (double y, double h)
|
||||
{
|
||||
cout << "ARV SET Y POSITION AND HEIGHT: " << y << ", " << h << endl;
|
||||
RegionView::set_y_position_and_height(y, h - 1);
|
||||
|
||||
if (_line)
|
||||
_line->set_y_position_and_height (y, h - NAME_HIGHLIGHT_SIZE);
|
||||
}
|
||||
|
||||
void
|
||||
AutomationRegionView::set_height (double h)
|
||||
{
|
||||
cout << "ARV SET HEIGHT: " << h << endl;
|
||||
RegionView::set_height(h);
|
||||
|
||||
if (_line)
|
||||
_line->set_y_position_and_height (trackview.y_position - h,
|
||||
(uint32_t)rint(h - NAME_HIGHLIGHT_SIZE));
|
||||
_line->set_height ((uint32_t)rint(h - NAME_HIGHLIGHT_SIZE));
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue