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"
|
2006-07-31 23:23:35 -04:00
|
|
|
#include "route_time_axis.h"
|
2005-11-14 23:47:01 -05:00
|
|
|
#include "canvas.h"
|
2006-02-14 12:19:58 -05:00
|
|
|
#include "color.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&);
|
2007-05-17 06:41:14 -04:00
|
|
|
void set_layer_display (LayerDisplay d);
|
2005-09-25 14:42:24 -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 ();
|
|
|
|
|
2007-06-27 11:51:50 -04:00
|
|
|
void create_automation_child (ARDOUR::ParamID param);
|
|
|
|
|
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 ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void toggle_show_waveforms ();
|
|
|
|
void set_waveform_shape (WaveformShape);
|
|
|
|
void toggle_waveforms ();
|
2006-12-16 00:14:34 -05:00
|
|
|
void set_waveform_scale (WaveformScale);
|
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 ();
|
|
|
|
|
|
|
|
void update_pans ();
|
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;
|
2006-07-31 23:23:35 -04:00
|
|
|
Gtk::CheckMenuItem* gain_automation_item;
|
|
|
|
Gtk::CheckMenuItem* pan_automation_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
|
|
|
|