+
+ void build_notebook ();
+ void build_full_control_notebook ();
+ void build_no_control_notebook ();
+
+ void connect_changed_signals ();
+ void block_changed_signals ();
+ void unblock_changed_signals ();
+
+ class SignalBlocker
+ {
+ public:
+ SignalBlocker (EngineControl& engine_control, const std::string& reason);
+
+ ~SignalBlocker ();
+
+ private:
+ EngineControl& ec;
+ std::string m_reason;
+ };
+
+ uint32_t block_signals;
+
+ sigc::connection backend_combo_connection;
+ sigc::connection driver_combo_connection;
+ sigc::connection sample_rate_combo_connection;
+ sigc::connection buffer_size_combo_connection;
+ sigc::connection nperiods_combo_connection;
+ sigc::connection device_combo_connection;
+ sigc::connection input_device_combo_connection;
+ sigc::connection output_device_combo_connection;
+ sigc::connection midi_option_combo_connection;
+ sigc::connection input_latency_connection;
+ sigc::connection output_latency_connection;
+ sigc::connection input_channels_connection;
+ sigc::connection output_channels_connection;
+
+ void on_show ();
+ void on_response (int);
+ void control_app_button_clicked ();
+ void start_stop_button_clicked ();
+ void update_devices_button_clicked ();
+ void use_buffered_io_button_clicked ();
+ void use_latency_button_clicked ();
+ void manage_control_app_sensitivity ();
+ int push_state_to_backend (bool start);
+ void post_push ();
+ void update_sensitivity ();
+ bool start_engine ();
+ bool stop_engine (bool for_latency = false);
+
+ /* latency measurement */
+ void latency_button_clicked ();
+ void latency_back_button_clicked ();
+ bool check_audio_latency_measurement ();
+ bool check_midi_latency_measurement ();
+ sigc::connection latency_timeout;
+ void enable_latency_tab ();
+ void disable_latency_tab ();
+ void start_latency_detection ();
+ void end_latency_detection ();
+
+ void on_switch_page (GtkNotebookPage*, guint page_num);
+ bool on_delete_event (GdkEventAny*);
+
+ void engine_running ();
+ void engine_stopped ();
+ void device_list_changed ();
+
+ PBD::ScopedConnection running_connection;
+ PBD::ScopedConnectionList stopped_connection;
+ PBD::ScopedConnection devicelist_connection;
+
+ void connect_disconnect_click ();
+ void calibrate_audio_latency ();
+ void calibrate_midi_latency (MidiDeviceSettings);
+
+ MidiDeviceSettings _measure_midi;
+ void midi_latency_adjustment_changed(Gtk::Adjustment *, MidiDeviceSettings, bool);
+ void midi_device_enabled_toggled(ArdourButton *, MidiDeviceSettings);
+ sigc::connection lm_back_button_signal;