fix merge errors with master
[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 "ui_config.h"
75 #include "enums.h"
76 #include "visibility_group.h"
77 #include "window_manager.h"
78
79 class About;
80 class AddRouteDialog;
81 class AddVideoDialog;
82 class VideoTimeLine;
83 class SystemExec;
84 class ArdourKeyboard;
85 class AudioClock;
86 class BigClockWindow;
87 class BundleManager;
88 class ButtonJoiner;
89 class ConnectionEditor;
90 class EngineControl;
91 class KeyEditor;
92 class LocationUIWindow;
93 class MainClock;
94 class Mixer_UI;
95 class PublicEditor;
96 class RCOptionEditor;
97 class RouteParams_UI;
98 class SessionDialog;
99 class SessionOptionEditor;
100 class ShuttleControl;
101 class Splash;
102 class SpeakerDialog;
103 class ThemeManager;
104 class TimeInfoBox;
105 class MidiTracer;
106 class NSM_Client;
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_dialog (SessionDialog&, 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         int disconnect_from_engine ();
292         int reconnect_to_engine ();
293
294   protected:
295         friend class PublicEditor;
296
297         void toggle_auto_play ();
298         void toggle_auto_input ();
299         void toggle_punch ();
300         void unset_dual_punch ();
301         bool ignore_dual_punch;
302         void toggle_punch_in ();
303         void toggle_punch_out ();
304         void show_loop_punch_ruler_and_disallow_hide ();
305         void reenable_hide_loop_punch_ruler_if_appropriate ();
306         void toggle_auto_return ();
307         void toggle_click ();
308         void toggle_audio_midi_setup ();
309         void toggle_session_auto_loop ();
310         void toggle_rc_options_window ();
311         void toggle_session_options_window ();
312
313   private:
314         Gtk::Tooltips       _tooltips;
315         NSM_Client          *nsm;
316         bool                _was_dirty;
317         bool                _mixer_on_top;
318         bool first_time_engine_run;
319
320         void goto_editor_window ();
321         void goto_mixer_window ();
322         void toggle_mixer_window ();
323         void toggle_meterbridge ();
324         void toggle_editor_mixer ();
325
326         int  setup_windows ();
327         void setup_transport ();
328         void setup_clock ();
329
330         static ARDOUR_UI *theArdourUI;
331
332         int starting ();
333
334         int  ask_about_saving_session (const std::vector<std::string>& actions);
335
336         /* periodic safety backup, to be precise */
337         gint autosave_session();
338         void update_autosave();
339         sigc::connection _autosave_connection;
340
341         void map_transport_state ();
342         int32_t do_engine_start ();
343
344         void engine_halted (const char* reason, bool free_reason);
345         void engine_stopped ();
346         void engine_running ();
347
348         void use_config ();
349
350         static gint _blink  (void *);
351         void blink ();
352         gint blink_timeout_tag;
353         bool blink_on;
354         void start_blinking ();
355         void stop_blinking ();
356
357         void about_signal_response(int response);
358
359         Gtk::VBox     top_packer;
360
361         sigc::connection clock_signal_connection;
362         void         update_clocks ();
363         void         start_clocking ();
364         void         stop_clocking ();
365
366         bool main_window_state_event_handler (GdkEventWindowState*, bool window_was_editor);
367
368         void update_transport_clocks (framepos_t pos);
369         void record_state_changed ();
370
371         std::list<MidiTracer*> _midi_tracer_windows;
372
373         /* Transport Control */
374
375         void detach_tearoff (Gtk::Box* parent, Gtk::Widget* contents);
376         void reattach_tearoff (Gtk::Box* parent, Gtk::Widget* contents, int32_t order);
377
378         Gtkmm2ext::TearOff*      transport_tearoff;
379         Gtk::Frame               transport_frame;
380         Gtk::HBox                transport_tearoff_hbox;
381         Gtk::HBox               _editor_transport_box;
382         Gtk::HBox                transport_hbox;
383         Gtk::Fixed               transport_base;
384         Gtk::Fixed               transport_button_base;
385         Gtk::Frame               transport_button_frame;
386         Gtk::HBox                transport_button_hbox;
387         Gtk::VBox                transport_button_vbox;
388         Gtk::HBox                transport_option_button_hbox;
389         Gtk::VBox                transport_option_button_vbox;
390         Gtk::HBox                transport_clock_hbox;
391         Gtk::VBox                transport_clock_vbox;
392         Gtk::HBox                primary_clock_hbox;
393         Gtk::HBox                secondary_clock_hbox;
394
395         struct TransportControllable : public PBD::Controllable {
396             enum ToggleType {
397                     Roll = 0,
398                     Stop,
399                     RecordEnable,
400                     GotoStart,
401                     GotoEnd,
402                     AutoLoop,
403                     PlaySelection,
404             };
405
406             TransportControllable (std::string name, ARDOUR_UI&, ToggleType);
407             void set_value (double);
408             double get_value (void) const;
409
410             ARDOUR_UI& ui;
411             ToggleType type;
412         };
413
414         boost::shared_ptr<TransportControllable> roll_controllable;
415         boost::shared_ptr<TransportControllable> stop_controllable;
416         boost::shared_ptr<TransportControllable> goto_start_controllable;
417         boost::shared_ptr<TransportControllable> goto_end_controllable;
418         boost::shared_ptr<TransportControllable> auto_loop_controllable;
419         boost::shared_ptr<TransportControllable> play_selection_controllable;
420         boost::shared_ptr<TransportControllable> rec_controllable;
421
422         void toggle_always_play_range ();
423
424         void set_transport_controllable_state (const XMLNode&);
425         XMLNode& get_transport_controllable_state ();
426
427         ArdourButton roll_button;
428         ArdourButton stop_button;
429         ArdourButton goto_start_button;
430         ArdourButton goto_end_button;
431         ArdourButton auto_loop_button;
432         ArdourButton play_selection_button;
433         ArdourButton rec_button;
434
435         void toggle_external_sync ();
436         void toggle_time_master ();
437         void toggle_video_sync ();
438
439         ShuttleControl* shuttle_box;
440
441         ArdourButton auto_return_button;
442         ArdourButton follow_edits_button;
443         ArdourButton auto_input_button;
444         ArdourButton click_button;
445         ArdourButton sync_button;
446
447         ArdourButton auditioning_alert_button;
448         ArdourButton solo_alert_button;
449         ArdourButton feedback_alert_button;
450
451         Gtk::VBox alert_box;
452         Gtk::VBox meter_box;
453         LevelMeterHBox * editor_meter;
454         float            editor_meter_max_peak;
455         ArdourButton     editor_meter_peak_display;
456         bool             editor_meter_peak_button_release (GdkEventButton*);
457
458         void solo_blink (bool);
459         void sync_blink (bool);
460         void audition_blink (bool);
461         void feedback_blink (bool);
462
463         void soloing_changed (bool);
464         void auditioning_changed (bool);
465         void _auditioning_changed (bool);
466         
467         bool solo_alert_press (GdkEventButton* ev);
468         bool audition_alert_press (GdkEventButton* ev);
469         bool feedback_alert_press (GdkEventButton *);
470
471         void big_clock_value_changed ();
472         void primary_clock_value_changed ();
473         void secondary_clock_value_changed ();
474
475         /* called by Blink signal */
476
477         void transport_rec_enable_blink (bool onoff);
478
479         Gtk::Menu*        session_popup_menu;
480
481         struct RecentSessionModelColumns : public Gtk::TreeModel::ColumnRecord {
482             RecentSessionModelColumns() {
483                     add (visible_name);
484                     add (tip);
485                     add (fullpath);
486             }
487             Gtk::TreeModelColumn<std::string> visible_name;
488             Gtk::TreeModelColumn<std::string> tip;
489             Gtk::TreeModelColumn<std::string> fullpath;
490         };
491
492         RecentSessionModelColumns    recent_session_columns;
493         Gtk::TreeView                recent_session_display;
494         Glib::RefPtr<Gtk::TreeStore> recent_session_model;
495
496         ArdourDialog*     session_selector_window;
497         Gtk::FileChooserDialog* open_session_selector;
498
499         void build_session_selector();
500         void redisplay_recent_sessions();
501         void recent_session_row_activated (const Gtk::TreePath& path, Gtk::TreeViewColumn* col);
502
503         struct RecentSessionsSorter {
504                 bool operator() (std::pair<std::string,std::string> a, std::pair<std::string,std::string> b) const {
505                     return cmp_nocase(a.first, b.first) == -1;
506             }
507         };
508
509         /* menu bar and associated stuff */
510
511         Gtk::MenuBar* menu_bar;
512         Gtk::EventBox menu_bar_base;
513         Gtk::HBox     menu_hbox;
514
515         void use_menubar_as_top_menubar ();
516         void build_menu_bar ();
517
518         Gtk::Label   wall_clock_label;
519         gint update_wall_clock ();
520
521         Gtk::Label   disk_space_label;
522         void update_disk_space ();
523
524         Gtk::Label   timecode_format_label;
525         void update_timecode_format ();
526
527         Gtk::Label   cpu_load_label;
528         void update_cpu_load ();
529
530         Gtk::Label   buffer_load_label;
531         void update_buffer_load ();
532
533         Gtk::Label   sample_rate_label;
534         void update_sample_rate (ARDOUR::framecnt_t);
535
536         Gtk::Label    format_label;
537         void update_format ();
538         
539         gint every_second ();
540         gint every_point_one_seconds ();
541         gint every_point_zero_something_seconds ();
542
543         sigc::connection second_connection;
544         sigc::connection point_one_second_connection;
545         sigc::connection point_zero_something_second_connection;
546
547         void open_session ();
548         void open_recent_session ();
549         void save_template ();
550
551         void edit_metadata ();
552         void import_metadata ();
553
554         void session_add_audio_route (bool, int32_t, int32_t, ARDOUR::TrackMode, ARDOUR::RouteGroup *, uint32_t, std::string const &);
555         void session_add_midi_route (bool, ARDOUR::RouteGroup *, uint32_t, std::string const &, ARDOUR::PluginInfoPtr);
556
557         void set_transport_sensitivity (bool);
558
559         void transport_goto_zero ();
560         void transport_goto_start ();
561         void transport_goto_end ();
562         void transport_goto_wallclock ();
563         void transport_stop ();
564         void transport_record (bool roll);
565         void transport_roll ();
566         void transport_play_selection();
567         void transport_play_preroll(); 
568         void transport_forward (int option);
569         void transport_rewind (int option);
570         void transport_loop ();
571         void toggle_roll (bool with_abort, bool roll_out_of_bounded_mode);
572
573         bool _session_is_new;
574         void set_session (ARDOUR::Session *);
575         void connect_dependents_to_session (ARDOUR::Session *);
576         void we_have_dependents ();
577
578         void setup_session_options ();
579
580         guint32  last_key_press_time;
581
582         void snapshot_session (bool switch_to_it);
583         void rename_session ();
584         void setup_order_hint ();
585
586         Mixer_UI   *mixer;
587         int         create_mixer ();
588
589         PublicEditor     *editor;
590         int         create_editor ();
591
592         Meterbridge  *meterbridge;
593         int         create_meterbridge ();
594         /* Dialogs that can be created via new<T> */
595
596         WM::Proxy<SpeakerDialog> speaker_config_window;
597         WM::Proxy<ThemeManager> theme_manager;
598         WM::Proxy<KeyEditor> key_editor;
599         WM::Proxy<RCOptionEditor> rc_option_editor;
600         WM::Proxy<AddRouteDialog> add_route_dialog;
601         WM::Proxy<About> about;
602         WM::Proxy<LocationUIWindow> location_ui;
603         WM::Proxy<RouteParams_UI> route_params;
604         WM::Proxy<EngineControl> audio_midi_setup;
605
606         /* Windows/Dialogs that require a creator method */
607
608         WM::ProxyWithConstructor<SessionOptionEditor> session_option_editor;
609         WM::ProxyWithConstructor<AddVideoDialog> add_video_dialog;
610         WM::ProxyWithConstructor<BundleManager> bundle_manager;
611         WM::ProxyWithConstructor<BigClockWindow> big_clock_window;
612         WM::ProxyWithConstructor<GlobalPortMatrixWindow> audio_port_matrix;
613         WM::ProxyWithConstructor<GlobalPortMatrixWindow> midi_port_matrix;
614
615         /* creator methods */
616
617         SessionOptionEditor*    create_session_option_editor ();
618         BundleManager*          create_bundle_manager ();
619         AddVideoDialog*         create_add_video_dialog ();
620         BigClockWindow*         create_big_clock_window(); 
621         GlobalPortMatrixWindow* create_global_port_matrix (ARDOUR::DataType);
622
623         static UIConfiguration *ui_config;
624
625         SystemExec *video_server_process;
626
627         void handle_locations_change (ARDOUR::Location*);
628
629         /* Keyboard Handling */
630
631         ArdourKeyboard* keyboard;
632
633         /* Keymap handling */
634
635         void install_actions ();
636
637         void toggle_record_enable (uint32_t);
638
639         uint32_t rec_enabled_streams;
640         void count_recenabled_streams (ARDOUR::Route&);
641
642         Splash* splash;
643
644         void pop_back_splash (Gtk::Window&);
645
646         /* cleanup */
647
648         Gtk::MenuItem *cleanup_item;
649
650         void display_cleanup_results (ARDOUR::CleanupReport& rep, const gchar* list_title, const bool msg_delete);
651         void cleanup ();
652         void flush_trash ();
653
654         bool have_configure_timeout;
655         ARDOUR::microseconds_t last_configure_time;
656         gint configure_timeout ();
657
658         ARDOUR::microseconds_t last_peak_grab;
659         ARDOUR::microseconds_t last_shuttle_request;
660
661         bool have_disk_speed_dialog_displayed;
662         void disk_speed_dialog_gone (int ignored_response, Gtk::MessageDialog*);
663         void disk_overrun_handler ();
664         void disk_underrun_handler ();
665
666         void session_format_mismatch (std::string, std::string);
667
668         void session_dialog (std::string);
669         int pending_state_dialog ();
670         int sr_mismatch_dialog (ARDOUR::framecnt_t, ARDOUR::framecnt_t);
671
672         Gtk::MenuItem* jack_disconnect_item;
673         Gtk::MenuItem* jack_reconnect_item;
674         Gtk::Menu*     jack_bufsize_menu;
675
676         Glib::RefPtr<Gtk::ActionGroup> common_actions;
677
678         void editor_realized ();
679
680         std::vector<std::string> positional_sync_strings;
681
682         void toggle_send_midi_feedback ();
683         void toggle_use_mmc ();
684         void toggle_send_mmc ();
685         void toggle_send_mtc ();
686         void toggle_send_midi_clock ();
687
688         void toggle_use_osc ();
689
690         void parameter_changed (std::string);
691         void session_parameter_changed (std::string);
692
693         bool first_idle ();
694
695         void check_memory_locking ();
696
697         bool check_audioengine();
698         void audioengine_setup ();
699
700         void display_message (const char *prefix, gint prefix_len,
701                         Glib::RefPtr<Gtk::TextBuffer::Tag> ptag, Glib::RefPtr<Gtk::TextBuffer::Tag> mtag,
702                         const char *msg);
703         Gtk::Label status_bar_label;
704         bool status_bar_button_press (GdkEventButton*);
705         Gtk::ToggleButton error_log_button;
706
707         void loading_message (const std::string& msg);
708
709         PBD::ScopedConnectionList forever_connections;
710         PBD::ScopedConnection halt_connection; 
711
712         void step_edit_status_change (bool);
713
714         void platform_specific ();
715         void platform_setup ();
716
717         /* these are used only in response to a platform-specific "ShouldQuit" signal
718          */
719         bool idle_finish ();
720         void queue_finish ();
721         void fontconfig_dialog ();
722
723         int missing_file (ARDOUR::Session*s, std::string str, ARDOUR::DataType type);
724         int ambiguous_file (std::string file, std::string path, std::vector<std::string> hits);
725
726         bool click_button_clicked (GdkEventButton *);
727
728         VisibilityGroup _status_bar_visibility;
729
730         /** A ProcessThread so that we have some thread-local buffers for use by
731          *  PluginEqGui::impulse_analysis ().
732          */
733         ARDOUR::ProcessThread* _process_thread;
734
735         void feedback_detected ();
736
737         ArdourButton             midi_panic_button;
738         void                     midi_panic ();
739
740         void successful_graph_sort ();
741         bool _feedback_exists;
742
743         void resize_text_widgets ();
744
745         std::string _announce_string;
746         void check_announcements ();
747
748         int do_audio_midi_setup (uint32_t);
749 };
750
751 #endif /* __ardour_gui_h__ */
752