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 Nick Mainsbridge <mainsbridge@gmail.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) 2014-2017 Robin Gareus <robin@gareus.org>
|
|
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
#ifndef __ardour_automation_line_h__
|
|
|
|
|
#define __ardour_automation_line_h__
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <list>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
2005-09-25 20:33:00 +00:00
|
|
|
#include <sigc++/signal.h>
|
2006-08-25 01:07:15 +00:00
|
|
|
|
2009-02-25 18:26:51 +00:00
|
|
|
#include "pbd/undo.h"
|
2009-10-14 16:10:01 +00:00
|
|
|
#include "pbd/statefuldestructible.h"
|
2010-07-14 12:27:37 +00:00
|
|
|
#include "pbd/memento_command.h"
|
2005-09-25 18:42:24 +00:00
|
|
|
|
2009-02-25 18:26:51 +00:00
|
|
|
#include "ardour/automation_list.h"
|
2014-11-02 01:29:33 -05:00
|
|
|
#include "ardour/parameter_descriptor.h"
|
2009-02-25 18:26:51 +00:00
|
|
|
#include "ardour/types.h"
|
2005-09-25 18:42:24 +00:00
|
|
|
|
2013-04-04 00:32:52 -04:00
|
|
|
#include "canvas/types.h"
|
2014-06-22 11:41:05 -04:00
|
|
|
#include "canvas/container.h"
|
2013-12-28 13:52:46 -05:00
|
|
|
#include "canvas/poly_line.h"
|
2013-04-04 00:32:52 -04:00
|
|
|
|
2024-08-24 08:03:21 -06:00
|
|
|
#include "automation_line_base.h"
|
|
|
|
|
|
2005-09-25 18:42:24 +00:00
|
|
|
class AutomationLine;
|
|
|
|
|
class ControlPoint;
|
|
|
|
|
class PointSelection;
|
|
|
|
|
class TimeAxisView;
|
|
|
|
|
class AutomationTimeAxisView;
|
|
|
|
|
class Selectable;
|
|
|
|
|
class Selection;
|
2014-06-07 17:43:12 +02:00
|
|
|
class PublicEditor;
|
2005-09-25 18:42:24 +00:00
|
|
|
|
2005-11-13 18:13:50 +00:00
|
|
|
|
2024-08-24 08:03:21 -06:00
|
|
|
/** A GUI representation of an ARDOUR::AutomationList within the main editor
|
|
|
|
|
* (i.e. in a TimeAxisView
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class AutomationLine : public AutomationLineBase
|
2005-09-25 18:42:24 +00:00
|
|
|
{
|
2014-01-06 15:32:37 -05:00
|
|
|
public:
|
2014-11-01 23:29:10 -04:00
|
|
|
AutomationLine (const std::string& name,
|
|
|
|
|
TimeAxisView& tv,
|
|
|
|
|
ArdourCanvas::Item& parent,
|
2024-04-17 03:53:30 +02:00
|
|
|
std::shared_ptr<ARDOUR::AutomationList> al,
|
2021-02-16 15:58:37 -07:00
|
|
|
const ARDOUR::ParameterDescriptor& desc);
|
|
|
|
|
|
2014-11-01 23:29:10 -04:00
|
|
|
|
2005-09-25 18:42:24 +00:00
|
|
|
virtual ~AutomationLine ();
|
|
|
|
|
|
2009-07-09 17:58:13 +00:00
|
|
|
TimeAxisView& trackview;
|
2005-09-25 18:42:24 +00:00
|
|
|
|
2024-08-24 08:03:21 -06:00
|
|
|
protected:
|
2005-11-16 02:57:22 +00:00
|
|
|
virtual bool event_handler (GdkEvent*);
|
2005-09-25 18:42:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif /* __ardour_automation_line_h__ */
|
|
|
|
|
|