Make Bundles work a bit better. A few include optimisations.
[ardour.git] / gtk2_ardour / ardour_ui.h
1 /*
2     Copyright (C) 1999-2002 Paul Davis
3
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.
8
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.
13
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.
17
18 */
19
20 #ifndef __ardour_gui_h__
21 #define __ardour_gui_h__
22
23 /* need _BSD_SOURCE to get timersub macros */
24
25 #ifdef _BSD_SOURCE
26 #include <sys/time.h>
27 #else
28 #define _BSD_SOURCE
29 #include <sys/time.h>
30 #undef _BSD_SOURCE
31 #endif
32
33 #include <list>
34
35 #include <cmath>
36
37 #include <libgnomecanvasmm/canvas.h>
38
39 #include <pbd/xml++.h>
40 #include <pbd/controllable.h>
41 #include <gtkmm/box.h>
42 #include <gtkmm/frame.h>
43 #include <gtkmm/label.h>
44 #include <gtkmm/table.h>
45 #include <gtkmm/fixed.h>
46 #include <gtkmm/drawingarea.h>
47 #include <gtkmm/eventbox.h>
48 #include <gtkmm/menu.h>
49 #include <gtkmm/menuitem.h>
50 #include <gtkmm/button.h>
51 #include <gtkmm/togglebutton.h>
52 #include <gtkmm/treeview.h>
53 #include <gtkmm/menubar.h>
54 #include <gtkmm/textbuffer.h>
55 #include <gtkmm/adjustment.h>
56 #include <gtkmm2ext/gtk_ui.h>
57 #include <gtkmm2ext/click_box.h>
58 #include <gtkmm2ext/stateful_button.h>
59 #include <gtkmm2ext/bindable_button.h>
60 #include <ardour/ardour.h>
61 #include <ardour/session.h>
62 #include <ardour/configuration.h>
63 #include <ardour/types.h>
64
65 #include "audio_clock.h"
66 #include "ardour_dialog.h"
67 #include "editing.h"
68 #include "ui_config.h"
69
70 class AudioClock;
71 class PublicEditor;
72 class Keyboard;
73 class OptionEditor;
74 class KeyEditor;
75 class Mixer_UI;
76 class ConnectionEditor;
77 class RouteParams_UI;
78 class About;
79 class Splash;
80 class AddRouteDialog;
81 class NewSessionDialog;
82 class LocationUI;
83 class ThemeManager;
84 class BundleManager;
85
86 namespace Gtkmm2ext {
87         class TearOff;
88 }
89
90 namespace ARDOUR {
91         class AudioEngine;
92         class Route;
93         class Port;
94         class IO;
95         class ControlProtocolInfo;
96 }
97
98 namespace ALSA {
99         class MultiChannelDevice;
100 }
101
102 #define FRAME_NAME "BaseFrame"
103
104 extern sigc::signal<void>  ColorsChanged;
105 extern sigc::signal<void>  DPIReset;
106
107 class ARDOUR_UI : public Gtkmm2ext::UI
108 {
109   public:
110         ARDOUR_UI (int *argcp, char **argvp[]);
111         ~ARDOUR_UI();
112
113         void show ();
114         bool shown() { return shown_flag; }
115
116         void show_splash ();
117         void hide_splash ();
118
119         void show_about ();
120         void hide_about ();
121
122         void idle_load (const Glib::ustring& path);
123         void finish();
124
125         int load_session (const Glib::ustring& path, const Glib::ustring& snapshot, Glib::ustring mix_template = Glib::ustring());
126         bool session_loaded;
127         int build_session (const Glib::ustring& path, const Glib::ustring& snapshot,
128                            uint32_t ctl_chns,
129                            uint32_t master_chns,
130                            ARDOUR::AutoConnectOption input_connect,
131                            ARDOUR::AutoConnectOption output_connect,
132                            uint32_t nphysin,
133                            uint32_t nphysout,
134                            nframes_t initial_length);
135         bool session_is_new() const { return _session_is_new; }
136
137         ARDOUR::Session* the_session() { return session; }
138
139         bool will_create_new_session_automatically() const {
140                 return _will_create_new_session_automatically;
141         }
142
143         void set_will_create_new_session_automatically (bool yn) {
144                 _will_create_new_session_automatically = yn;
145         }
146
147         bool get_session_parameters (bool have_engine = false, bool should_be_new = false, bool offer_quit = false);
148         void parse_cmdline_path (const Glib::ustring& cmdline_path, Glib::ustring& session_name, Glib::ustring& session_path, bool& existing_session);
149         int  load_cmdline_session (const Glib::ustring& session_name, const Glib::ustring& session_path, bool& existing_session);
150         int  build_session_from_nsd (const Glib::ustring& session_name, const Glib::ustring& session_path);
151         bool ask_about_loading_existing_session (const Glib::ustring& session_path);
152
153         /// @return true if session was successfully unloaded.
154         int unload_session (bool hide_stuff = false);
155         void close_session();
156
157         int  save_state_canfail (string state_name = "");
158         void save_state (const string & state_name = "");
159
160         static double gain_to_slider_position (ARDOUR::gain_t g);
161         static ARDOUR::gain_t slider_position_to_gain (double pos);
162
163         static ARDOUR_UI *instance () { return theArdourUI; }
164         static UIConfiguration *config () { return ui_config; }
165
166         PublicEditor&     the_editor(){return *editor;}
167         Mixer_UI* the_mixer() { return mixer; }
168
169         ARDOUR::AudioEngine& the_engine() const { return *engine; }
170
171         void toggle_key_editor ();
172         void toggle_location_window ();
173         void toggle_theme_manager ();
174         void toggle_bundle_manager ();
175         void toggle_big_clock_window ();
176         void toggle_connection_editor ();
177         void toggle_route_params_window ();
178         void toggle_editing_space();
179
180         Gtk::Tooltips& tooltips() { return _tooltips; }
181
182         static sigc::signal<void,bool> Blink;
183         static sigc::signal<void>      RapidScreenUpdate;
184         static sigc::signal<void>      SuperRapidScreenUpdate;
185         static sigc::signal<void,nframes_t, bool, nframes_t> Clock;
186
187         void name_io_setup (ARDOUR::AudioEngine&, string&, ARDOUR::IO& io, bool in);
188
189         XMLNode* editor_settings() const;
190         XMLNode* mixer_settings () const;
191         XMLNode* keyboard_settings () const;
192
193         void save_ardour_state ();
194         gboolean configure_handler (GdkEventConfigure* conf);
195
196         void do_transport_locate (nframes_t position);
197         void halt_on_xrun_message ();
198         void xrun_handler (nframes_t);
199         void create_xrun_marker (nframes_t);
200
201         AudioClock primary_clock;
202         AudioClock secondary_clock;
203         AudioClock preroll_clock;
204         AudioClock postroll_clock;
205
206         void store_clock_modes ();
207         void restore_clock_modes ();
208
209         void add_route (Gtk::Window* float_window);
210
211         void session_add_audio_track (int input_channels, int32_t output_channels, ARDOUR::TrackMode mode, uint32_t how_many) {
212                 session_add_audio_route (true, input_channels, output_channels, mode, how_many);
213         }
214
215         void session_add_audio_bus (int input_channels, int32_t output_channels, uint32_t how_many) {
216                 session_add_audio_route (false, input_channels, output_channels, ARDOUR::Normal, how_many);
217         }
218
219         void session_add_midi_track (uint32_t how_many) {
220                 session_add_midi_route (true, how_many);
221         }
222
223         /*void session_add_midi_bus () {
224                 session_add_midi_route (false);
225         }*/
226
227         int  create_engine ();
228         void post_engine ();
229
230         gint exit_on_main_window_close (GdkEventAny *);
231
232         void maximise_editing_space ();
233         void restore_editing_space ();
234
235         void set_native_file_header_format (ARDOUR::HeaderFormat sf);
236         void set_native_file_data_format (ARDOUR::SampleFormat sf);
237
238         void setup_profile ();
239         void setup_theme ();
240
241         void set_shuttle_fract (double);
242
243   protected:
244         friend class PublicEditor;
245
246         void toggle_clocking ();
247         void toggle_auto_play ();
248         void toggle_auto_input ();
249         void toggle_punch ();
250         void unset_dual_punch ();
251         bool ignore_dual_punch;
252         void toggle_punch_in ();
253         void toggle_punch_out ();
254         void toggle_auto_return ();
255         void toggle_click ();
256
257         void toggle_session_auto_loop ();
258
259         void toggle_options_window ();
260
261   private:
262         struct GlobalClickBox : public Gtk::VBox {
263             Gtkmm2ext::ClickBox  *box;
264             Gtk::Frame      frame;
265             Gtk::Label      label;
266             vector<string> &strings;
267             Gtk::Adjustment adjustment;
268
269             static void printer (char buf[32], Gtk::Adjustment &adj, void *arg);
270
271             GlobalClickBox (const string &str, vector<string> &vs)
272                     : strings (vs),
273                       adjustment (0, 0, vs.size() - 1, 1, 1, 0) {
274                     box = new Gtkmm2ext::ClickBox (&adjustment, "ClickButton");
275                     label.set_text (str);
276                     label.set_name ("GlobalButtonLabel");
277                     frame.add (*box);
278                     frame.set_shadow_type (Gtk::SHADOW_IN);
279                     pack_start (label);
280                     pack_start (frame);
281                     box->set_print_func (printer, this);
282                     box->set_wrap (true);
283             };
284         };
285
286         ARDOUR::AudioEngine                 *engine;
287         ARDOUR::Session                     *session;
288
289         Gtk::Tooltips          _tooltips;
290
291         void                goto_editor_window ();
292         void                goto_mixer_window ();
293         void                toggle_editor_mixer_on_top ();
294         bool                _mixer_on_top;
295
296         Gtk::Table               adjuster_table;
297         Gtk::Frame               adjuster_frame;
298         Gtk::Fixed               adjuster_base;
299
300         GlobalClickBox     *online_control_button;
301         vector<string>      online_control_strings;
302
303         GlobalClickBox    *crossfade_time_button;
304         vector<string>     crossfade_time_strings;
305
306         Gtk::ToggleButton   preroll_button;
307         Gtk::ToggleButton   postroll_button;
308
309         int  setup_windows ();
310         void setup_transport ();
311         void setup_clock ();
312
313         static ARDOUR_UI *theArdourUI;
314
315         void backend_audio_error (bool we_set_params, Gtk::Window* toplevel = 0);
316         void startup ();
317         void shutdown ();
318
319         int  ask_about_saving_session (const string & why);
320
321         /* periodic safety backup, to be precise */
322         gint autosave_session();
323         void update_autosave();
324         sigc::connection _autosave_connection;
325
326         void queue_transport_change ();
327         void map_transport_state ();
328         int32_t do_engine_start ();
329
330         void engine_halted ();
331         void engine_stopped ();
332         void engine_running ();
333
334         void use_config ();
335
336         static gint _blink  (void *);
337         void blink ();
338         gint blink_timeout_tag;
339         bool blink_on;
340         void start_blinking ();
341         void stop_blinking ();
342
343         void about_signal_response(int response);
344
345   private:
346         Gtk::VBox     top_packer;
347
348         sigc::connection clock_signal_connection;
349         void         update_clocks ();
350         void         start_clocking ();
351         void         stop_clocking ();
352
353         void manage_window (Gtk::Window&);
354
355         AudioClock   big_clock;
356         Gtk::Window* big_clock_window;
357
358         void float_big_clock (Gtk::Window* parent);
359         bool main_window_state_event_handler (GdkEventWindowState*, bool window_was_editor);
360
361         void update_transport_clocks (nframes_t pos);
362         void record_state_changed ();
363
364         /* Transport Control */
365
366         void detach_tearoff (Gtk::Box* parent, Gtk::Widget* contents);
367         void reattach_tearoff (Gtk::Box* parent, Gtk::Widget* contents, int32_t order);
368
369         Gtkmm2ext::TearOff*      transport_tearoff;
370         Gtk::Frame               transport_frame;
371         Gtk::HBox                transport_tearoff_hbox;
372         Gtk::HBox                transport_hbox;
373         Gtk::Fixed               transport_base;
374         Gtk::Fixed               transport_button_base;
375         Gtk::Frame               transport_button_frame;
376         Gtk::HBox                transport_button_hbox;
377         Gtk::VBox                transport_button_vbox;
378         Gtk::HBox                transport_option_button_hbox;
379         Gtk::VBox                transport_option_button_vbox;
380         Gtk::HBox                transport_clock_hbox;
381         Gtk::VBox                transport_clock_vbox;
382         Gtk::HBox                primary_clock_hbox;
383         Gtk::HBox                secondary_clock_hbox;
384
385
386         struct TransportControllable : public PBD::Controllable {
387             enum ToggleType {
388                     Roll = 0,
389                     Stop,
390                     RecordEnable,
391                     GotoStart,
392                     GotoEnd,
393                     AutoLoop,
394                     PlaySelection,
395                     ShuttleControl
396
397             };
398
399             TransportControllable (std::string name, ARDOUR_UI&, ToggleType);
400             void set_value (float);
401             float get_value (void) const;
402
403             void set_id (const std::string&);
404
405             ARDOUR_UI& ui;
406             ToggleType type;
407         };
408
409         boost::shared_ptr<TransportControllable> roll_controllable;
410         boost::shared_ptr<TransportControllable> stop_controllable;
411         boost::shared_ptr<TransportControllable> goto_start_controllable;
412         boost::shared_ptr<TransportControllable> goto_end_controllable;
413         boost::shared_ptr<TransportControllable> auto_loop_controllable;
414         boost::shared_ptr<TransportControllable> play_selection_controllable;
415         boost::shared_ptr<TransportControllable> rec_controllable;
416         boost::shared_ptr<TransportControllable> shuttle_controllable;
417         BindingProxy shuttle_controller_binding_proxy;
418
419         void set_transport_controllable_state (const XMLNode&);
420         XMLNode& get_transport_controllable_state ();
421
422         BindableButton roll_button;
423         BindableButton stop_button;
424         BindableButton goto_start_button;
425         BindableButton goto_end_button;
426         BindableButton auto_loop_button;
427         BindableButton play_selection_button;
428         BindableButton rec_button;
429
430         Gtk::ComboBoxText sync_option_combo;
431
432         void sync_option_changed ();
433         void toggle_time_master ();
434         void toggle_video_sync ();
435
436         Gtk::DrawingArea  shuttle_box;
437         Gtk::EventBox     speed_display_box;
438         Gtk::Label        speed_display_label;
439         Gtk::Button       shuttle_units_button;
440         Gtk::ComboBoxText shuttle_style_button;
441         Gtk::Menu*        shuttle_unit_menu;
442         Gtk::Menu*        shuttle_style_menu;
443         float             shuttle_max_speed;
444         Gtk::Menu*        shuttle_context_menu;
445
446         void build_shuttle_context_menu ();
447         void show_shuttle_context_menu ();
448         void shuttle_style_changed();
449         void shuttle_unit_clicked ();
450         void set_shuttle_max_speed (float);
451         void update_speed_display ();
452         float last_speed_displayed;
453
454         gint shuttle_box_button_press (GdkEventButton*);
455         gint shuttle_box_button_release (GdkEventButton*);
456         gint shuttle_box_scroll (GdkEventScroll*);
457         gint shuttle_box_motion (GdkEventMotion*);
458         gint shuttle_box_expose (GdkEventExpose*);
459         gint mouse_shuttle (double x, bool force);
460         void use_shuttle_fract (bool force);
461
462         bool   shuttle_grabbed;
463         double shuttle_fract;
464
465         Gtkmm2ext::StatefulToggleButton punch_in_button;
466         Gtkmm2ext::StatefulToggleButton punch_out_button;
467         Gtkmm2ext::StatefulToggleButton auto_return_button;
468         Gtkmm2ext::StatefulToggleButton auto_play_button;
469         Gtkmm2ext::StatefulToggleButton auto_input_button;
470         Gtkmm2ext::StatefulToggleButton click_button;
471         Gtkmm2ext::StatefulToggleButton time_master_button;
472
473         Gtk::ToggleButton auditioning_alert_button;
474         Gtk::ToggleButton solo_alert_button;
475
476         Gtk::VBox alert_box;
477
478         void solo_blink (bool);
479         void audition_blink (bool);
480
481         void soloing_changed (bool);
482         void auditioning_changed (bool);
483         void _auditioning_changed (bool);
484
485         void solo_alert_toggle ();
486         void audition_alert_toggle ();
487
488         void big_clock_value_changed ();
489         void primary_clock_value_changed ();
490         void secondary_clock_value_changed ();
491
492         /* called by Blink signal */
493
494         void transport_rec_enable_blink (bool onoff);
495
496         Gtk::Menu*        session_popup_menu;
497
498         struct RecentSessionModelColumns : public Gtk::TreeModel::ColumnRecord {
499             RecentSessionModelColumns() {
500                     add (visible_name);
501                     add (fullpath);
502             }
503             Gtk::TreeModelColumn<Glib::ustring> visible_name;
504             Gtk::TreeModelColumn<Glib::ustring> fullpath;
505         };
506
507         RecentSessionModelColumns    recent_session_columns;
508         Gtk::TreeView                recent_session_display;
509         Glib::RefPtr<Gtk::TreeStore> recent_session_model;
510
511         ArdourDialog*     session_selector_window;
512         Gtk::FileChooserDialog* open_session_selector;
513
514         void build_session_selector();
515         void redisplay_recent_sessions();
516         void recent_session_row_activated (const Gtk::TreePath& path, Gtk::TreeViewColumn* col);
517
518         struct RecentSessionsSorter {
519             bool operator() (std::pair<string,string> a, std::pair<string,string> b) const {
520                     return cmp_nocase(a.first, b.first) == -1;
521             }
522         };
523
524         /* menu bar and associated stuff */
525
526         Gtk::MenuBar* menu_bar;
527         Gtk::EventBox menu_bar_base;
528         Gtk::HBox     menu_hbox;
529
530         void use_menubar_as_top_menubar ();
531         void build_menu_bar ();
532         void build_control_surface_menu ();
533
534         Gtk::Label   wall_clock_label;
535         Gtk::EventBox wall_clock_box;
536         gint update_wall_clock ();
537
538         Gtk::Label   disk_space_label;
539         Gtk::EventBox disk_space_box;
540         void update_disk_space ();
541
542         Gtk::Label   cpu_load_label;
543         Gtk::EventBox cpu_load_box;
544         void update_cpu_load ();
545
546         Gtk::Label   buffer_load_label;
547         Gtk::EventBox buffer_load_box;
548         void update_buffer_load ();
549
550         Gtk::Label   sample_rate_label;
551         Gtk::EventBox sample_rate_box;
552         void update_sample_rate (nframes_t);
553
554         gint every_second ();
555         gint every_point_one_seconds ();
556         gint every_point_zero_one_seconds ();
557
558         sigc::connection second_connection;
559         sigc::connection point_one_second_connection;
560         sigc::connection point_oh_five_second_connection;
561         sigc::connection point_zero_one_second_connection;
562
563         gint session_menu (GdkEventButton *);
564
565         bool _will_create_new_session_automatically;
566
567         NewSessionDialog* new_session_dialog;
568
569         void open_session ();
570         void open_recent_session ();
571         void save_template ();
572         
573         void edit_metadata ();
574         void import_metadata ();
575
576         void session_add_audio_route (bool disk, int32_t input_channels, int32_t output_channels, ARDOUR::TrackMode mode, uint32_t how_many);
577         void session_add_midi_route (bool disk, uint32_t how_many);
578
579         void set_transport_sensitivity (bool);
580
581         void remove_last_capture ();
582
583         void transport_goto_zero ();
584         void transport_goto_start ();
585         void transport_goto_end ();
586         void transport_goto_wallclock ();
587         void transport_stop ();
588         void transport_stop_and_forget_capture ();
589         void transport_record (bool roll);
590         void transport_roll ();
591         void transport_play_selection();
592         void transport_forward (int option);
593         void transport_rewind (int option);
594         void transport_loop ();
595
596         void transport_rolling ();
597         void transport_rewinding ();
598         void transport_forwarding ();
599         void transport_stopped ();
600
601         bool _session_is_new;
602         void connect_to_session (ARDOUR::Session *);
603         void connect_dependents_to_session (ARDOUR::Session *);
604         void we_have_dependents ();
605
606         void setup_session_options ();
607
608         guint32  last_key_press_time;
609
610         void snapshot_session ();
611
612         Mixer_UI   *mixer;
613         int         create_mixer ();
614
615         PublicEditor     *editor;
616         int         create_editor ();
617
618         RouteParams_UI *route_params;
619         int             create_route_params ();
620
621         BundleManager *bundle_manager;
622         void create_bundle_manager ();
623
624         ConnectionEditor *connection_editor;
625         int               create_connection_editor ();
626
627         LocationUI *location_ui;
628         int         create_location_ui ();
629         void        handle_locations_change (ARDOUR::Location*);
630
631         static UIConfiguration *ui_config;
632         ThemeManager *theme_manager;
633
634         /* Key bindings editor */
635
636         KeyEditor *key_editor;
637
638         /* Options window */
639
640         OptionEditor *option_editor;
641
642         /* route dialog */
643
644         AddRouteDialog *add_route_dialog;
645
646         /* Keyboard Handling */
647
648         Keyboard* keyboard;
649
650         /* Keymap handling */
651
652         void install_actions ();
653
654         void toggle_record_enable (uint32_t);
655
656         uint32_t rec_enabled_streams;
657         void count_recenabled_streams (ARDOUR::Route&);
658
659         About* about;
660         Splash* splash;
661         void pop_back_splash ();
662         bool shown_flag;
663
664         /* cleanup */
665
666         Gtk::MenuItem *cleanup_item;
667
668         void display_cleanup_results (ARDOUR::Session::cleanup_report& rep, const gchar* list_title, const string & msg);
669         void cleanup ();
670         void flush_trash ();
671
672         bool have_configure_timeout;
673         ARDOUR::microseconds_t last_configure_time;
674         gint configure_timeout ();
675
676         ARDOUR::microseconds_t last_peak_grab;
677         ARDOUR::microseconds_t last_shuttle_request;
678
679         bool have_disk_speed_dialog_displayed;
680         void disk_speed_dialog_gone (int ignored_response, Gtk::MessageDialog*);
681         void disk_overrun_handler ();
682         void disk_underrun_handler ();
683
684         void session_dialog (std::string);
685         int pending_state_dialog ();
686         int sr_mismatch_dialog (nframes_t, nframes_t);
687
688         void disconnect_from_jack ();
689         void reconnect_to_jack ();
690         void set_jack_buffer_size (nframes_t);
691
692         Gtk::MenuItem* jack_disconnect_item;
693         Gtk::MenuItem* jack_reconnect_item;
694         Gtk::Menu*     jack_bufsize_menu;
695
696         Glib::RefPtr<Gtk::ActionGroup> common_actions;
697
698         void editor_realized ();
699
700         std::vector<std::string> positional_sync_strings;
701
702         void toggle_send_midi_feedback ();
703         void toggle_use_mmc ();
704         void toggle_send_mmc ();
705         void toggle_send_mtc ();
706         void toggle_send_midi_clock ();
707
708         void toggle_use_osc ();
709
710         void toggle_denormal_protection ();
711
712         void set_input_auto_connect (ARDOUR::AutoConnectOption);
713         void set_output_auto_connect (ARDOUR::AutoConnectOption);
714         void set_solo_model (ARDOUR::SoloModel);
715         void set_monitor_model (ARDOUR::MonitorModel);
716         void set_remote_model (ARDOUR::RemoteModel);
717         void set_denormal_model (ARDOUR::DenormalModel);
718
719         void toggle_sync_order_keys ();
720         void toggle_new_plugins_active();
721         void toggle_StopPluginsWithTransport();
722         void toggle_DoNotRunPluginsWhileRecording();
723         void toggle_VerifyRemoveLastCapture();
724         void toggle_PeriodicSafetyBackups();
725         void toggle_StopRecordingOnXrun();
726         void toggle_CreateXrunMarker();
727         void toggle_StopTransportAtEndOfSession();
728         void toggle_GainReduceFastTransport();
729         void toggle_LatchedSolo();
730         void toggle_ShowSoloMutes();
731         void toggle_SoloMuteOverride();
732         void toggle_LatchedRecordEnable ();
733         void toggle_RegionEquivalentsOverlap ();
734         void toggle_PrimaryClockDeltaEditCursor ();
735         void toggle_SecondaryClockDeltaEditCursor ();
736         void toggle_ShowTrackMeters ();
737         void toggle_only_copy_imported_files ();
738         void toggle_use_narrow_ms();
739         void toggle_NameNewMarkers ();
740         void toggle_rubberbanding_snaps_to_grid ();
741         void toggle_auto_analyse_audio ();
742         void toggle_TapeMachineMode();
743
744         void mtc_port_changed ();
745         void map_solo_model ();
746         void map_monitor_model ();
747         void map_denormal_model ();
748         void map_denormal_protection ();
749         void map_remote_model ();
750         void map_file_header_format ();
751         void map_file_data_format ();
752         void map_input_auto_connect ();
753         void map_output_auto_connect ();
754         void map_only_copy_imported_files ();
755         void parameter_changed (const char*);
756
757         void set_meter_hold (ARDOUR::MeterHold);
758         void set_meter_falloff (ARDOUR::MeterFalloff);
759         void map_meter_hold ();
760         void map_meter_falloff ();
761
762         void toggle_control_protocol (ARDOUR::ControlProtocolInfo*);
763         void toggle_control_protocol_feedback (ARDOUR::ControlProtocolInfo*, const char* group_name, std::string action_name);
764
765         bool first_idle ();
766
767         void no_memory_warning ();
768         void check_memory_locking ();
769
770         bool check_audioengine();
771         void audioengine_setup ();
772
773         void display_message (const char *prefix, gint prefix_len,
774                               Glib::RefPtr<Gtk::TextBuffer::Tag> ptag, Glib::RefPtr<Gtk::TextBuffer::Tag> mtag, const char *msg);
775         Gtk::Label status_bar_label;
776         Gtk::ToggleButton error_log_button;
777
778         void loading_message (const std::string& msg);
779         void end_loading_messages ();
780
781         void platform_specific ();
782         void platform_setup ();
783         void fontconfig_dialog ();
784 };
785
786 #endif /* __ardour_gui_h__ */
787