Ardour  9.0-pre0-582-g084a23a80d
ardour_ui.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2005 Karsten Wiese <fzuuzf@googlemail.com>
4  * Copyright (C) 2005 Taybin Rutkin <taybin@taybin.com>
5  * Copyright (C) 2006-2007 Doug McLain <doug@nostar.net>
6  * Copyright (C) 2006-2011 David Robillard <d@drobilla.net>
7  * Copyright (C) 2007-2012 Carl Hetherington <carl@carlh.net>
8  * Copyright (C) 2007-2015 Tim Mayberry <mojofunk@gmail.com>
9  * Copyright (C) 2008 Hans Baier <hansfbaier@googlemail.com>
10  * Copyright (C) 2012-2015 Colin Fletcher <colin.m.fletcher@googlemail.com>
11  * Copyright (C) 2013-2015 Nick Mainsbridge <mainsbridge@gmail.com>
12  * Copyright (C) 2013-2016 John Emmas <john@creativepost.co.uk>
13  * Copyright (C) 2013-2019 Robin Gareus <robin@gareus.org>
14  * Copyright (C) 2014-2018 Ben Loftis <ben@harrisonconsoles.com>
15  * Copyright (C) 2017 Johannes Mueller <github@johannes-mueller.org>
16  * Copyright (C) 2018 Len Ovens <len@ovenwerks.net>
17  *
18  * This program is free software; you can redistribute it and/or modify
19  * it under the terms of the GNU General Public License as published by
20  * the Free Software Foundation; either version 2 of the License, or
21  * (at your option) any later version.
22  *
23  * This program is distributed in the hope that it will be useful,
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26  * GNU General Public License for more details.
27  *
28  * You should have received a copy of the GNU General Public License along
29  * with this program; if not, write to the Free Software Foundation, Inc.,
30  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
31  */
32 
33 #pragma once
34 
35 #include <time.h>
36 
37 /* need _BSD_SOURCE to get timersub macros */
38 
39 #ifdef _BSD_SOURCE
40 #include <sys/time.h>
41 #else
42 #define _BSD_SOURCE
43 #include <sys/time.h>
44 #undef _BSD_SOURCE
45 #endif
46 
47 #include <list>
48 #include <cmath>
49 
50 #include "pbd/xml++.h"
51 #include <gtkmm/box.h>
52 #include <gtkmm/frame.h>
53 #include <gtkmm/label.h>
54 #include <gtkmm/table.h>
55 #include <gtkmm/fixed.h>
56 #include <gtkmm/drawingarea.h>
57 #include <gtkmm/eventbox.h>
58 #include <gtkmm/menu.h>
59 #include <gtkmm/menuitem.h>
60 #include <gtkmm/messagedialog.h>
61 #include <gtkmm/notebook.h>
62 #include <gtkmm/button.h>
63 #include <gtkmm/togglebutton.h>
64 #include <gtkmm/sizegroup.h>
65 #include <gtkmm/treeview.h>
66 #include <gtkmm/menubar.h>
67 #include <gtkmm/textbuffer.h>
68 #include <gtkmm/adjustment.h>
69 
70 #include "gtkmm2ext/gtk_ui.h"
71 #include "gtkmm2ext/bindings.h"
73 
74 #include "ardour/ardour.h"
75 #include "ardour/types.h"
76 #include "ardour/utils.h"
77 #include "ardour/plugin.h"
78 #include "ardour/session_handle.h"
79 #include "ardour/system_exec.h"
80 
81 #include "video_timeline.h"
82 
83 #include "widgets/ardour_button.h"
85 #include "widgets/ardour_spacer.h"
86 
87 #include "add_route_dialog.h"
88 #include "ardour_dialog.h"
89 #include "ardour_window.h"
90 #include "editing.h"
91 #include "enums.h"
92 #include "shuttle_control.h"
93 #include "startup_fsm.h"
94 #include "transport_control.h"
95 #include "transport_control_ui.h"
96 #include "visibility_group.h"
97 #include "window_manager.h"
98 
99 #ifdef COMPILER_MSVC
100 #include "about.h"
101 #include "add_video_dialog.h"
102 #include "big_clock_window.h"
103 #include "big_transport_window.h"
104 #include "bundle_manager.h"
105 #include "dsp_stats_window.h"
106 #include "engine_dialog.h"
107 #include "export_video_dialog.h"
108 #include "global_port_matrix.h"
109 #include "idleometer.h"
110 #include "io_plugin_window.h"
111 #include "keyeditor.h"
112 #include "location_ui.h"
113 #include "lua_script_manager.h"
114 #include "luawindow.h"
115 #include "plugin_dspload_window.h"
116 #include "plugin_manager_ui.h"
117 #include "rc_option_editor.h"
118 #include "route_dialogs.h"
119 #include "route_params_ui.h"
120 #include "session_option_editor.h"
121 #include "speaker_dialog.h"
123 #include "virtual_keyboard_window.h"
124 #include "library_download_dialog.h"
125 #else
126 class About;
127 class AddRouteDialog;
128 class AddVideoDialog;
129 class BigClockWindow;
130 class BigTransportWindow;
131 class BundleManager;
132 class EngineControl;
133 class ExportVideoDialog;
134 class KeyEditor;
135 class LocationUIWindow;
136 class LuaScriptManager;
137 class LuaWindow;
138 class RCOptionEditor;
139 class RouteParams_UI;
140 class SessionOptionEditor;
141 class SpeakerDialog;
143 class IdleOMeter;
144 class IOPluginWindow;
145 class PluginDSPLoadWindow;
146 class PluginManagerUI;
147 class DspStatisticsWindow;
151 #endif
152 
153 class VideoTimeLine;
154 class ArdourKeyboard;
155 class AudioClock;
156 class ConnectionEditor;
158 class MainClock;
159 class Mixer_UI;
160 class PublicEditor;
161 class RecorderUI;
162 class TriggerPage;
163 class SaveAsDialog;
164 class SaveTemplateDialog;
165 class SessionDialog;
166 class SessionOptionEditorWindow;
167 class Splash;
168 class TimeInfoBox;
169 class ApplicationBar;
170 class Meterbridge;
171 class LuaWindow;
172 class MidiTracer;
173 class NSM_Client;
174 class LevelMeterHBox;
175 class GUIObjectState;
176 class BasicUI;
177 
178 namespace ARDOUR {
179  class ControlProtocolInfo;
180  class IO;
181  class Port;
182  class Route;
183  class RouteGroup;
184  class Location;
185  class ProcessThread;
186 }
187 
188 namespace Gtk {
189  class ProgressBar;
190 }
191 
192 namespace ArdourWidgets {
193  class Prompter;
194  class Tabbable;
195 }
196 
197 #define MAX_LUA_ACTION_SCRIPTS 32
198 
200 {
201 public:
202  ARDOUR_UI (int *argcp, char **argvp[], const char* localedir);
204 
205  bool run_startup (bool should_be_new, std::string load_template);
206 
207  void hide_splash ();
208 
209  void launch_chat ();
212  void launch_tracker ();
214  void launch_website ();
216  void launch_forums ();
218  void show_about ();
219  void hide_about ();
220 
221  void load_from_application_api (const std::string& path);
222  void finish();
223 
225  int load_session (const std::string& path, const std::string& snapshot, std::string mix_template = std::string());
227  int build_session (std::string const& path, std::string const& snapshot, std::string const& session_template, ARDOUR::BusProfile const&, bool from_startup_fsm, bool unnamed, Temporal::TimeDomain domain);
228  int build_session_stage_two (std::string const& path, std::string const& snapshot, std::string const& session_template, ARDOUR::BusProfile const&, bool unnamed, Temporal::TimeDomain domain, ARDOUR::samplecnt_t samplerate = 0);
229 
230  bool session_is_new() const { return _session_is_new; }
231 
233 
234  bool get_smart_mode () const;
235 
238 
244  };
245 
248 
249  void start_session_load (bool create_new);
251  void build_session_from_dialog (SessionDialog&, std::string const& session_name, std::string const& session_path, std::string const& session_template, Temporal::TimeDomain domain);
252  bool ask_about_loading_existing_session (const std::string& session_path);
254 
256  int unload_session (bool hide_stuff = false, bool force_unload = false);
258 
259  int save_state_canfail (std::string state_name = "", bool switch_to_it = false);
260  void save_state (const std::string & state_name = "", bool switch_to_it = false);
261 
262  int new_session_from_aaf (std::string const&, std::string const&, std::string&, std::string&);
263 
264  static ARDOUR_UI *instance () { return theArdourUI; }
265 
266  /* signal emitted when all windows (editor, mixer/monitor, recorder and cues)
267  have published their actions to the ActionManager
268  */
270 
271  /* signal emitted when escape key is pressed. All UI components that
272  need to respond to Escape in some way (e.g. break drag, clear
273  selection, etc) should connect to and handle this.
274  */
276 
278  Mixer_UI* the_mixer() { return mixer; }
279 
281 
287 
289 
295  static sigc::signal<void, Temporal::timepos_t> Clock;
296 
297  static void close_all_dialogs () { CloseAllDialogs(); }
298  static sigc::signal<void> CloseAllDialogs;
299 
308  XMLNode* tearoff_settings (const char*) const;
309 
310  void trigger_slot (int c, int r);
311  void trigger_cue_row (int r);
312  void stop_all_cues (bool immediately);
313  void stop_cues (int c, bool immediately);
314 
317 
321 
322  Glib::RefPtr<Gtk::SizeGroup> button_height_size_group;
323 
325 
326  MainClock* primary_clock; //this clock is the canonical PrimaryClock, whose mode is reflected to all other clocks with PrimaryClock disposition.
327  MainClock* secondary_clock; //this clock is the canonical SecondaryClock, whose mode is reflected to all other clocks with PrimaryClock disposition
329 
330  void focus_on_clock ();
331 
333 
335 
337 
338  void add_route ();
340 
343 
345 
346  void add_video (Gtk::Window* float_window);
347  void remove_video ();
348  void start_video_server_menu (Gtk::Window* float_window);
349  bool start_video_server (Gtk::Window* float_window, bool popup_msg);
350  void stop_video_server (bool ask_confirm=false);
351  void flush_videotimeline_cache (bool localcacheonly=false);
352  void export_video (bool range = false);
353 
355  uint32_t, std::string const &, bool, ARDOUR::PresentationInfo::order_t order, bool trigger_visibility);
356 
357  void session_add_midi_route (bool, ARDOUR::RouteGroup *, uint32_t, std::string const &, bool,
359  ARDOUR::PresentationInfo::order_t order, bool trigger_visibility);
360 
361  void session_add_foldback_bus (int32_t, uint32_t, std::string const &);
362 
364 
366  void post_engine ();
367 
369 
372 
373  void show_ui_prefs ();
376 
378 
379  void setup_profile ();
380  void setup_tooltips ();
381 
382  void set_shuttle_fract (double);
383 
386 
388 
389  const std::string& announce_string() const { return _announce_string; }
390 
392 
395 
396  void setup_toplevel_window (Gtk::Window&, const std::string& name, void* owner);
397 
398  /* called from a static C function */
399 
401  GtkWidget* w,
402  gint x,
403  gint y,
404  gpointer user_data);
405 
408 
410 
411  std::map<std::string, std::string> route_setup_info (const std::string& script_path);
412 
414 
415 protected:
416  friend class PublicEditor;
417 
421  void monitor_mono ();
422 
425  void toggle_punch ();
435  void toggle_click ();
439 
440 private:
441 
455 
457 
465 
467 
469 
473  void setup_clock ();
474 
477 
479 
480  int starting ();
481  int nsm_init ();
482  void startup_done ();
484 
485  int ask_about_saving_session (const std::vector<std::string>& actions);
486 
487  void audio_midi_setup_reconfigure_done (int response, std::string path, std::string snapshot, std::string mix_template);
488  int load_session_stage_two (const std::string& path, const std::string& snapshot, std::string mix_template = std::string());
489  void audio_midi_setup_for_new_session_done (int response, std::string path, std::string snapshot, std::string session_template, ARDOUR::BusProfile const&, bool unnamed, Temporal::TimeDomain domain);
490  sigc::connection _engine_dialog_connection;
491 
492  void save_session_at_its_request (std::string);
493  /* periodic safety backup, to be precise */
496  sigc::connection _autosave_connection;
497 
499  void update_title ();
500 
502  int32_t do_engine_start ();
503 
504  void engine_halted (const char* reason, bool free_reason);
505  void engine_stopped ();
506  void engine_running (uint32_t cnt);
507 
508  void use_config ();
509 
510  void about_signal_response(int response);
511 
513 
514  sigc::connection clock_signal_connection;
515  void update_clocks ();
516  void start_clocking ();
517  void stop_clocking ();
518 
521 
522  std::list<MidiTracer*> _midi_tracer_windows;
523 
524  /* Transport Control */
525 
527 
529 
532 
536 
538 
539  void blink_handler (bool);
540  sigc::connection blink_connection;
541 
542  void cancel_solo ();
543  void error_blink (bool);
544 
546 
548  /* menu bar and associated stuff */
549 
553 
555  void build_menu_bar ();
556 
559 
563 
566 
570 
573 
576 
579 
581  void update_format ();
582 
585 
587 
588  void every_second ();
590 
591  sigc::connection second_connection;
592  sigc::connection point_one_second_connection;
593  sigc::connection fps_connection;
594 
596 
597  void open_session ();
600  void save_template ();
602 
603  void meta_session_setup (const std::string& script_path);
604  void meta_route_setup (const std::string& script_path);
605 
606  void edit_metadata ();
608 
610 
611  //stuff for ProTools-style numpad
612  void transport_numpad_event (int num);
617  sigc::connection _numpad_timeout_connection;
618 
624  void transport_stop ();
625  void transport_record (bool roll);
626  void transport_roll ();
633  void transport_ffwd_rewind (bool fwd);
634  void transport_loop ();
635  void toggle_roll (bool with_abort, bool roll_out_of_bounded_mode);
637 
642 
644 
646 
647  bool process_snapshot_session_prompter (ArdourWidgets::Prompter& prompter, bool switch_to_it);
648  void snapshot_session (bool switch_to_it);
649 
650  void quick_snapshot_session (bool switch_to_it); //does not promtp for name, just makes a timestamped file
651 
653 
654  bool save_as_progress_update (float fraction, int64_t cnt, int64_t total, Gtk::Label* label, Gtk::ProgressBar* bar);
657  void rename_session (bool for_unnamed);
658 
659  int create_mixer ();
665 
667 
668  /* Dialogs that can be created via new<T> */
669 
672 
687 
688  /* Windows/Dialogs that require a creator method */
689 
701 
702  /* creator methods */
703 
714 
716 
718 
719  /* Keyboard Handling */
720 
722 
723  /* Keymap handling */
724 
727 
728  void toggle_record_enable (uint16_t);
729 
732 
733  /* cleanup */
734 
736 
737  void display_cleanup_results (ARDOUR::CleanupReport const& rep, const gchar* list_title, const bool msg_delete);
738  void cleanup ();
740  void flush_trash ();
741 
745 
748 
750  void disk_speed_dialog_gone (int ignored_response, Gtk::MessageDialog*);
753 
754  void session_format_mismatch (std::string, std::string);
755 
756  void session_dialog (std::string);
760 
764 
765  Glib::RefPtr<Gtk::ActionGroup> common_actions;
766 
768 
769  void toggle_use_mmc ();
773 
774  void toggle_use_osc ();
775 
776  void parameter_changed (std::string);
777  void session_parameter_changed (std::string);
778 
779  bool first_idle ();
780 
782 
784 
785  void display_message (const char* prefix, gint prefix_len, Glib::RefPtr<Gtk::TextBuffer::Tag>, Glib::RefPtr<Gtk::TextBuffer::Tag>, const char* msg);
788 
792 
793  /* these are used only in response to a platform-specific "ShouldQuit" signal */
794  bool idle_finish ();
795  void queue_finish ();
797 
798  int missing_file (ARDOUR::Session*s, std::string str, ARDOUR::DataType type);
799  int ambiguous_file (std::string file, std::vector<std::string> hits);
800 
802 
804 
809 
812 
814  void midi_panic ();
815 
817 
819 
826 
827  std::string _announce_string;
829 
831 
833 
835 
836  void tabs_switch (GtkNotebookPage*, guint page_number);
837  void tabs_page_added (Gtk::Widget*, guint);
844 
846  bool try_gtk_accel_binding (GtkWindow* win, GdkEventKey* ev, bool translate, GdkModifierType modifier);
847 
850 
851  bool tabbable_visibility_button_press (GdkEventButton* ev, std::string const& tabbable_name);
852 
855 
856  void escape ();
858 
861 
863 };
864 
ARDOUR::Session * _session
void on_theme_changed()
void display_cleanup_results(ARDOUR::CleanupReport const &rep, const gchar *list_title, const bool msg_delete)
void toggle_session_auto_loop()
int create_editor()
void focus_on_clock()
XMLNode * preferences_settings() const
bool key_press_focus_accelerator_handler(Gtk::Window &window, GdkEventKey *ev, Gtkmm2ext::Bindings *)
void audio_midi_setup_for_new_session_done(int response, std::string path, std::string snapshot, std::string session_template, ARDOUR::BusProfile const &, bool unnamed, Temporal::TimeDomain domain)
bool session_load_in_progress
Definition: ardour_ui.h:226
static sigc::signal< void, Temporal::timepos_t > Clock
Definition: ardour_ui.h:295
void monitor_dim_all()
void session_dialog_response_handler(int response, SessionDialog *session_dialog)
SessionOptionEditor * create_session_option_editor()
void new_midi_tracer_window()
PBD::ScopedConnectionList clock_state_connection
Definition: ardour_ui.h:862
void sr_mismatch_message(ARDOUR::samplecnt_t, ARDOUR::samplecnt_t)
RCOptionEditor * rc_option_editor
Definition: ardour_ui.h:670
void stop_video_server(bool ask_confirm=false)
VideoTimeLine * video_timeline
Definition: ardour_ui.h:332
void setup_clock()
WM::Proxy< IdleOMeter > idleometer
Definition: ardour_ui.h:681
RCOptionEditor * get_rc_option_editor()
Definition: ardour_ui.h:236
void transport_goto_nth_marker(int nth)
Mixer_UI * mixer
Definition: ardour_ui.h:448
bool first_idle()
void every_point_one_seconds()
MainClock * primary_clock
Definition: ardour_ui.h:326
void set_punch_sensitivity()
WM::Proxy< EngineControl > audio_midi_setup
Definition: ardour_ui.h:678
BigTransportWindow * create_big_transport_window()
void add_routes_thread()
void stop_clocking()
void flush_trash()
Gtk::Label timecode_format_label
Definition: ardour_ui.h:564
void launch_tutorial()
void tabs_switch(GtkNotebookPage *, guint page_number)
ArdourWidgets::ArdourButton error_alert_button
Definition: ardour_ui.h:537
void open_recent_session()
PBD::microseconds_t last_configure_time
Definition: ardour_ui.h:743
bool try_gtk_accel_binding(GtkWindow *win, GdkEventKey *ev, bool translate, GdkModifierType modifier)
void attach_tabbable(ArdourWidgets::Tabbable *)
void monitor_mono()
void create_xrun_marker(samplepos_t)
void transport_goto_end()
void update_clocks()
void we_have_dependents()
WM::Proxy< LocationUIWindow > location_ui
Definition: ardour_ui.h:676
MainClock * secondary_clock
Definition: ardour_ui.h:327
void latency_switch_changed()
Gtk::Menu * _shared_popup_menu
Definition: ardour_ui.h:456
BasicUI * _basic_ui
Definition: ardour_ui.h:458
void disk_overrun_handler()
Gtk::Label format_label
Definition: ardour_ui.h:580
void transport_goto_wallclock()
void update_transport_clocks(samplepos_t pos)
int missing_file(ARDOUR::Session *s, std::string str, ARDOUR::DataType type)
void toggle_auto_input()
void session_parameter_changed(std::string)
void launch_website_dev()
void show_loop_punch_ruler_and_disallow_hide()
Gtk::MenuBar * menu_bar
Definition: ardour_ui.h:550
void update_cpu_load()
bool ignore_dual_punch
Definition: ardour_ui.h:427
gint update_wall_clock()
WM::Proxy< TransportMastersWindow > transport_masters_window
Definition: ardour_ui.h:686
XMLNode * trigger_page_settings() const
XMLNode * clock_mode_settings() const
void editor_realized()
void blink_handler(bool)
void toggle_send_mtc()
void step_down_through_tabs()
void session_add_foldback_bus(int32_t, uint32_t, std::string const &)
int create_mixer()
void synchronize_sync_source_and_video_pullup()
WM::Proxy< LuaScriptManager > lua_script_window
Definition: ardour_ui.h:680
void every_second()
Gtk::MenuItem * cleanup_item
Definition: ardour_ui.h:735
void use_config()
void record_state_changed()
sigc::connection blink_connection
Definition: ardour_ui.h:540
void stop_cues(int c, bool immediately)
bool error_alert_press(GdkEventButton *)
Gtk::Notebook _tabs
Definition: ardour_ui.h:446
ArdourLogLevel _log_not_acknowledged
Definition: ardour_ui.h:816
int copy_demo_sessions()
WM::Proxy< AddRouteDialog > add_route_dialog
Definition: ardour_ui.h:674
void launch_tracker()
int new_session_from_aaf(std::string const &, std::string const &, std::string &, std::string &)
void set_flat_buttons()
void detach_tabbable(ArdourWidgets::Tabbable *)
void show_plugin_manager()
int nsm_init()
void error_blink(bool)
void toggle_editor_and_mixer()
void tabs_page_added(Gtk::Widget *, guint)
void transport_forward()
Gtk::Label snapshot_name_label
Definition: ardour_ui.h:586
bool status_bar_button_press(GdkEventButton *)
void hide_tabbable(ArdourWidgets::Tabbable *)
VirtualKeyboardWindow * create_virtual_keyboard_window()
PBD::Signal< void()> Escape
Definition: ardour_ui.h:275
void setup_transport()
BundleManager * create_bundle_manager()
void disk_underrun_handler()
void save_template()
void transport_ffwd_rewind(bool fwd)
@ LogLevelNone
Definition: ardour_ui.h:240
@ LogLevelError
Definition: ardour_ui.h:243
@ LogLevelWarning
Definition: ardour_ui.h:242
@ LogLevelInfo
Definition: ardour_ui.h:241
PBD::ScopedConnection editor_meter_connection
Definition: ardour_ui.h:791
int create_masters()
void update_sample_rate()
void reenable_hide_loop_punch_ruler_if_appropriate()
void key_change_tabbable_visibility(ArdourWidgets::Tabbable *)
bool xrun_button_press(GdkEventButton *ev)
void engine_running(uint32_t cnt)
void toggle_record_enable(uint16_t)
static void close_all_dialogs()
Definition: ardour_ui.h:297
void escape()
void cleanup_peakfiles()
int build_session(std::string const &path, std::string const &snapshot, std::string const &session_template, ARDOUR::BusProfile const &, bool from_startup_fsm, bool unnamed, Temporal::TimeDomain domain)
void toggle_punch_out()
Gtk::Window & main_window()
Definition: ardour_ui.h:394
void launch_chat()
void fontconfig_dialog()
sigc::connection second_connection
Definition: ardour_ui.h:591
static sigc::signal< void > CloseAllDialogs
Definition: ardour_ui.h:298
int load_session_stage_two(const std::string &path, const std::string &snapshot, std::string mix_template=std::string())
WM::ProxyWithConstructor< VirtualKeyboardWindow > virtual_keyboard_window
Definition: ardour_ui.h:695
ArdourWidgets::ArdourButton editor_visibility_button
Definition: ardour_ui.h:839
bool save_as_progress_update(float fraction, int64_t cnt, int64_t total, Gtk::Label *label, Gtk::ProgressBar *bar)
void toggle_send_midi_clock()
bool ask_about_loading_existing_session(const std::string &session_path)
PBD::microseconds_t last_shuttle_request
Definition: ardour_ui.h:747
Glib::RefPtr< Gtk::SizeGroup > button_height_size_group
Definition: ardour_ui.h:322
Gtk::HBox status_bar_hpacker
Definition: ardour_ui.h:445
void launch_howto_report()
int _pending_locate_num
Definition: ardour_ui.h:615
Gtk::HBox rc_option_editor_placeholder
Definition: ardour_ui.h:671
PublicEditor * editor
Definition: ardour_ui.h:447
void audio_midi_setup_reconfigure_done(int response, std::string path, std::string snapshot, std::string mix_template)
WM::Proxy< IOPluginWindow > io_plugin_window
Definition: ardour_ui.h:682
void transport_rewind()
WM::Proxy< DspStatisticsWindow > dsp_statistics_window
Definition: ardour_ui.h:685
int load_session_from_startup_fsm()
void load_from_application_api(const std::string &path)
WM::Proxy< SpeakerDialog > speaker_config_window
Definition: ardour_ui.h:673
static ARDOUR_UI * theArdourUI
Definition: ardour_ui.h:475
void tabs_page_removed(Gtk::Widget *, guint)
StartupFSM * startup_fsm
Definition: ardour_ui.h:478
void start_video_server_menu(Gtk::Window *float_window)
void launch_subscribe()
NSM_Client * nsm
Definition: ardour_ui.h:452
int setup_windows()
gboolean configure_handler(GdkEventConfigure *conf)
void toggle_send_mmc()
void map_transport_state()
void start_duplicate_routes()
Gtk::Menu * shared_popup_menu()
void add_route_dialog_response(int)
void close_current_dialog()
void reset_main_clocks()
void apply_window_settings(bool)
void toggle_editing_space()
void update_title()
void cancel_solo()
void transport_play_selection()
Gtk::EventBox menu_bar_base
Definition: ardour_ui.h:551
bool session_is_new() const
Definition: ardour_ui.h:230
void toggle_session_options_window()
void unset_dual_punch()
void transport_stop()
void cleanup()
bool trx_record_enable_all_tracks()
sigc::connection _autosave_connection
Definition: ardour_ui.h:496
std::string _announce_string
Definition: ardour_ui.h:827
void session_format_mismatch(std::string, std::string)
void update_format()
AudioClock * big_clock
Definition: ardour_ui.h:328
void remove_video()
ARDOUR::ProcessThread * _process_thread
Definition: ardour_ui.h:808
void post_engine()
PublicEditor & the_editor()
Definition: ardour_ui.h:277
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, bool trigger_visibility)
void trigger_cue_row(int r)
void set_fps_timeout_connection()
void toggle_roll(bool with_abort, bool roll_out_of_bounded_mode)
bool path_button_press(GdkEventButton *ev)
int save_state_canfail(std::string state_name="", bool switch_to_it=false)
void launch_reference()
void meta_route_setup(const std::string &script_path)
void gui_idle_handler()
ARDOUR_UI(int *argcp, char **argvp[], const char *localedir)
ArdourWidgets::ArdourButton midi_panic_button
Definition: ardour_ui.h:813
void archive_session()
int create_recorder()
bool tabbed_window_state_event_handler(GdkEventWindowState *, void *object)
const std::string & announce_string() const
Definition: ardour_ui.h:389
Gtk::Label pdc_info_label
Definition: ardour_ui.h:568
guint32 last_key_press_time
Definition: ardour_ui.h:645
void toggle_use_osc()
void about_signal_response(int response)
std::map< std::string, std::string > route_setup_info(const std::string &script_path)
XMLNode * editor_settings() const
BigClockWindow * create_big_clock_window()
PBD::ScopedConnectionList forever_connections
Definition: ardour_ui.h:789
void toggle_video_sync()
void transport_roll()
void add_routes_part_two()
WM::Proxy< RouteParams_UI > route_params
Definition: ardour_ui.h:677
void update_autosave()
void transport_rec_preroll()
ArdourWidgets::ArdourButton prefs_visibility_button
Definition: ardour_ui.h:841
bool _session_is_new
Definition: ardour_ui.h:638
Gtk::MenuItem * jack_disconnect_item
Definition: ardour_ui.h:761
void step_up_through_tabs()
WM::ProxyWithConstructor< BundleManager > bundle_manager
Definition: ardour_ui.h:692
int ask_about_saving_session(const std::vector< std::string > &actions)
void quick_snapshot_session(bool switch_to_it)
int unload_session(bool hide_stuff=false, bool force_unload=false)
static ARDOUR_UI * instance()
Definition: ardour_ui.h:264
sigc::connection point_one_second_connection
Definition: ardour_ui.h:592
XMLNode * keyboard_settings() const
WM::ProxyWithConstructor< KeyEditor > key_editor
Definition: ardour_ui.h:699
void build_session_from_dialog(SessionDialog &, std::string const &session_name, std::string const &session_path, std::string const &session_template, Temporal::TimeDomain domain)
void button_change_tabbable_visibility(ArdourWidgets::Tabbable *)
bool check_audioengine(Gtk::Window &)
void xrun_handler(samplepos_t)
void check_memory_locking()
void update_disk_space()
void transport_rec_count_in()
gint exit_on_main_window_close(GdkEventAny *)
void rename_session(bool for_unnamed)
void use_menubar_as_top_menubar()
void toggle_session_monitoring_disk()
Gtk::Label peak_thread_work_label
Definition: ardour_ui.h:574
bool timecode_button_press(GdkEventButton *ev)
void count_recenabled_streams(ARDOUR::Route &)
void add_video(Gtk::Window *float_window)
void stop_all_cues(bool immediately)
Meterbridge * meterbridge
Definition: ardour_ui.h:666
WM::Proxy< ExportVideoDialog > export_video_dialog
Definition: ardour_ui.h:679
gint autosave_session()
void attach_to_engine()
void toggle_use_mmc()
void monitor_cut_all()
void toggle_external_sync()
void hide_about()
void session_dirty_changed()
int starting()
int load_session(const std::string &path, const std::string &snapshot, std::string mix_template=std::string())
void display_insufficient_ports_message()
XMLNode * recorder_settings() const
Gtk::Label dsp_load_label
Definition: ardour_ui.h:571
Gtk::Menu * jack_bufsize_menu
Definition: ardour_ui.h:763
WM::Proxy< PluginManagerUI > plugin_manager_ui
Definition: ardour_ui.h:683
void show_plugin_prefs()
PBD::ScopedConnection halt_connection
Definition: ardour_ui.h:790
sigc::connection clock_signal_connection
Definition: ardour_ui.h:514
void transport_loop()
uint32_t rec_enabled_streams
Definition: ardour_ui.h:730
void grab_focus_after_dialog()
void add_route()
Gtk::Notebook & tabs()
SaveAsDialog * save_as_dialog
Definition: ardour_ui.h:652
void update_timecode_format()
void transport_record(bool roll)
void setup_session_options()
int create_trigger_page()
void session_add_midi_route(bool, ARDOUR::RouteGroup *, uint32_t, std::string const &, bool, ARDOUR::PluginInfoPtr, ARDOUR::Plugin::PresetRecord *, ARDOUR::PresentationInfo::order_t order, bool trigger_visibility)
bool start_video_server(Gtk::Window *float_window, bool popup_msg)
Gtk::Tooltips _tooltips
Definition: ardour_ui.h:451
void toggle_punch_in()
void engine_halted(const char *reason, bool free_reason)
Glib::RefPtr< Gtk::ActionGroup > common_actions
Definition: ardour_ui.h:765
void save_session_as()
WM::Proxy< PluginDSPLoadWindow > plugin_dsp_load_window
Definition: ardour_ui.h:684
int build_session_stage_two(std::string const &path, std::string const &snapshot, std::string const &session_template, ARDOUR::BusProfile const &, bool unnamed, Temporal::TimeDomain domain, ARDOUR::samplecnt_t samplerate=0)
void connect_dependents_to_session(ARDOUR::Session *)
void ask_about_scratch_deletion()
void maximise_editing_space()
WM::ProxyWithConstructor< GlobalPortMatrixWindow > midi_port_matrix
Definition: ardour_ui.h:698
void session_dialog(std::string)
bool have_disk_speed_dialog_displayed
Definition: ardour_ui.h:749
sigc::connection fps_connection
Definition: ardour_ui.h:593
int pending_state_dialog()
bool format_button_press(GdkEventButton *ev)
void toggle_latency_switch()
void tabbable_state_change(ArdourWidgets::Tabbable &)
void restore_editing_space()
sigc::connection _numpad_timeout_connection
Definition: ardour_ui.h:617
int create_meterbridge()
LibraryDownloadDialog * create_library_download_window()
void toggle_mixer_space()
gint configure_timeout()
SessionDialog * _session_dialog
Definition: ardour_ui.h:476
void transport_goto_zero()
bool key_event_handler(GdkEventKey *, Gtk::Window *window)
Gtk::Window _main_window
Definition: ardour_ui.h:442
void edit_metadata()
WM::ProxyWithConstructor< SessionOptionEditor > session_option_editor
Definition: ardour_ui.h:690
void audioengine_became_silent()
void set_transport_controllable_state(const XMLNode &)
bool tabbable_visibility_button_press(GdkEventButton *ev, std::string const &tabbable_name)
void toggle_auto_play()
void hide_splash()
void install_actions()
bool _was_dirty
Definition: ardour_ui.h:453
bool _numpad_locate_happening
Definition: ardour_ui.h:614
GtkNotebook * tab_window_root_drop(GtkNotebook *src, GtkWidget *w, gint x, gint y, gpointer user_data)
GUIObjectState * gui_object_state
Definition: ardour_ui.h:324
WM::ProxyWithConstructor< LuaWindow > luawindow
Definition: ardour_ui.h:700
void install_dependent_actions()
void halt_on_xrun_message()
void midi_panic()
Gtk::MenuItem * jack_reconnect_item
Definition: ardour_ui.h:762
void audioengine_setup()
XMLNode * tearoff_settings(const char *) const
void set_session(ARDOUR::Session *)
void transport_numpad_event(int num)
void startup_done()
void start_clocking()
bool audio_button_press(GdkEventButton *ev)
void export_video(bool range=false)
Gtk::VBox top_packer
Definition: ardour_ui.h:512
bool main_window_delete_event(GdkEventAny *)
void save_ardour_state()
void build_menu_bar()
void save_template_dialog_response(int response, SaveTemplateDialog *d)
void get_process_buffers()
int sr_mismatch_dialog(ARDOUR::samplecnt_t, ARDOUR::samplecnt_t)
bool xrun_button_release(GdkEventButton *ev)
DuplicateRouteDialog * duplicate_routes_dialog
Definition: ardour_ui.h:832
ArdourWidgets::ArdourButton trigger_page_visibility_button
Definition: ardour_ui.h:843
void toggle_rc_options_window()
void meta_session_setup(const std::string &script_path)
void transport_numpad_decimal()
bool get_smart_mode() const
void finish()
void check_announcements()
void drop_process_buffers()
void handle_locations_change(ARDOUR::Location *)
void open_session()
PBD::Signal< void()> ActionsReady
Definition: ardour_ui.h:269
KeyEditor * create_key_editor()
GlobalPortMatrixWindow * create_global_port_matrix(ARDOUR::DataType)
void show_about()
PBD::microseconds_t last_peak_grab
Definition: ardour_ui.h:746
ArdourKeyboard * keyboard
Definition: ardour_ui.h:721
WM::ProxyWithConstructor< BigClockWindow > big_clock_window
Definition: ardour_ui.h:693
void hide_application()
ARDOUR::SystemExec * video_server_process
Definition: ardour_ui.h:715
VisibilityGroup _status_bar_visibility
Definition: ardour_ui.h:803
WM::ProxyWithConstructor< BigTransportWindow > big_transport_window
Definition: ardour_ui.h:694
void setup_toplevel_window(Gtk::Window &, const std::string &name, void *owner)
LuaWindow * create_luawindow()
void toggle_click()
void setup_tooltips()
void session_latency_updated(bool)
bool nsm_first_session_opened
Definition: ardour_ui.h:860
WM::ProxyWithConstructor< LibraryDownloadDialog > library_download_window
Definition: ardour_ui.h:696
ARDOUR::PresentationInfo::order_t translate_order(RouteDialogs::InsertAt)
void snapshot_session(bool switch_to_it)
TriggerPage * trigger_page
Definition: ardour_ui.h:450
void setup_profile()
Gtk::Label sample_rate_label
Definition: ardour_ui.h:577
void close_session()
void update_path_label()
void trigger_slot(int c, int r)
void launch_forums()
XMLNode & get_transport_controllable_state()
ArdourLogLevel log_not_acknowledged() const
Definition: ardour_ui.h:246
bool click_button_clicked(GdkEventButton *)
void toggle_keep_tearoffs()
void show_library_download_window()
void transport_goto_start()
void toggle_time_master()
ArdourWidgets::ArdourButton recorder_visibility_button
Definition: ardour_ui.h:842
WM::ProxyWithConstructor< AddVideoDialog > add_video_dialog
Definition: ardour_ui.h:691
void format_disk_space_label(float)
XMLNode * mixer_settings() const
int ambiguous_file(std::string file, std::vector< std::string > hits)
ARDOUR::Session * the_session()
Definition: ardour_ui.h:232
XMLNode * main_window_settings() const
void show_ui_prefs()
bool have_configure_timeout
Definition: ardour_ui.h:742
AddVideoDialog * create_add_video_dialog()
Gtk::Table tabbables_table
Definition: ardour_ui.h:526
void toggle_auto_return()
void engine_stopped()
void parameter_changed(std::string)
void toggle_use_monitor_section()
void save_session_at_its_request(std::string)
void toggle_punch()
void import_metadata()
bool process_snapshot_session_prompter(ArdourWidgets::Prompter &prompter, bool switch_to_it)
void show_tabbable(ArdourWidgets::Tabbable *)
void sfsm_response(StartupFSM::Result)
bool _mixer_on_top
Definition: ardour_ui.h:454
bool run_startup(bool should_be_new, std::string load_template)
Gtk::Label wall_clock_label
Definition: ardour_ui.h:557
Mixer_UI * the_mixer()
Definition: ardour_ui.h:278
void queue_finish()
void save_state(const std::string &state_name="", bool switch_to_it=false)
void manage_templates()
void transport_play_preroll()
bool idle_finish()
void flush_videotimeline_cache(bool localcacheonly=false)
void toggle_follow_edits()
Gtk::Label status_bar_label
Definition: ardour_ui.h:786
WM::ProxyWithConstructor< GlobalPortMatrixWindow > audio_port_matrix
Definition: ardour_ui.h:697
Gtk::Label disk_space_label
Definition: ardour_ui.h:560
ArdourWidgets::ArdourButton mixer_visibility_button
Definition: ardour_ui.h:840
void toggle_meterbridge()
void show_mixer_prefs()
void disk_speed_dialog_gone(int ignored_response, Gtk::MessageDialog *)
Gtk::Label session_path_label
Definition: ardour_ui.h:583
std::list< MidiTracer * > _midi_tracer_windows
Definition: ardour_ui.h:522
WM::Proxy< About > about
Definition: ardour_ui.h:675
gint transport_numpad_timeout()
bool idle_ask_about_quit()
Gtkmm2ext::VisibilityTracker * main_window_visibility
Definition: ardour_ui.h:443
RecorderUI * recorder
Definition: ardour_ui.h:449
int32_t do_engine_start()
Gtk::VBox main_vpacker
Definition: ardour_ui.h:444
Gtk::Label latency_info_label
Definition: ardour_ui.h:567
Gtk::HBox menu_hbox
Definition: ardour_ui.h:552
sigc::connection _engine_dialog_connection
Definition: ardour_ui.h:490
void set_log_not_acknowledged(const ArdourLogLevel lvl)
Definition: ardour_ui.h:247
void reset_focus(Gtk::Widget *)
void set_shuttle_fract(double)
void display_message(const char *prefix, gint prefix_len, Glib::RefPtr< Gtk::TextBuffer::Tag >, Glib::RefPtr< Gtk::TextBuffer::Tag >, const char *msg)
void start_session_load(bool create_new)
void update_peak_thread_work()
void toggle_session_monitoring_in()
void launch_website()
Definition: about.h:29
dialog box and controller for video-file export
Definition: nsm.h:25
Representation of the interface of the Editor class.
video-timline controller and display
Definition: xml++.h:114
GdkModifierType
Definition: gdktypes.h:127
GtkImageIconNameData name
Definition: gtkimage.h:6
struct _GtkNotebookPage GtkNotebookPage
Definition: gtknotebook.h:58
PBD::PropertyDescriptor< uint32_t > order
std::string load_template
std::string session_name
Temporal::samplecnt_t samplecnt_t
Temporal::samplepos_t samplepos_t
std::shared_ptr< PluginInfo > PluginInfoPtr
Definition: plugin.h:65
Definition: ardour_ui.h:188
int64_t microseconds_t
Definition: microseconds.h:28
Editing of options which are obtained from and written back to one of the .rc files.