2005-09-25 14:42:24 -04:00
|
|
|
/*
|
2006-07-31 23:23:35 -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>
|
|
|
|
|
|
|
|
#include <ardour/types.h>
|
|
|
|
|
|
|
|
#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;
|
2006-06-14 17:17:32 -04:00
|
|
|
class AudioDiskstream;
|
2005-09-25 14:42:24 -04:00
|
|
|
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:
|
2006-07-27 12:52:14 -04:00
|
|
|
AudioTimeAxisView (PublicEditor&, ARDOUR::Session&, boost::shared_ptr<ARDOUR::Route>, ArdourCanvas::Canvas& canvas);
|
2005-09-25 14:42:24 -04:00
|
|
|
virtual ~AudioTimeAxisView ();
|
2006-07-31 23:23:35 -04:00
|
|
|
|
|
|
|
AudioStreamView* audio_view();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void set_show_waveforms (bool yn);
|
|
|
|
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&);
|
|
|
|
|
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 ();
|
|
|
|
|
2008-09-29 18:47:40 -04:00
|
|
|
void create_automation_child (const Evoral::Parameter& param, bool show);
|
2007-06-27 11:51:50 -04:00
|
|
|
|
2008-03-17 16:54:03 -04:00
|
|
|
void first_idle ();
|
|
|
|
|
2008-09-10 11:03:30 -04:00
|
|
|
XMLNode* get_child_xml_node (const string & childname);
|
|
|
|
|
2008-03-17 16:54:03 -04:00
|
|
|
void set_waveform_shape (Editing::WaveformShape);
|
|
|
|
void set_waveform_scale (Editing::WaveformScale);
|
|
|
|
|
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;
|
|
|
|
|
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();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void toggle_show_waveforms ();
|
|
|
|
void toggle_waveforms ();
|
|
|
|
|
|
|
|
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
|
|
|
Gtk::CheckMenuItem* waveform_item;
|
|
|
|
Gtk::RadioMenuItem* traditional_item;
|
|
|
|
Gtk::RadioMenuItem* rectified_item;
|
2006-12-16 00:14:34 -05:00
|
|
|
Gtk::RadioMenuItem* linearscale_item;
|
|
|
|
Gtk::RadioMenuItem* logscale_item;
|
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
|
|
|
|