2 Copyright (C) 1999-2002 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_gui_h__
21 #define __ardour_gui_h__
25 /* need _BSD_SOURCE to get timersub macros */
39 #include "pbd/xml++.h"
40 #include <gtkmm/box.h>
41 #include <gtkmm/frame.h>
42 #include <gtkmm/label.h>
43 #include <gtkmm/table.h>
44 #include <gtkmm/fixed.h>
45 #include <gtkmm/drawingarea.h>
46 #include <gtkmm/eventbox.h>
47 #include <gtkmm/menu.h>
48 #include <gtkmm/menuitem.h>
49 #include <gtkmm/messagedialog.h>
50 #include <gtkmm/notebook.h>
51 #include <gtkmm/button.h>
52 #include <gtkmm/togglebutton.h>
53 #include <gtkmm/treeview.h>
54 #include <gtkmm/menubar.h>
55 #include <gtkmm/textbuffer.h>
56 #include <gtkmm/adjustment.h>
58 #include "gtkmm2ext/gtk_ui.h"
59 #include "gtkmm2ext/bindings.h"
60 #include "gtkmm2ext/visibility_tracker.h"
62 #include "ardour/ardour.h"
63 #include "ardour/types.h"
64 #include "ardour/utils.h"
65 #include "ardour/plugin.h"
66 #include "ardour/session_handle.h"
67 #include "ardour/system_exec.h"
69 #include "video_timeline.h"
71 #include "widgets/ardour_button.h"
72 #include "widgets/ardour_spacer.h"
74 #include "add_route_dialog.h"
75 #include "ardour_dialog.h"
76 #include "ardour_window.h"
77 #include "dsp_load_indicator.h"
78 #include "disk_space_indicator.h"
81 #include "mini_timeline.h"
82 #include "shuttle_control.h"
83 #include "transport_control.h"
84 #include "transport_control_ui.h"
85 #include "visibility_group.h"
86 #include "window_manager.h"
90 #include "add_video_dialog.h"
91 #include "big_clock_window.h"
92 #include "big_transport_window.h"
93 #include "bundle_manager.h"
94 #include "engine_dialog.h"
95 #include "export_video_dialog.h"
96 #include "global_port_matrix.h"
97 #include "idleometer.h"
98 #include "keyeditor.h"
99 #include "location_ui.h"
100 #include "lua_script_manager.h"
101 #include "rc_option_editor.h"
102 #include "route_dialogs.h"
103 #include "route_params_ui.h"
104 #include "session_option_editor.h"
105 #include "speaker_dialog.h"
108 class AddRouteDialog;
109 class AddVideoDialog;
110 class BigClockWindow;
111 class BigTransportWindow;
114 class ExportVideoDialog;
116 class LocationUIWindow;
117 class LuaScriptManager;
118 class RCOptionEditor;
119 class RouteParams_UI;
120 class SessionOptionEditor;
122 class GlobalPortMatrixWindow;
127 class ArdourKeyboard;
129 class ConnectionEditor;
130 class DuplicateRouteDialog;
135 class SaveTemplateDialog;
137 class SessionOptionEditorWindow;
144 class LevelMeterHBox;
145 class GUIObjectState;
148 class ControlProtocolInfo;
161 namespace ArdourWidgets {
166 class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr, public TransportControlProvider
169 ARDOUR_UI (int *argcp, char **argvp[], const char* localedir);
172 bool run_startup (bool should_be_new, std::string load_template);
178 void launch_manual ();
179 void launch_reference ();
180 void launch_tracker ();
181 void launch_subscribe ();
182 void launch_cheat_sheet ();
183 void launch_website ();
184 void launch_website_dev ();
185 void launch_forums ();
186 void launch_howto_report ();
190 void load_from_application_api (const std::string& path);
193 int load_session (const std::string& path, const std::string& snapshot, std::string mix_template = std::string());
195 bool session_load_in_progress;
196 int build_session (const std::string& path, const std::string& snapshot, ARDOUR::BusProfile*);
197 bool session_is_new() const { return _session_is_new; }
199 ARDOUR::Session* the_session() { return _session; }
201 bool get_smart_mode () const;
203 RCOptionEditor* get_rc_option_editor() { return rc_option_editor; }
204 void show_tabbable (ArdourWidgets::Tabbable*);
206 int get_session_parameters (bool quit_on_cancel, bool should_be_new = false, std::string load_template = "");
207 int build_session_from_dialog (SessionDialog&, const std::string& session_name, const std::string& session_path);
208 bool ask_about_loading_existing_session (const std::string& session_path);
210 /// @return true if session was successfully unloaded.
211 int unload_session (bool hide_stuff = false);
212 void close_session();
214 int save_state_canfail (std::string state_name = "", bool switch_to_it = false);
215 void save_state (const std::string & state_name = "", bool switch_to_it = false);
217 static ARDOUR_UI *instance () { return theArdourUI; }
219 /* signal emitted when escape key is pressed. All UI components that
220 need to respond to Escape in some way (e.g. break drag, clear
221 selection, etc) should connect to and handle this.
223 PBD::Signal0<void> Escape;
225 PublicEditor& the_editor() { return *editor;}
226 Mixer_UI* the_mixer() { return mixer; }
228 void new_midi_tracer_window ();
229 void toggle_editing_space();
230 void toggle_mixer_space();
231 void toggle_mixer_list();
232 void toggle_monitor_section_visibility ();
233 void toggle_keep_tearoffs();
235 void reset_focus (Gtk::Widget*);
237 static PublicEditor* _instance;
239 /** Emitted frequently with the audible sample, false, and the edit point as
240 * parameters respectively.
242 * (either RapidScreenUpdate || SuperRapidScreenUpdate - user-config)
244 static sigc::signal<void, samplepos_t> Clock;
246 static void close_all_dialogs () { CloseAllDialogs(); }
247 static sigc::signal<void> CloseAllDialogs;
249 XMLNode* main_window_settings() const;
250 XMLNode* editor_settings() const;
251 XMLNode* preferences_settings() const;
252 XMLNode* mixer_settings () const;
253 XMLNode* keyboard_settings () const;
254 XMLNode* tearoff_settings (const char*) const;
256 void save_ardour_state ();
257 gboolean configure_handler (GdkEventConfigure* conf);
259 void halt_on_xrun_message ();
260 void xrun_handler (samplepos_t);
261 void create_xrun_marker (samplepos_t);
263 GUIObjectState* gui_object_state;
265 MainClock* primary_clock;
266 MainClock* secondary_clock;
267 void focus_on_clock ();
268 AudioClock* big_clock;
270 VideoTimeLine *video_timeline;
272 void store_clock_modes ();
273 void restore_clock_modes ();
274 void reset_main_clocks ();
276 void synchronize_sync_source_and_video_pullup ();
279 void add_route_dialog_response (int);
281 void add_routes_part_two ();
282 void add_routes_thread ();
284 void start_duplicate_routes ();
286 void add_video (Gtk::Window* float_window);
287 void remove_video ();
288 void start_video_server_menu (Gtk::Window* float_window);
289 bool start_video_server (Gtk::Window* float_window, bool popup_msg);
290 void stop_video_server (bool ask_confirm=false);
291 void flush_videotimeline_cache (bool localcacheonly=false);
292 void export_video (bool range = false);
294 void session_add_audio_route (bool, int32_t, int32_t, ARDOUR::TrackMode, ARDOUR::RouteGroup *, uint32_t, std::string const &, bool, ARDOUR::PresentationInfo::order_t order);
296 void session_add_mixed_track (const ARDOUR::ChanCount&, const ARDOUR::ChanCount&, ARDOUR::RouteGroup*,
297 uint32_t, std::string const &, bool strict_io,
298 ARDOUR::PluginInfoPtr, ARDOUR::Plugin::PresetRecord* pset,
299 ARDOUR::PresentationInfo::order_t order);
301 void session_add_midi_bus (ARDOUR::RouteGroup*, uint32_t, std::string const &, bool strict_io,
302 ARDOUR::PluginInfoPtr, ARDOUR::Plugin::PresetRecord* pset,
303 ARDOUR::PresentationInfo::order_t order);
305 void session_add_midi_route (bool, ARDOUR::RouteGroup *, uint32_t, std::string const &, bool,
306 ARDOUR::PluginInfoPtr, ARDOUR::Plugin::PresetRecord*,
307 ARDOUR::PresentationInfo::order_t order);
309 void display_insufficient_ports_message ();
311 void attach_to_engine ();
314 gint exit_on_main_window_close (GdkEventAny *);
316 void maximise_editing_space ();
317 void restore_editing_space ();
319 void show_ui_prefs ();
321 bool check_audioengine(Gtk::Window&);
323 void setup_profile ();
324 void setup_tooltips ();
326 void set_shuttle_fract (double);
328 void get_process_buffers ();
329 void drop_process_buffers ();
331 void reset_peak_display ();
332 void reset_route_peak_display (ARDOUR::Route*);
333 void reset_group_peak_display (ARDOUR::RouteGroup*);
335 const std::string& announce_string() const { return _announce_string; }
337 void hide_application ();
339 Gtk::Notebook& tabs();
340 Gtk::Window& main_window () { return _main_window; }
342 void setup_toplevel_window (Gtk::Window&, const std::string& name, void* owner);
344 /* called from a static C function */
346 GtkNotebook* tab_window_root_drop (GtkNotebook* src,
352 bool tabbed_window_state_event_handler (GdkEventWindowState*, void* object);
353 bool key_event_handler (GdkEventKey*, Gtk::Window* window);
355 Gtkmm2ext::ActionMap global_actions;
357 ARDOUR::PresentationInfo::order_t translate_order (RouteDialogs::InsertAt);
359 std::map<std::string, std::string> route_setup_info (const std::string& script_path);
362 friend class PublicEditor;
364 void toggle_auto_play ();
365 void toggle_auto_input ();
366 void toggle_punch ();
367 void unset_dual_punch ();
368 bool ignore_dual_punch;
369 void toggle_punch_in ();
370 void toggle_punch_out ();
371 void toggle_session_monitoring_in ();
372 void toggle_session_monitoring_disk ();
373 void show_loop_punch_ruler_and_disallow_hide ();
374 void reenable_hide_loop_punch_ruler_if_appropriate ();
375 void toggle_auto_return ();
376 void toggle_click ();
377 void toggle_audio_midi_setup ();
378 void toggle_session_auto_loop ();
379 void toggle_rc_options_window ();
380 void toggle_session_options_window ();
384 Gtk::Window _main_window;
385 Gtkmm2ext::VisibilityTracker* main_window_visibility;
386 Gtk::VBox main_vpacker;
387 Gtk::HBox status_bar_hpacker;
389 PublicEditor* editor;
391 Gtk::Tooltips _tooltips;
395 bool _initial_verbose_plugin_scan;
396 bool first_time_engine_run;
398 void hide_tabbable (ArdourWidgets::Tabbable*);
399 void detach_tabbable (ArdourWidgets::Tabbable*);
400 void attach_tabbable (ArdourWidgets::Tabbable*);
401 void button_change_tabbable_visibility (ArdourWidgets::Tabbable*);
402 void key_change_tabbable_visibility (ArdourWidgets::Tabbable*);
403 void toggle_editor_and_mixer ();
405 void tabbable_state_change (ArdourWidgets::Tabbable&);
407 void toggle_meterbridge ();
408 void toggle_luawindow ();
410 int setup_windows ();
411 void setup_transport ();
414 static ARDOUR_UI *theArdourUI;
415 SessionDialog *_session_dialog;
419 int ask_about_saving_session (const std::vector<std::string>& actions);
421 void save_session_at_its_request (std::string);
422 /* periodic safety backup, to be precise */
423 gint autosave_session();
424 void update_autosave();
425 sigc::connection _autosave_connection;
427 void session_dirty_changed ();
428 void update_title ();
430 void map_transport_state ();
431 int32_t do_engine_start ();
433 void engine_halted (const char* reason, bool free_reason);
434 void engine_stopped ();
435 void engine_running ();
439 void about_signal_response(int response);
441 Gtk::VBox top_packer;
443 sigc::connection clock_signal_connection;
444 void update_clocks ();
445 void start_clocking ();
446 void stop_clocking ();
448 void update_transport_clocks (samplepos_t pos);
449 void record_state_changed ();
451 std::list<MidiTracer*> _midi_tracer_windows;
453 /* Transport Control */
455 Gtk::Table transport_table;
456 Gtk::Frame transport_frame;
457 Gtk::HBox transport_hbox;
459 ArdourWidgets::ArdourVSpacer* secondary_clock_spacer;
460 void repack_transport_hbox ();
461 void update_clock_visibility ();
462 void toggle_follow_edits ();
464 void set_transport_controllable_state (const XMLNode&);
465 XMLNode& get_transport_controllable_state ();
467 TransportControlUI transport_ctrl;
469 ArdourWidgets::ArdourButton punch_in_button;
470 ArdourWidgets::ArdourButton punch_out_button;
471 ArdourWidgets::ArdourButton layered_button;
473 ArdourWidgets::ArdourVSpacer recpunch_spacer;
474 ArdourWidgets::ArdourVSpacer monitoring_spacer;
476 ArdourWidgets::ArdourButton monitor_in_button;
477 ArdourWidgets::ArdourButton monitor_disk_button;
478 ArdourWidgets::ArdourButton auto_input_button;
480 Gtk::Label punch_label;
481 Gtk::Label layered_label;
483 Gtk::Label punch_space;
484 Gtk::Label mon_space;
486 void toggle_external_sync ();
487 void toggle_time_master ();
488 void toggle_video_sync ();
490 ShuttleControl shuttle_box;
491 MiniTimeline mini_timeline;
492 TimeInfoBox* time_info_box;
493 DspLoadIndicator dsp_load_indicator;
494 DiskSpaceIndicator disk_space_indicator;
496 ArdourWidgets::ArdourVSpacer status_spacer;
498 ArdourWidgets::ArdourButton auto_return_button;
499 ArdourWidgets::ArdourButton follow_edits_button;
500 ArdourWidgets::ArdourButton sync_button;
502 ArdourWidgets::ArdourButton auditioning_alert_button;
503 ArdourWidgets::ArdourButton solo_alert_button;
504 ArdourWidgets::ArdourButton feedback_alert_button;
505 ArdourWidgets::ArdourButton error_alert_button;
507 ArdourWidgets::ArdourButton action_script_call_btn[10];
508 Gtk::Table action_script_table;
512 ArdourWidgets::ArdourButton editor_meter_peak_display;
513 LevelMeterHBox * editor_meter;
514 float editor_meter_max_peak;
515 bool editor_meter_peak_button_release (GdkEventButton*);
517 bool editor_meter_button_press (GdkEventButton* ev);
518 void popup_editor_meter_menu (GdkEventButton* ev);
519 void add_editor_meter_type_item (Gtk::Menu_Helpers::MenuList&, Gtk::RadioMenuItem::Group&, std::string const &, ARDOUR::MeterType);
520 bool _suspend_editor_meter_callbacks;
522 void blink_handler (bool);
523 sigc::connection blink_connection;
526 void solo_blink (bool);
527 void sync_blink (bool);
528 void audition_blink (bool);
529 void feedback_blink (bool);
530 void error_blink (bool);
532 void set_flat_buttons();
534 void soloing_changed (bool);
535 void auditioning_changed (bool);
536 void _auditioning_changed (bool);
538 bool solo_alert_press (GdkEventButton* ev);
539 void audition_alert_clicked ();
540 bool error_alert_press (GdkEventButton *);
542 void layered_button_clicked ();
544 void big_clock_value_changed ();
545 void primary_clock_value_changed ();
546 void secondary_clock_value_changed ();
548 /* called by Blink signal */
550 void transport_rec_enable_blink (bool onoff);
552 Gtk::Menu* session_popup_menu;
554 /* menu bar and associated stuff */
556 Gtk::MenuBar* menu_bar;
557 Gtk::EventBox menu_bar_base;
560 void use_menubar_as_top_menubar ();
561 void build_menu_bar ();
563 Gtk::Label wall_clock_label;
564 gint update_wall_clock ();
566 Gtk::Label disk_space_label;
567 void update_disk_space ();
569 Gtk::Label timecode_format_label;
570 void update_timecode_format ();
572 Gtk::Label cpu_load_label;
573 void update_cpu_load ();
575 Gtk::Label xrun_label;
576 void update_xrun_count ();
578 Gtk::Label peak_thread_work_label;
579 void update_peak_thread_work ();
581 Gtk::Label buffer_load_label;
582 void update_buffer_load ();
584 Gtk::Label sample_rate_label;
585 void update_sample_rate (ARDOUR::samplecnt_t);
587 Gtk::Label format_label;
588 void update_format ();
590 void every_second ();
591 void every_point_one_seconds ();
592 void every_point_zero_something_seconds ();
594 sigc::connection second_connection;
595 sigc::connection point_one_second_connection;
596 sigc::connection point_zero_something_second_connection;
597 sigc::connection fps_connection;
599 void set_fps_timeout_connection ();
601 void open_session ();
602 void open_recent_session ();
603 void save_template_dialog_response (int response, SaveTemplateDialog* d);
604 void save_template ();
605 void manage_templates ();
607 void meta_session_setup (const std::string& script_path);
608 void meta_route_setup (const std::string& script_path);
610 void edit_metadata ();
611 void import_metadata ();
613 void set_transport_sensitivity (bool);
615 //stuff for ProTools-style numpad
616 void transport_numpad_event (int num);
617 void transport_numpad_decimal ();
618 bool _numpad_locate_happening;
619 int _pending_locate_num;
620 gint transport_numpad_timeout ();
621 sigc::connection _numpad_timeout_connection;
623 void transport_goto_nth_marker (int nth);
624 void transport_goto_zero ();
625 void transport_goto_start ();
626 void transport_goto_end ();
627 void transport_goto_wallclock ();
628 void transport_stop ();
629 void transport_record (bool roll);
630 void transport_roll ();
631 void transport_play_selection();
632 void transport_play_preroll();
633 void transport_rec_preroll();
634 void transport_rec_count_in();
635 void transport_forward (int option);
636 void transport_rewind (int option);
637 void transport_loop ();
638 void toggle_roll (bool with_abort, bool roll_out_of_bounded_mode);
639 bool trx_record_enable_all_tracks ();
641 bool _session_is_new;
642 void set_session (ARDOUR::Session *);
643 void connect_dependents_to_session (ARDOUR::Session *);
644 void we_have_dependents ();
646 void setup_session_options ();
648 guint32 last_key_press_time;
650 bool process_snapshot_session_prompter (ArdourWidgets::Prompter& prompter, bool switch_to_it);
651 void snapshot_session (bool switch_to_it);
653 void quick_snapshot_session (bool switch_to_it); //does not promtp for name, just makes a timestamped file
655 SaveAsDialog* save_as_dialog;
657 bool save_as_progress_update (float fraction, int64_t cnt, int64_t total, Gtk::Label* label, Gtk::ProgressBar* bar);
658 void save_session_as ();
659 void archive_session ();
660 void rename_session ();
663 int create_editor ();
664 int create_meterbridge ();
665 int create_luawindow ();
666 int create_masters ();
668 Meterbridge *meterbridge;
669 LuaWindow *luawindow;
671 /* Dialogs that can be created via new<T> */
673 RCOptionEditor* rc_option_editor;
674 Gtk::HBox rc_option_editor_placeholder;
676 WM::Proxy<SpeakerDialog> speaker_config_window;
677 WM::Proxy<AddRouteDialog> add_route_dialog;
678 WM::Proxy<About> about;
679 WM::Proxy<LocationUIWindow> location_ui;
680 WM::Proxy<RouteParams_UI> route_params;
681 WM::Proxy<EngineControl> audio_midi_setup;
682 WM::Proxy<ExportVideoDialog> export_video_dialog;
683 WM::Proxy<LuaScriptManager> lua_script_window;
684 WM::Proxy<IdleOMeter> idleometer;
686 /* Windows/Dialogs that require a creator method */
688 WM::ProxyWithConstructor<SessionOptionEditor> session_option_editor;
689 WM::ProxyWithConstructor<AddVideoDialog> add_video_dialog;
690 WM::ProxyWithConstructor<BundleManager> bundle_manager;
691 WM::ProxyWithConstructor<BigClockWindow> big_clock_window;
692 WM::ProxyWithConstructor<BigTransportWindow> big_transport_window;
693 WM::ProxyWithConstructor<GlobalPortMatrixWindow> audio_port_matrix;
694 WM::ProxyWithConstructor<GlobalPortMatrixWindow> midi_port_matrix;
695 WM::ProxyWithConstructor<KeyEditor> key_editor;
697 /* creator methods */
699 SessionOptionEditor* create_session_option_editor ();
700 BundleManager* create_bundle_manager ();
701 AddVideoDialog* create_add_video_dialog ();
702 BigClockWindow* create_big_clock_window();
703 BigTransportWindow* create_big_transport_window();
704 GlobalPortMatrixWindow* create_global_port_matrix (ARDOUR::DataType);
705 KeyEditor* create_key_editor ();
707 ARDOUR::SystemExec *video_server_process;
709 void handle_locations_change (ARDOUR::Location*);
711 /* Keyboard Handling */
713 ArdourKeyboard* keyboard;
715 /* Keymap handling */
717 void install_actions ();
719 void toggle_record_enable (uint16_t);
721 uint32_t rec_enabled_streams;
722 void count_recenabled_streams (ARDOUR::Route&);
726 void pop_back_splash (Gtk::Window&);
730 Gtk::MenuItem *cleanup_item;
732 void display_cleanup_results (ARDOUR::CleanupReport& rep, const gchar* list_title, const bool msg_delete);
734 void cleanup_peakfiles ();
737 bool have_configure_timeout;
738 ARDOUR::microseconds_t last_configure_time;
739 gint configure_timeout ();
741 ARDOUR::microseconds_t last_peak_grab;
742 ARDOUR::microseconds_t last_shuttle_request;
744 bool have_disk_speed_dialog_displayed;
745 void disk_speed_dialog_gone (int ignored_response, Gtk::MessageDialog*);
746 void disk_overrun_handler ();
747 void disk_underrun_handler ();
748 void gui_idle_handler ();
750 void cancel_plugin_scan ();
751 void cancel_plugin_timeout ();
752 void plugin_scan_dialog (std::string type, std::string plugin, bool);
753 void plugin_scan_timeout (int);
755 void session_format_mismatch (std::string, std::string);
757 void session_dialog (std::string);
758 int pending_state_dialog ();
759 int sr_mismatch_dialog (ARDOUR::samplecnt_t, ARDOUR::samplecnt_t);
760 void sr_mismatch_message (ARDOUR::samplecnt_t, ARDOUR::samplecnt_t);
762 Gtk::MenuItem* jack_disconnect_item;
763 Gtk::MenuItem* jack_reconnect_item;
764 Gtk::Menu* jack_bufsize_menu;
766 Glib::RefPtr<Gtk::ActionGroup> common_actions;
768 void editor_realized ();
770 std::vector<std::string> positional_sync_strings;
772 void toggle_use_mmc ();
773 void toggle_send_mmc ();
774 void toggle_send_mtc ();
775 void toggle_send_midi_clock ();
777 void toggle_use_osc ();
779 void parameter_changed (std::string);
780 void session_parameter_changed (std::string);
784 void check_memory_locking ();
786 void audioengine_setup ();
788 void display_message (const char *prefix, gint prefix_len,
789 Glib::RefPtr<Gtk::TextBuffer::Tag> ptag, Glib::RefPtr<Gtk::TextBuffer::Tag> mtag,
791 Gtk::Label status_bar_label;
792 bool status_bar_button_press (GdkEventButton*);
794 void loading_message (const std::string& msg);
796 PBD::ScopedConnectionList forever_connections;
797 PBD::ScopedConnection halt_connection;
798 PBD::ScopedConnection editor_meter_connection;
800 /* these are used only in response to a platform-specific "ShouldQuit" signal */
802 void queue_finish ();
803 void fontconfig_dialog ();
805 int missing_file (ARDOUR::Session*s, std::string str, ARDOUR::DataType type);
806 int ambiguous_file (std::string file, std::vector<std::string> hits);
808 bool click_button_clicked (GdkEventButton *);
809 bool sync_button_clicked (GdkEventButton *);
811 VisibilityGroup _status_bar_visibility;
813 /** A ProcessThread so that we have some thread-local buffers for use by
814 * PluginEqGui::impulse_analysis ().
816 ARDOUR::ProcessThread* _process_thread;
818 void feedback_detected ();
820 ArdourWidgets::ArdourButton midi_panic_button;
823 void successful_graph_sort ();
824 bool _feedback_exists;
826 enum ArdourLogLevel {
833 ArdourLogLevel _log_not_acknowledged;
835 void resize_text_widgets ();
837 bool xrun_button_release (GdkEventButton* ev);
839 std::string _announce_string;
840 void check_announcements ();
842 int do_audio_midi_setup (uint32_t);
843 void audioengine_became_silent ();
845 DuplicateRouteDialog* duplicate_routes_dialog;
847 void grab_focus_after_dialog ();
849 void tabs_switch (GtkNotebookPage*, guint page_number);
850 void tabs_page_added (Gtk::Widget*, guint);
851 void tabs_page_removed (Gtk::Widget*, guint);
852 ArdourWidgets::ArdourButton editor_visibility_button;
853 ArdourWidgets::ArdourButton mixer_visibility_button;
854 ArdourWidgets::ArdourButton prefs_visibility_button;
856 bool key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey* ev, Gtkmm2ext::Bindings*);
857 bool try_gtk_accel_binding (GtkWindow* win, GdkEventKey* ev, bool translate, GdkModifierType modifier);
859 bool main_window_delete_event (GdkEventAny*);
860 bool idle_ask_about_quit ();
862 void load_bindings ();
863 bool tabbable_visibility_button_press (GdkEventButton* ev, std::string const& tabbable_name);
865 void step_up_through_tabs ();
866 void step_down_through_tabs ();
869 void close_current_dialog ();
870 void pre_release_dialog ();
872 bool bind_lua_action_script (GdkEventButton*, int);
873 void update_action_script_btn (int i, const std::string&);
876 #endif /* __ardour_gui_h__ */