mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Use shared_ptr for the TimeAxisView hierarchy.
git-svn-id: svn://localhost/ardour2/branches/3.0@5339 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0f8031da06
commit
4297071b3f
71 changed files with 1102 additions and 879 deletions
|
|
@ -52,16 +52,16 @@ using namespace ARDOUR;
|
|||
using namespace PBD;
|
||||
using namespace Editing;
|
||||
|
||||
AutomationStreamView::AutomationStreamView (AutomationTimeAxisView& tv)
|
||||
: StreamView (*dynamic_cast<RouteTimeAxisView*>(tv.get_parent()),
|
||||
new ArdourCanvas::Group(*tv.canvas_display()))
|
||||
, _controller(tv.controller())
|
||||
AutomationStreamView::AutomationStreamView (AutomationTimeAxisViewPtr tv)
|
||||
: StreamView (boost::dynamic_pointer_cast<RouteTimeAxisView> (tv->get_parent()),
|
||||
new ArdourCanvas::Group(*tv->canvas_display()))
|
||||
, _controller(tv->controller())
|
||||
, _automation_view(tv)
|
||||
{
|
||||
//canvas_rect->property_fill_color_rgba() = stream_base_color;
|
||||
canvas_rect->property_outline_color_rgba() = RGBA_BLACK;
|
||||
|
||||
use_rec_regions = tv.editor().show_waveforms_recording ();
|
||||
use_rec_regions = tv->editor().show_waveforms_recording ();
|
||||
}
|
||||
|
||||
AutomationStreamView::~AutomationStreamView ()
|
||||
|
|
@ -165,8 +165,8 @@ AutomationStreamView::redisplay_diskstream ()
|
|||
}
|
||||
|
||||
// Add and display region views, and flag them as valid
|
||||
if (_trackview.is_track()) {
|
||||
_trackview.get_diskstream()->playlist()->foreach_region (
|
||||
if (_trackview->is_track()) {
|
||||
_trackview->get_diskstream()->playlist()->foreach_region (
|
||||
sigc::hide_return (sigc::mem_fun (*this, &StreamView::add_region_view))
|
||||
);
|
||||
}
|
||||
|
|
@ -199,11 +199,11 @@ AutomationStreamView::rec_data_range_ready (jack_nframes_t start, jack_nframes_t
|
|||
void
|
||||
AutomationStreamView::color_handler ()
|
||||
{
|
||||
/*if (_trackview.is_midi_track()) {
|
||||
/*if (_trackview->is_midi_track()) {
|
||||
canvas_rect->property_fill_color_rgba() = ARDOUR_UI::config()->canvasvar_MidiTrackBase.get();
|
||||
}
|
||||
|
||||
if (!_trackview.is_midi_track()) {
|
||||
if (!_trackview->is_midi_track()) {
|
||||
canvas_rect->property_fill_color_rgba() = ARDOUR_UI::config()->canvasvar_MidiBusBase.get();;
|
||||
}*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue