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