variable name change: make purpose of formerly named "_values" in LV2 plugin UI code...
[ardour.git] / gtk2_ardour / engine_dialog.h
index 7bc0b59a3030c57a432a645b102d2ef637568b86..39ae276162edcf6164e772f1150875ab5603866a 100644 (file)
@@ -82,8 +82,10 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
     Gtk::SpinButton ports_spinner;
 
     Gtk::Label      have_control_text;
-    Gtk::Button     control_app_button;
+    ArdourButton    control_app_button;
     ArdourButton    midi_devices_button;
+    ArdourButton    start_stop_button;
+    ArdourButton    update_devices_button;
 
     Gtk::Button     connect_disconnect_button;
 
@@ -106,7 +108,6 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
 
     Gtk::Button* cancel_button;
     Gtk::Button* ok_button;
-    Gtk::Button* apply_button;
 
     /* MIDI Tab */
 
@@ -138,6 +139,12 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
 
     std::string bufsize_as_string (uint32_t);
 
+       std::vector<float> get_default_sample_rates ();
+       std::vector<uint32_t> get_default_buffer_sizes ();
+
+       std::vector<float> get_sample_rates_for_all_devices ();
+       std::vector<uint32_t> get_buffer_sizes_for_all_devices ();
+
     float get_rate() const;
     uint32_t get_buffer_size() const;
     uint32_t get_input_channels() const;
@@ -151,6 +158,9 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
     std::string get_backend() const;
     std::string get_midi_option () const;
 
+       std::string get_default_device (const std::string&,
+                                       const std::vector<std::string>&);
+
     void device_changed ();
     void input_device_changed ();
     void output_device_changed ();
@@ -158,8 +168,8 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
     bool set_device_popdown_strings ();
     bool set_input_device_popdown_strings ();
     bool set_output_device_popdown_strings ();
-    void set_samplerate_popdown_strings (const std::string& dev_name);
-    void set_buffersize_popdown_strings (const std::string& dev_name);
+    void set_samplerate_popdown_strings ();
+    void set_buffersize_popdown_strings ();
     void list_devices ();
     void show_buffer_duration ();
 
@@ -282,13 +292,19 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
     void on_show ();
     void on_response (int);
     void control_app_button_clicked ();
+    void start_stop_button_clicked ();
+    void update_devices_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 ();
 
     /* 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;