Merge branch 'master' into cairocanvas
[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 #include <time.h>
24
25 /* need _BSD_SOURCE to get timersub macros */
26
27 #ifdef _BSD_SOURCE
28 #include <sys/time.h>
29 #else
30 #define _BSD_SOURCE
31 #include <sys/time.h>
32 #undef _BSD_SOURCE
33 #endif
34
35 #include <list>
36 #include <cmath>
37
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
61 #include "ardour/ardour.h"
62 #include "ardour/types.h"
63 #include "ardour/utils.h"
64 #include "ardour/plugin.h"
65 #include "ardour/session_handle.h"
66
67 #include "video_timeline.h"
68
69 #include "ardour_button.h"
70 #include "ardour_dialog.h"
71 #include "ardour_window.h"
72 #include "editing.h"
73 #include "meterbridge.h"
74 #include "nsm.h"
75 #include "ui_config.h"
76 #include "enums.h"
77 #include "visibility_group.h"
78 #include "window_manager.h"
79
80 class About;
81 class AddRouteDialog;
82 class AddVideoDialog;
83 class VideoTimeLine;
84 class SystemExec;
85 class ArdourStartup;
86 class ArdourKeyboard;
87 class AudioClock;
88 class BigClockWindow;
89 class BundleManager;
90 class ButtonJoiner;
91 class ConnectionEditor;
92 class EngineControl;
93 class KeyEditor;
94 class LocationUIWindow;
95 class MainClock;
96 class Mixer_UI;
97 class PublicEditor;
98 class RCOptionEditor;
99 class RouteParams_UI;
100 class SessionOptionEditor;
101 class ShuttleControl;
102 class Splash;
103 class SpeakerDialog;
104 class ThemeManager;
105 class TimeInfoBox;
106 class MidiTracer;
107 class LevelMeterHBox;
108 class GlobalPortMatrixWindow;
109 class GUIObjectState;
110
111 namespace Gtkmm2ext {
112         class TearOff;
113 }
114
115 namespace ARDOUR {
116         class ControlProtocolInfo;
117         class IO;
118         class Port;
119         class Route;
120         class RouteGroup;
121         class Location;
122         class ProcessThread;
123 }
124
125 class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
126 {
127   public:
128         ARDOUR_UI (int *argcp, char **argvp[], const char* localedir);
129         ~ARDOUR_UI();
130
131         bool run_startup (bool should_be_new, std::string load_template);
132
133         void show_splash ();
134         void hide_splash ();
135
136         void launch_chat ();
137         void launch_manual ();
138         void launch_reference ();
139         void show_about ();
140         void hide_about ();
141
142         void idle_load (const std::string& path);
143         void finish();
144
145         int load_session (const std::string& path, const std::string& snapshot, std::string mix_template = std::string());
146         bool session_loaded;
147         int build_session (const std::string& path, const std::string& snapshot, ARDOUR::BusProfile&);
148         bool session_is_new() const { return _session_is_new; }
149
150         ARDOUR::Session* the_session() { return _session; }
151
152         bool get_smart_mode () const;
153         
154         int get_session_parameters (bool quit_on_cancel, bool should_be_new = false, std::string load_template = "");
155         int  build_session_from_nsd (const std::string& session_name, const std::string& session_path);
156         bool ask_about_loading_existing_session (const std::string& session_path);
157
158         /// @return true if session was successfully unloaded.
159         int unload_session (bool hide_stuff = false);
160         void close_session();
161
162         int  save_state_canfail (std::string state_name = "", bool switch_to_it = false);
163         void save_state (const std::string & state_name = "", bool switch_to_it = false);
164
165         static ARDOUR_UI *instance () { return theArdourUI; }
166         static UIConfiguration *config () { return ui_config; }
167
168         PublicEditor&     the_editor(){return *editor;}
169         Mixer_UI* the_mixer() { return mixer; }
170
171         void new_midi_tracer_window ();
172         void toggle_editing_space();
173         void toggle_keep_tearoffs();
174
175         Gtk::Tooltips& tooltips() { return _tooltips; }
176
177         Gtk::HBox& editor_transport_box() { return _editor_transport_box; }
178
179         static PublicEditor* _instance;
180         static sigc::signal<void,bool> Blink;
181
182         /** point_zero_one_seconds -- 10Hz ^= 100ms */
183         static sigc::signal<void>      RapidScreenUpdate;
184
185         /** point_zero_something_seconds -- currently 25Hz ^= 40ms */
186         static sigc::signal<void>      SuperRapidScreenUpdate;
187
188         /** Emitted frequently with the audible frame, false, and the edit point as
189          *  parameters respectively.
190          *
191          *  (either RapidScreenUpdate || SuperRapidScreenUpdate - user-config)
192          */
193         static sigc::signal<void, framepos_t, bool, framepos_t> Clock;
194
195         static void close_all_dialogs () { CloseAllDialogs(); }
196         static sigc::signal<void> CloseAllDialogs;
197
198         XMLNode* editor_settings() const;
199         XMLNode* mixer_settings () const;
200         XMLNode* keyboard_settings () const;
201         XMLNode* tearoff_settings (const char*) const;
202
203         void save_ardour_state ();
204         gboolean configure_handler (GdkEventConfigure* conf);
205
206         void halt_on_xrun_message ();
207         void xrun_handler (framepos_t);
208         void create_xrun_marker (framepos_t);
209
210         GUIObjectState* gui_object_state;
211
212         MainClock* primary_clock;
213         MainClock* secondary_clock;
214         void focus_on_clock ();
215         AudioClock*   big_clock;
216
217         TimeInfoBox* time_info_box;
218
219         VideoTimeLine *video_timeline;
220
221         void store_clock_modes ();
222         void restore_clock_modes ();
223         void reset_main_clocks ();
224
225         void synchronize_sync_source_and_video_pullup ();
226
227         void add_route (Gtk::Window* float_window);
228         void add_routes_part_two ();
229         void add_routes_thread ();
230
231         void add_video (Gtk::Window* float_window);
232         void remove_video ();
233         void start_video_server_menu (Gtk::Window* float_window);
234         bool start_video_server (Gtk::Window* float_window, bool popup_msg);
235         void stop_video_server (bool ask_confirm=false);
236         void flush_videotimeline_cache (bool localcacheonly=false);
237
238         void session_add_audio_track (
239                 int input_channels,
240                 int32_t output_channels,
241                 ARDOUR::TrackMode mode,
242                 ARDOUR::RouteGroup* route_group,
243                 uint32_t how_many,
244                 std::string const & name_template
245                 ) {
246
247                 session_add_audio_route (true, input_channels, output_channels, mode, route_group, how_many, name_template);
248         }
249
250         void session_add_audio_bus (int input_channels, int32_t output_channels, ARDOUR::RouteGroup* route_group,
251                                     uint32_t how_many, std::string const & name_template) {
252                 session_add_audio_route (false, input_channels, output_channels, ARDOUR::Normal, route_group, how_many, name_template);
253         }
254
255         void session_add_midi_track (ARDOUR::RouteGroup* route_group, uint32_t how_many, std::string const & name_template,
256                                      ARDOUR::PluginInfoPtr instrument) {
257                 session_add_midi_route (true, route_group, how_many, name_template, instrument);
258         }
259
260         void session_add_mixed_track (const ARDOUR::ChanCount& input, const ARDOUR::ChanCount& output, ARDOUR::RouteGroup* route_group, uint32_t how_many, std::string const & name_template,
261                                       ARDOUR::PluginInfoPtr instrument);
262
263         /*void session_add_midi_bus () {
264                 session_add_midi_route (false);
265         }*/
266
267         void attach_to_engine ();
268         void post_engine ();
269
270         gint exit_on_main_window_close (GdkEventAny *);
271
272         void maximise_editing_space ();
273         void restore_editing_space ();
274
275         void update_tearoff_visibility ();
276
277         void setup_profile ();
278         void setup_tooltips ();
279
280         void set_shuttle_fract (double);
281
282         void get_process_buffers ();
283         void drop_process_buffers ();
284
285         void reset_peak_display ();
286         void reset_route_peak_display (ARDOUR::Route*);
287         void reset_group_peak_display (ARDOUR::RouteGroup*);
288
289         const std::string& announce_string() const { return _announce_string; }
290
291   protected:
292         friend class PublicEditor;
293
294         void toggle_auto_play ();
295         void toggle_auto_input ();
296         void toggle_punch ();
297         void unset_dual_punch ();
298         bool ignore_dual_punch;
299         void toggle_punch_in ();
300         void toggle_punch_out ();
301         void show_loop_punch_ruler_and_disallow_hide ();
302         void reenable_hide_loop_punch_ruler_if_appropriate ();
303         void toggle_auto_return ();
304         void toggle_click ();
305         void toggle_audio_midi_setup ();
306         void toggle_session_auto_loop ();
307         void toggle_rc_options_window ();
308         void toggle_session_options_window ();
309
310   private:
311         ArdourStartup*      _startup;
312         Gtk::Tooltips        _tooltips;
313         NSM_Client          *nsm;
314         bool                 _was_dirty;
315         bool                 _mixer_on_top;
316         bool first_time_engine_run;
317
318         void goto_editor_window ();
319         void goto_mixer_window ();
320         void toggle_mixer_window ();
321         void toggle_meterbridge ();
322         void toggle_editor_mixer ();
323
324         int  setup_windows ();
325         void setup_transport ();
326         void setup_clock ();
327
328         static ARDOUR_UI *theArdourUI;
329
330         void startup ();
331         void shutdown ();
332
333         int  ask_about_saving_session (const std::vector<std::string>& actions);
334
335         /* periodic safety backup, to be precise */
336         gint autosave_session();
337         void update_autosave();
338         sigc::connection _autosave_connection;
339
340         void map_transport_state ();
341         int32_t do_engine_start ();
342
343         void engine_halted (const char* reason, bool free_reason);
344         void engine_stopped ();
345         void engine_running ();
346
347         void use_config ();
348
349         static gint _blink  (void *);
350         void blink ();
351         gint blink_timeout_tag;
352         bool blink_on;
353         void start_blinking ();
354         void stop_blinking ();
355
356         void about_signal_response(int response);
357
358         Gtk::VBox     top_packer;
359
360         sigc::connection clock_signal_connection;
361         void         update_clocks ();
362         void         start_clocking ();
363         void         stop_clocking ();
364
365         bool main_window_state_event_handler (GdkEventWindowState*, bool window_was_editor);
366
367         void update_transport_clocks (framepos_t pos);
368         void record_state_changed ();
369
370         std::list<MidiTracer*> _midi_tracer_windows;
371
372         /* Transport Control */
373
374         void detach_tearoff (Gtk::Box* parent, Gtk::Widget* contents);
375         void reattach_tearoff (Gtk::Box* parent, Gtk::Widget* contents, int32_t order);
376
377         Gtkmm2ext::TearOff*      transport_tearoff;
378         Gtk::Frame               transport_frame;
379         Gtk::HBox                transport_tearoff_hbox;
380         Gtk::HBox               _editor_transport_box;
381         Gtk::HBox                transport_hbox;
382         Gtk::Fixed               transport_base;
383         Gtk::Fixed               transport_button_base;
384         Gtk::Frame               transport_button_frame;
385         Gtk::HBox                transport_button_hbox;
386         Gtk::VBox                transport_button_vbox;
387         Gtk::HBox                transport_option_button_hbox;
388         Gtk::VBox                transport_option_button_vbox;
389         Gtk::HBox                transport_clock_hbox;
390         Gtk::VBox                transport_clock_vbox;
391         Gtk::HBox                primary_clock_hbox;
392         Gtk::HBox                secondary_clock_hbox;
393
394         struct TransportControllable : public PBD::Controllable {
395             enum ToggleType {
396                     Roll = 0,
397                     Stop,
398                     RecordEnable,
399                     GotoStart,
400                     GotoEnd,
401                     AutoLoop,
402                     PlaySelection,
403             };
404
405             TransportControllable (std::string name, ARDOUR_UI&, ToggleType);
406             void set_value (double);
407             double get_value (void) const;
408
409             ARDOUR_UI& ui;
410             ToggleType type;
411         };
412
413         boost::shared_ptr<TransportControllable> roll_controllable;
414         boost::shared_ptr<TransportControllable> stop_controllable;
415         boost::shared_ptr<TransportControllable> goto_start_controllable;
416         boost::shared_ptr<TransportControllable> goto_end_controllable;
417         boost::shared_ptr<TransportControllable> auto_loop_controllable;
418         boost::shared_ptr<TransportControllable> play_selection_controllable;
419         boost::shared_ptr<TransportControllable> rec_controllable;
420
421         void toggle_always_play_range ();
422
423         void set_transport_controllable_state (const XMLNode&);
424         XMLNode& get_transport_controllable_state ();
425
426         ArdourButton roll_button;
427         ArdourButton stop_button;
428         ArdourButton goto_start_button;
429         ArdourButton goto_end_button;
430         ArdourButton auto_loop_button;
431         ArdourButton play_selection_button;
432         ArdourButton rec_button;
433
434         void toggle_external_sync ();
435         void toggle_time_master ();
436         void toggle_video_sync ();
437
438         ShuttleControl* shuttle_box;
439
440         ArdourButton auto_return_button;
441         ArdourButton follow_edits_button;
442         ArdourButton auto_input_button;
443         ArdourButton click_button;
444         ArdourButton sync_button;
445
446         ArdourButton auditioning_alert_button;
447         ArdourButton solo_alert_button;
448         ArdourButton feedback_alert_button;
449
450         Gtk::VBox alert_box;
451         Gtk::VBox meter_box;
452         LevelMeterHBox * editor_meter;
453         float            editor_meter_max_peak;
454         ArdourButton     editor_meter_peak_display;
455         bool             editor_meter_peak_button_release (GdkEventButton*);
456
457         void solo_blink (bool);
458         void sync_blink (bool);
459         void audition_blink (bool);
460         void feedback_blink (bool);
461
462         void soloing_changed (bool);
463         void auditioning_changed (bool);
464         void _auditioning_changed (bool);
465         
466         bool solo_alert_press (GdkEventButton* ev);
467         bool audition_alert_press (GdkEventButton* ev);
468         bool feedback_alert_press (GdkEventButton *);
469
470         void big_clock_value_changed ();
471         void primary_clock_value_changed ();
472         void secondary_clock_value_changed ();
473
474         /* called by Blink signal */
475
476         void transport_rec_enable_blink (bool onoff);
477
478         Gtk::Menu*        session_popup_menu;
479
480         struct RecentSessionModelColumns : public Gtk::TreeModel::ColumnRecord {
481             RecentSessionModelColumns() {
482                     add (visible_name);
483                     add (tip);
484                     add (fullpath);
485             }
486             Gtk::TreeModelColumn<std::string> visible_name;
487             Gtk::TreeModelColumn<std::string> tip;
488             Gtk::TreeModelColumn<std::string> fullpath;
489         };
490
491         RecentSessionModelColumns    recent_session_columns;
492         Gtk::TreeView                recent_session_display;
493         Glib::RefPtr<Gtk::TreeStore> recent_session_model;
494
495         ArdourDialog*     session_selector_window;
496         Gtk::FileChooserDialog* open_session_selector;
497
498         void build_session_selector();
499         void redisplay_recent_sessions();
500         void recent_session_row_activated (const Gtk::TreePath& path, Gtk::TreeViewColumn* col);
501
502         struct RecentSessionsSorter {
503                 bool operator() (std::pair<std::string,std::string> a, std::pair<std::string,std::string> b) const {
504                     return cmp_nocase(a.first, b.first) == -1;
505             }
506         };
507
508         /* menu bar and associated stuff */
509
510         Gtk::MenuBar* menu_bar;
511         Gtk::EventBox menu_bar_base;
512         Gtk::HBox     menu_hbox;
513
514         void use_menubar_as_top_menubar ();
515         void build_menu_bar ();
516
517         Gtk::Label   wall_clock_label;
518         gint update_wall_clock ();
519
520         Gtk::Label   disk_space_label;
521         void update_disk_space ();
522
523         Gtk::Label   timecode_format_label;
524         void update_timecode_format ();
525
526         Gtk::Label   cpu_load_label;
527         void update_cpu_load ();
528
529         Gtk::Label   buffer_load_label;
530         void update_buffer_load ();
531
532         Gtk::Label   sample_rate_label;
533         void update_sample_rate (ARDOUR::framecnt_t);
534
535         Gtk::Label    format_label;
536         void update_format ();
537         
538         gint every_second ();
539         gint every_point_one_seconds ();
540         gint every_point_zero_something_seconds ();
541
542         sigc::connection second_connection;
543         sigc::connection point_one_second_connection;
544         sigc::connection point_zero_something_second_connection;
545
546         void open_session ();
547         void open_recent_session ();
548         void save_template ();
549
550         void edit_metadata ();
551         void import_metadata ();
552
553         void session_add_audio_route (bool, int32_t, int32_t, ARDOUR::TrackMode, ARDOUR::RouteGroup *, uint32_t, std::string const &);
554         void session_add_midi_route (bool, ARDOUR::RouteGroup *, uint32_t, std::string const &, ARDOUR::PluginInfoPtr);
555
556         void set_transport_sensitivity (bool);
557
558         void transport_goto_zero ();
559         void transport_goto_start ();
560         void transport_goto_end ();
561         void transport_goto_wallclock ();
562         void transport_stop ();
563         void transport_record (bool roll);
564         void transport_roll ();
565         void transport_play_selection();
566         void transport_play_preroll(); 
567         void transport_forward (int option);
568         void transport_rewind (int option);
569         void transport_loop ();
570         void toggle_roll (bool with_abort, bool roll_out_of_bounded_mode);
571
572         bool _session_is_new;
573         void set_session (ARDOUR::Session *);
574         void connect_dependents_to_session (ARDOUR::Session *);
575         void we_have_dependents ();
576
577         void setup_session_options ();
578
579         guint32  last_key_press_time;
580
581         void snapshot_session (bool switch_to_it);
582         void rename_session ();
583
584         Mixer_UI   *mixer;
585         int         create_mixer ();
586
587         PublicEditor     *editor;
588         int         create_editor ();
589
590         Meterbridge  *meterbridge;
591         int         create_meterbridge ();
592         /* Dialogs that can be created via new<T> */
593
594         WM::Proxy<SpeakerDialog> speaker_config_window;
595         WM::Proxy<ThemeManager> theme_manager;
596         WM::Proxy<KeyEditor> key_editor;
597         WM::Proxy<RCOptionEditor> rc_option_editor;
598         WM::Proxy<AddRouteDialog> add_route_dialog;
599         WM::Proxy<About> about;
600         WM::Proxy<LocationUIWindow> location_ui;
601         WM::Proxy<RouteParams_UI> route_params;
602
603         /* Windows/Dialogs that require a creator method */
604
605         WM::ProxyWithConstructor<SessionOptionEditor> session_option_editor;
606         WM::ProxyWithConstructor<AddVideoDialog> add_video_dialog;
607         WM::ProxyWithConstructor<BundleManager> bundle_manager;
608         WM::ProxyWithConstructor<BigClockWindow> big_clock_window;
609         WM::ProxyWithConstructor<GlobalPortMatrixWindow> audio_port_matrix;
610         WM::ProxyWithConstructor<GlobalPortMatrixWindow> midi_port_matrix;
611
612         /* creator methods */
613
614         SessionOptionEditor*    create_session_option_editor ();
615         BundleManager*          create_bundle_manager ();
616         AddVideoDialog*         create_add_video_dialog ();
617         BigClockWindow*         create_big_clock_window(); 
618         GlobalPortMatrixWindow* create_global_port_matrix (ARDOUR::DataType);
619
620         static UIConfiguration *ui_config;
621
622         SystemExec *video_server_process;
623
624         void handle_locations_change (ARDOUR::Location*);
625
626         /* Keyboard Handling */
627
628         ArdourKeyboard* keyboard;
629
630         /* Keymap handling */
631
632         void install_actions ();
633
634         void toggle_record_enable (uint32_t);
635
636         uint32_t rec_enabled_streams;
637         void count_recenabled_streams (ARDOUR::Route&);
638
639         Splash* splash;
640
641         void pop_back_splash (Gtk::Window&);
642
643         /* cleanup */
644
645         Gtk::MenuItem *cleanup_item;
646
647         void display_cleanup_results (ARDOUR::CleanupReport& rep, const gchar* list_title, const bool msg_delete);
648         void cleanup ();
649         void flush_trash ();
650
651         bool have_configure_timeout;
652         ARDOUR::microseconds_t last_configure_time;
653         gint configure_timeout ();
654
655         ARDOUR::microseconds_t last_peak_grab;
656         ARDOUR::microseconds_t last_shuttle_request;
657
658         bool have_disk_speed_dialog_displayed;
659         void disk_speed_dialog_gone (int ignored_response, Gtk::MessageDialog*);
660         void disk_overrun_handler ();
661         void disk_underrun_handler ();
662
663         void session_format_mismatch (std::string, std::string);
664
665         void session_dialog (std::string);
666         int pending_state_dialog ();
667         int sr_mismatch_dialog (ARDOUR::framecnt_t, ARDOUR::framecnt_t);
668
669         void disconnect_from_engine ();
670         void reconnect_to_engine ();
671         void set_engine_buffer_size (ARDOUR::pframes_t);
672
673         Gtk::MenuItem* jack_disconnect_item;
674         Gtk::MenuItem* jack_reconnect_item;
675         Gtk::Menu*     jack_bufsize_menu;
676
677         Glib::RefPtr<Gtk::ActionGroup> common_actions;
678
679         void editor_realized ();
680
681         std::vector<std::string> positional_sync_strings;
682
683         void toggle_send_midi_feedback ();
684         void toggle_use_mmc ();
685         void toggle_send_mmc ();
686         void toggle_send_mtc ();
687         void toggle_send_midi_clock ();
688
689         void toggle_use_osc ();
690
691         void parameter_changed (std::string);
692         void session_parameter_changed (std::string);
693
694         bool first_idle ();
695
696         void no_memory_warning ();
697         void check_memory_locking ();
698
699         bool check_audioengine();
700         void audioengine_setup ();
701
702         void display_message (const char *prefix, gint prefix_len,
703                         Glib::RefPtr<Gtk::TextBuffer::Tag> ptag, Glib::RefPtr<Gtk::TextBuffer::Tag> mtag,
704                         const char *msg);
705         Gtk::Label status_bar_label;
706         bool status_bar_button_press (GdkEventButton*);
707         Gtk::ToggleButton error_log_button;
708
709         void loading_message (const std::string& msg);
710
711         PBD::ScopedConnectionList forever_connections;
712         PBD::ScopedConnection halt_connection; 
713
714         void step_edit_status_change (bool);
715
716         void platform_specific ();
717         void platform_setup ();
718
719         /* these are used only in response to a platform-specific "ShouldQuit" signal
720          */
721         bool idle_finish ();
722         void queue_finish ();
723         void fontconfig_dialog ();
724
725         int missing_file (ARDOUR::Session*s, std::string str, ARDOUR::DataType type);
726         int ambiguous_file (std::string file, std::string path, std::vector<std::string> hits);
727
728         bool click_button_clicked (GdkEventButton *);
729
730         VisibilityGroup _status_bar_visibility;
731
732         /** A ProcessThread so that we have some thread-local buffers for use by
733          *  PluginEqGui::impulse_analysis ().
734          */
735         ARDOUR::ProcessThread* _process_thread;
736
737         void feedback_detected ();
738
739         ArdourButton             midi_panic_button;
740         void                     midi_panic ();
741
742         void successful_graph_sort ();
743         bool _feedback_exists;
744
745         void resize_text_widgets ();
746
747         std::string _announce_string;
748         void check_announcements ();
749
750         EngineControl* _audio_midi_setup;
751         void launch_audio_midi_setup ();
752         int do_audio_midi_setup (uint32_t);
753 };
754
755 #endif /* __ardour_gui_h__ */
756