X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fardour_ui.h;h=d570dc79bb2d3abef156da56e60b4b78aa226a93;hb=df28a71252f4593c65ec03611586dfc8a62a834f;hp=c6984d75c44138b48a9bfa3e14506c28742f85ee;hpb=d03352cfac292a8c4ac92d811994594b027bc0d8;p=ardour.git diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index c6984d75c4..d570dc79bb 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -74,8 +74,6 @@ #include "add_route_dialog.h" #include "ardour_dialog.h" #include "ardour_window.h" -#include "dsp_load_indicator.h" -#include "disk_space_indicator.h" #include "editing.h" #include "enums.h" #include "mini_timeline.h" @@ -98,11 +96,13 @@ #include "keyeditor.h" #include "location_ui.h" #include "lua_script_manager.h" +#include "plugin_dspload_window.h" #include "rc_option_editor.h" #include "route_dialogs.h" #include "route_params_ui.h" #include "session_option_editor.h" #include "speaker_dialog.h" +#include "transport_masters_dialog.h" #else class About; class AddRouteDialog; @@ -121,6 +121,8 @@ class SessionOptionEditor; class SpeakerDialog; class GlobalPortMatrixWindow; class IdleOMeter; +class PluginDSPLoadWindow; +class TransportMastersWindow; #endif class VideoTimeLine; @@ -163,6 +165,8 @@ namespace ArdourWidgets { class Tabbable; } +#define MAX_LUA_ACTION_SCRIPTS 12 + class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr, public TransportControlProvider { public: @@ -200,6 +204,9 @@ public: bool get_smart_mode () const; + RCOptionEditor* get_rc_option_editor() { return rc_option_editor; } + void show_tabbable (ArdourWidgets::Tabbable*); + int get_session_parameters (bool quit_on_cancel, bool should_be_new = false, std::string load_template = ""); int build_session_from_dialog (SessionDialog&, const std::string& session_name, const std::string& session_path); bool ask_about_loading_existing_session (const std::string& session_path); @@ -229,6 +236,11 @@ public: void toggle_monitor_section_visibility (); void toggle_keep_tearoffs(); + void toggle_vca_pane(); +#ifdef MIXBUS + void toggle_mixbus_pane(); +#endif + void reset_focus (Gtk::Widget*); static PublicEditor* _instance; @@ -288,7 +300,8 @@ public: void flush_videotimeline_cache (bool localcacheonly=false); void export_video (bool range = false); - 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); + 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); void session_add_mixed_track (const ARDOUR::ChanCount&, const ARDOUR::ChanCount&, ARDOUR::RouteGroup*, uint32_t, std::string const &, bool strict_io, @@ -303,6 +316,8 @@ public: ARDOUR::PluginInfoPtr, ARDOUR::Plugin::PresetRecord*, ARDOUR::PresentationInfo::order_t order); + void session_add_foldback_bus (uint32_t, std::string const &); + void display_insufficient_ports_message (); void attach_to_engine (); @@ -392,7 +407,6 @@ private: bool _initial_verbose_plugin_scan; bool first_time_engine_run; - void show_tabbable (ArdourWidgets::Tabbable*); void hide_tabbable (ArdourWidgets::Tabbable*); void detach_tabbable (ArdourWidgets::Tabbable*); void attach_tabbable (ArdourWidgets::Tabbable*); @@ -488,8 +502,10 @@ private: ShuttleControl shuttle_box; MiniTimeline mini_timeline; TimeInfoBox* time_info_box; - DspLoadIndicator dsp_load_indicator; - DiskSpaceIndicator disk_space_indicator; + + + ArdourWidgets::ArdourVSpacer meterbox_spacer; + ArdourWidgets::ArdourVSpacer meterbox_spacer2; ArdourWidgets::ArdourButton auto_return_button; ArdourWidgets::ArdourButton follow_edits_button; @@ -500,11 +516,11 @@ private: ArdourWidgets::ArdourButton feedback_alert_button; ArdourWidgets::ArdourButton error_alert_button; - ArdourWidgets::ArdourButton action_script_call_btn[10]; + ArdourWidgets::ArdourButton action_script_call_btn[MAX_LUA_ACTION_SCRIPTS]; Gtk::Table action_script_table; Gtk::VBox alert_box; - Gtk::VBox meter_box; + Gtk::Table editor_meter_table; ArdourWidgets::ArdourButton editor_meter_peak_display; LevelMeterHBox * editor_meter; float editor_meter_max_peak; @@ -559,24 +575,19 @@ private: Gtk::Label wall_clock_label; gint update_wall_clock (); - Gtk::Label disk_space_label; + Gtk::Label disk_space_label; void update_disk_space (); + void format_disk_space_label (float); Gtk::Label timecode_format_label; void update_timecode_format (); - Gtk::Label cpu_load_label; + Gtk::Label dsp_load_label; void update_cpu_load (); - Gtk::Label xrun_label; - void update_xrun_count (); - Gtk::Label peak_thread_work_label; void update_peak_thread_work (); - Gtk::Label buffer_load_label; - void update_buffer_load (); - Gtk::Label sample_rate_label; void update_sample_rate (ARDOUR::samplecnt_t); @@ -678,6 +689,8 @@ private: WM::Proxy export_video_dialog; WM::Proxy lua_script_window; WM::Proxy idleometer; + WM::Proxy plugin_dsp_load_window; + WM::Proxy transport_masters_window; /* Windows/Dialogs that require a creator method */ @@ -781,9 +794,7 @@ private: void audioengine_setup (); - void display_message (const char *prefix, gint prefix_len, - Glib::RefPtr ptag, Glib::RefPtr mtag, - const char *msg); + void display_message (const char* prefix, gint prefix_len, Glib::RefPtr, Glib::RefPtr, const char* msg); Gtk::Label status_bar_label; bool status_bar_button_press (GdkEventButton*);