2005-09-25 14:42:24 -04:00
|
|
|
/*
|
2009-10-14 12:10:01 -04:00
|
|
|
Copyright (C) 2000-2006 Paul Davis
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
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 16:33:00 -04:00
|
|
|
#include <gtkmm2ext/selector.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-11-14 23:47:01 -05:00
|
|
|
#include "canvas.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
|
|
|
{
|
|
|
|
public:
|
2009-12-17 13:24:23 -05:00
|
|
|
AudioTimeAxisView (PublicEditor&, ARDOUR::Session*, boost::shared_ptr<ARDOUR::Route>, ArdourCanvas::Canvas& canvas);
|
2005-09-25 14:42:24 -04:00
|
|
|
virtual ~AudioTimeAxisView ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
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);
|
|
|
|
void show_all_xfades ();
|
|
|
|
void hide_all_xfades ();
|
|
|
|
void hide_dependent_views (TimeAxisViewItem&);
|
|
|
|
void reveal_dependent_views (TimeAxisViewItem&);
|
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);
|
|
|
|
void hide ();
|
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 ();
|
|
|
|
|
2005-09-25 14:42:24 -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 ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2006-07-31 23:23:35 -04:00
|
|
|
void append_extra_display_menu_items ();
|
2007-07-06 23:19:04 -04:00
|
|
|
Gtk::Menu* build_mode_menu();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
void show_all_automation ();
|
|
|
|
void show_existing_automation ();
|
2006-07-31 23:23:35 -04:00
|
|
|
void hide_all_automation ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void gain_hidden ();
|
|
|
|
void pan_hidden ();
|
|
|
|
|
2008-12-19 13:08:35 -05:00
|
|
|
void ensure_pan_views (bool show = true);
|
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
|
|
|
|