2 Copyright (C) 2000-2006 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __ardour_audio_time_axis_h__
21 #define __ardour_audio_time_axis_h__
23 #include <gtkmm/table.h>
24 #include <gtkmm/button.h>
25 #include <gtkmm/box.h>
26 #include <gtkmm/menu.h>
27 #include <gtkmm/menuitem.h>
28 #include <gtkmm/radiomenuitem.h>
29 #include <gtkmm/checkmenuitem.h>
31 #include <gtkmm2ext/selector.h>
34 #include <ardour/types.h>
36 #include "ardour_dialog.h"
39 #include "route_time_axis.h"
44 class AudioDiskstream;
54 class AudioStreamView;
58 class AudioRegionView;
60 class AutomationGainLine;
61 class AutomationPanLine;
63 class AutomationTimeAxisView;
65 class AudioTimeAxisView : public RouteTimeAxisView
68 AudioTimeAxisView (PublicEditor&, ARDOUR::Session&, boost::shared_ptr<ARDOUR::Route>, ArdourCanvas::Canvas& canvas);
69 virtual ~AudioTimeAxisView ();
71 AudioStreamView* audio_view();
73 void set_show_waveforms (bool yn);
74 void set_show_waveforms_recording (bool yn);
75 void show_all_xfades ();
76 void hide_all_xfades ();
77 void hide_dependent_views (TimeAxisViewItem&);
78 void reveal_dependent_views (TimeAxisViewItem&);
80 /* Overridden from parent to store display state */
81 guint32 show_at (double y, int& nth, Gtk::VBox *parent);
84 void create_automation_child (ARDOUR::Parameter param, bool show);
87 friend class AudioStreamView;
88 friend class AudioRegionView;
90 void route_active_changed ();
92 void append_extra_display_menu_items ();
93 Gtk::Menu* build_mode_menu();
95 void toggle_show_waveforms ();
96 void set_waveform_shape (WaveformShape);
97 void toggle_waveforms ();
98 void set_waveform_scale (WaveformScale);
100 void show_all_automation ();
101 void show_existing_automation ();
102 void hide_all_automation ();
107 void update_pans (bool show=true);
108 void update_control_names ();
110 Gtk::CheckMenuItem* waveform_item;
111 Gtk::RadioMenuItem* traditional_item;
112 Gtk::RadioMenuItem* rectified_item;
113 Gtk::RadioMenuItem* linearscale_item;
114 Gtk::RadioMenuItem* logscale_item;
117 #endif /* __ardour_audio_time_axis_h__ */