2005-09-25 14:42:24 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2005-2014 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2005 Karsten Wiese <fzuuzf@googlemail.com>
|
|
|
|
* Copyright (C) 2005 Taybin Rutkin <taybin@taybin.com>
|
|
|
|
* Copyright (C) 2006-2014 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2007-2012 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2017-2019 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 14:42:24 -04:00
|
|
|
|
2006-07-31 23:23:35 -04:00
|
|
|
#ifndef __ardour_audio_time_axis_h__
|
|
|
|
#define __ardour_audio_time_axis_h__
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2005-11-28 23:41:15 -05:00
|
|
|
#include <gtkmm/table.h>
|
|
|
|
#include <gtkmm/button.h>
|
|
|
|
#include <gtkmm/box.h>
|
|
|
|
#include <gtkmm/menu.h>
|
|
|
|
#include <gtkmm/menuitem.h>
|
|
|
|
#include <gtkmm/radiomenuitem.h>
|
|
|
|
#include <gtkmm/checkmenuitem.h>
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
#include <list>
|
|
|
|
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "ardour/types.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#include "ardour_dialog.h"
|
|
|
|
#include "route_ui.h"
|
|
|
|
#include "enums.h"
|
2008-03-17 16:54:03 -04:00
|
|
|
#include "editing.h"
|
2006-07-31 23:23:35 -04:00
|
|
|
#include "route_time_axis.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
namespace ARDOUR {
|
|
|
|
class Session;
|
|
|
|
class RouteGroup;
|
2007-06-27 16:23:48 -04:00
|
|
|
class IOProcessor;
|
|
|
|
class Processor;
|
2005-09-25 14:42:24 -04:00
|
|
|
class Location;
|
|
|
|
class AudioPlaylist;
|
|
|
|
}
|
|
|
|
|
|
|
|
class PublicEditor;
|
|
|
|
class AudioThing;
|
2006-07-31 23:23:35 -04:00
|
|
|
class AudioStreamView;
|
2005-09-25 14:42:24 -04:00
|
|
|
class Selection;
|
|
|
|
class Selectable;
|
2006-07-31 23:23:35 -04:00
|
|
|
class RegionView;
|
2005-09-25 14:42:24 -04:00
|
|
|
class AudioRegionView;
|
|
|
|
class AutomationLine;
|
|
|
|
class AutomationGainLine;
|
|
|
|
class AutomationPanLine;
|
|
|
|
class TimeSelection;
|
|
|
|
class AutomationTimeAxisView;
|
|
|
|
|
2006-07-31 23:23:35 -04:00
|
|
|
class AudioTimeAxisView : public RouteTimeAxisView
|
2005-09-25 14:42:24 -04:00
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
|
|
|
AudioTimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas);
|
|
|
|
virtual ~AudioTimeAxisView ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2011-07-06 20:37:13 -04:00
|
|
|
void set_route (boost::shared_ptr<ARDOUR::Route>);
|
|
|
|
|
2006-07-31 23:23:35 -04:00
|
|
|
AudioStreamView* audio_view();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void set_show_waveforms_recording (bool yn);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2006-07-31 23:23:35 -04:00
|
|
|
/* Overridden from parent to store display state */
|
2005-09-25 14:42:24 -04:00
|
|
|
guint32 show_at (double y, int& nth, Gtk::VBox *parent);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-29 18:47:40 -04:00
|
|
|
void create_automation_child (const Evoral::Parameter& param, bool show);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-03-17 16:54:03 -04:00
|
|
|
void first_idle ();
|
|
|
|
|
2017-07-01 15:11:14 -04:00
|
|
|
private:
|
2006-07-31 23:23:35 -04:00
|
|
|
friend class AudioStreamView;
|
2005-09-25 14:42:24 -04:00
|
|
|
friend class AudioRegionView;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2006-07-31 23:23:35 -04:00
|
|
|
void route_active_changed ();
|
2019-04-10 15:03:08 -04:00
|
|
|
void parameter_changed (std::string const &);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2007-07-06 23:19:04 -04:00
|
|
|
Gtk::Menu* build_mode_menu();
|
2011-03-07 08:04:36 -05:00
|
|
|
void build_automation_action_menu (bool);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2011-03-07 08:04:36 -05:00
|
|
|
void show_all_automation (bool apply_to_selection = false);
|
|
|
|
void show_existing_automation (bool apply_to_selection = false);
|
|
|
|
void hide_all_automation (bool apply_to_selection = false);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2011-06-11 11:35:34 -04:00
|
|
|
void hide ();
|
|
|
|
|
2007-03-12 10:24:05 -04:00
|
|
|
void update_control_names ();
|
2005-09-25 14:42:24 -04:00
|
|
|
};
|
|
|
|
|
2006-07-31 23:23:35 -04:00
|
|
|
#endif /* __ardour_audio_time_axis_h__ */
|
2005-09-25 14:42:24 -04:00
|
|
|
|