2005-09-25 18:42:24 +00:00
|
|
|
/*
|
2019-08-02 23:26:43 +02:00
|
|
|
* Copyright (C) 2005-2017 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
|
* Copyright (C) 2005 Karsten Wiese <fzuuzf@googlemail.com>
|
|
|
|
|
* Copyright (C) 2005 Taybin Rutkin <taybin@taybin.com>
|
|
|
|
|
* Copyright (C) 2006 Hans Fugal <hans@fugal.net>
|
|
|
|
|
* Copyright (C) 2007-2012 Carl Hetherington <carl@carlh.net>
|
|
|
|
|
* Copyright (C) 2007-2015 David Robillard <d@drobilla.net>
|
|
|
|
|
* Copyright (C) 2007 Doug McLain <doug@nostar.net>
|
|
|
|
|
* Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
|
|
|
|
|
* Copyright (C) 2014-2016 Nick Mainsbridge <mainsbridge@gmail.com>
|
|
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
|
*/
|
2005-09-25 18:42:24 +00:00
|
|
|
|
|
|
|
|
#include "automation_line.h"
|
|
|
|
|
#include "public_editor.h"
|
|
|
|
|
#include "time_axis_view.h"
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
using namespace ARDOUR;
|
2020-10-02 21:26:17 -06:00
|
|
|
|
2017-09-18 12:39:17 -04:00
|
|
|
/** @param converter A TimeConverter whose origin_b is the start time of the AutomationList in session samples.
|
2012-03-22 16:41:23 +00:00
|
|
|
* This will not be deleted by AutomationLine.
|
|
|
|
|
*/
|
2014-11-01 23:29:10 -04:00
|
|
|
AutomationLine::AutomationLine (const string& name,
|
|
|
|
|
TimeAxisView& tv,
|
|
|
|
|
ArdourCanvas::Item& parent,
|
2024-04-17 03:53:30 +02:00
|
|
|
std::shared_ptr<AutomationList> al,
|
2021-02-16 15:58:37 -07:00
|
|
|
const ParameterDescriptor& desc)
|
2024-08-24 08:03:21 -06:00
|
|
|
: AutomationLineBase (name, tv.editor(), parent, nullptr, al, desc)
|
|
|
|
|
, trackview (tv)
|
2005-09-25 18:42:24 +00:00
|
|
|
{
|
2023-09-26 17:03:09 +02:00
|
|
|
line->set_data ("trackview", &trackview);
|
2005-09-25 18:42:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AutomationLine::~AutomationLine ()
|
|
|
|
|
{
|
2021-02-16 15:58:37 -07:00
|
|
|
}
|
|
|
|
|
|
2005-11-16 02:57:22 +00:00
|
|
|
bool
|
|
|
|
|
AutomationLine::event_handler (GdkEvent* event)
|
|
|
|
|
{
|
2024-08-24 08:03:21 -06:00
|
|
|
return trackview.editor().canvas_line_event (event, line, this);
|
2010-12-12 22:25:27 +00:00
|
|
|
}
|