cleanup various merge conflict resolution errors/omissions
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 22 Oct 2015 23:19:24 +0000 (19:19 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 22 Feb 2016 20:31:24 +0000 (15:31 -0500)
gtk2_ardour/ardour_ui.cc
gtk2_ardour/ardour_ui.h
gtk2_ardour/ardour_ui_dependents.cc
gtk2_ardour/ardour_ui_ed.cc
gtk2_ardour/editor.cc
gtk2_ardour/editor_canvas.cc
gtk2_ardour/plugin_ui.cc
gtk2_ardour/rc_option_editor.cc
gtk2_ardour/utils.cc

index 76bef4e1eb1d6fcd11e51424cae18e0e25c060b8..645a78178230027ec4f252da20016cce010f7a1a 100644 (file)
@@ -1706,8 +1706,8 @@ ARDOUR_UI::check_audioengine (Gtk::Window& parent)
 {
        if (!AudioEngine::instance()->connected()) {
                MessageDialog msg (parent, string_compose (
-                                          _("%1 is not connected to any audio backend.\n"
-                                            "You cannot open or close sessions in this condition"),
+                                          _("%1 is not connected to any audio backend.\n"
+                                            "You cannot open or close sessions in this condition"),
                                           PROGRAM_NAME));
                pop_back_splash (msg);
                msg.run ();
@@ -1719,7 +1719,7 @@ ARDOUR_UI::check_audioengine (Gtk::Window& parent)
 void
 ARDOUR_UI::open_session ()
 {
-       if (!check_audioengine(*editor)) {
+       if (!check_audioengine (_main_window)) {
                return;
        }
 
@@ -2773,7 +2773,7 @@ ARDOUR_UI::save_template ()
 {
        ArdourPrompter prompter (true);
 
-       if (!check_audioengine(*editor)) {
+       if (!check_audioengine (_main_window)) {
                return;
        }
 
@@ -3181,7 +3181,7 @@ ARDOUR_UI::get_session_parameters (bool quit_on_cancel, bool should_be_new, stri
 void
 ARDOUR_UI::close_session()
 {
-       if (!check_audioengine(*editor)) {
+       if (!check_audioengine (_main_window)) {
                return;
        }
 
@@ -5353,3 +5353,16 @@ ARDOUR_UI::load_bindings ()
        }
 }
 
+void
+ARDOUR_UI::cancel_solo ()
+{
+       if (_session) {
+               if (_session->soloing()) {
+                       _session->set_solo (_session->get_routes(), false);
+               } else if (_session->listening()) {
+                       _session->set_listen (_session->get_routes(), false);
+               }
+
+               _session->clear_all_solo_state (_session->get_routes()); // safeguard, ideally this won't do anything, check the log-window
+       }
+}
index ace51c79cb30452f3e3aa13a073f3820be5cfdd0..180abfdeadb14dda607202b876c3cf6e029834e5 100644 (file)
@@ -145,6 +145,10 @@ namespace Gtk {
        class ProgressBar;
 }
 
+namespace Gtkmm2ext {
+       class Tabbable;
+}
+
 class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
 {
     public:
index 7f75c174eb66834a861d6ee9bb275a0fbc44dd64..ddeebdef83ba8eba31de3488d6c89078e6af3b2b 100644 (file)
@@ -40,6 +40,7 @@
 #include "mixer_ui.h"
 #include "keyboard.h"
 #include "splash.h"
+#include "rc_option_editor.h"
 #include "route_params_ui.h"
 #include "opts.h"
 #include "utils.h"
@@ -104,7 +105,7 @@ ARDOUR_UI::we_have_dependents ()
        boost::function<void (std::string)> pc (boost::bind (&ARDOUR_UI::parameter_changed, this, _1));
        Config->map_parameters (pc);
 
-       ARDOUR_UI_UTILS::reset_dpi ();
+       UIConfiguration::instance().reset_dpi ();
 }
 
 void
index f9978c39fd8750da611655164b61abed0e2fc795..57dd0cc935ddd96dd8e78b9a2af2d5c13f1d6650 100644 (file)
@@ -57,6 +57,7 @@
 #include "global_port_matrix.h"
 #include "location_ui.h"
 #include "main_clock.h"
+#include "rc_option_editor.h"
 
 #include <gtkmm2ext/application.h>
 
index ecececc40c35d4a11b5df36df21490d1039d5374..ed02d6db9fc89c251465b7b84798529a077546d3 100644 (file)
@@ -492,11 +492,11 @@ Editor::Editor ()
        build_snap_type_menu();
        build_edit_point_menu();
 
-       location_marker_color = ARDOUR_UI::config()->color ("location marker");
-       location_range_color = ARDOUR_UI::config()->color ("location range");
-       location_cd_marker_color = ARDOUR_UI::config()->color ("location cd marker");
-       location_loop_color = ARDOUR_UI::config()->color ("location loop");
-       location_punch_color = ARDOUR_UI::config()->color ("location punch");
+       location_marker_color = UIConfiguration::instance().color ("location marker");
+       location_range_color = UIConfiguration::instance().color ("location range");
+       location_cd_marker_color = UIConfiguration::instance().color ("location cd marker");
+       location_loop_color = UIConfiguration::instance().color ("location loop");
+       location_punch_color = UIConfiguration::instance().color ("location punch");
 
        timebar_height = std::max(12., ceil (15. * ARDOUR_UI::ui_scale));
 
index b3668ba194c65d2ac9dde6ff9c3d6d87e17755e3..cd5023916e994f9e7721b1bda7e1bab626663192 100644 (file)
@@ -506,7 +506,7 @@ Editor::maybe_autoscroll (bool allow_horiz, bool allow_vert, bool from_headers)
                return;
        }
        
-       if (!UIConfiguration::instance()->get_autoscroll_editor () || autoscroll_active ()) {
+       if (!UIConfiguration::instance().get_autoscroll_editor () || autoscroll_active ()) {
                return;
        }
 
index 87c020283665c80ebe17b474cc060221fe0d6b72..d351e5efba147195ae2f73f6257e1c0661cf9ec6 100644 (file)
@@ -58,6 +58,7 @@
 #endif
 
 #include "ardour_window.h"
+#include "ardour_ui.h"
 #include "prompter.h"
 #include "plugin_ui.h"
 #include "utils.h"
@@ -361,27 +362,26 @@ PluginUIWindow::on_key_press_event (GdkEventKey* event)
                        }
                }
                return true;
-       } else {
-               /* for us to be getting key press events, there really
-                  MUST be a _pluginui, but just to be safe, check ...
-               */
-
-               if (_pluginui) {
-                       _pluginui->grab_focus();
-                       if (_pluginui->non_gtk_gui()) {
-                               /* pass main window as the window for the event
-                                  to be handled in, not this one, because there are
-                                  no widgets in this window that we want to have
-                                  key focus.
-                               */
-                               return relay_key_press (event, &ARDOUR_UI::instance()->main_window());
-                       } else {
-                               return relay_key_press (event, this);
-                       }
+       } 
+       /* for us to be getting key press events, there really
+          MUST be a _pluginui, but just to be safe, check ...
+       */
+       
+       if (_pluginui) {
+               _pluginui->grab_focus();
+               if (_pluginui->non_gtk_gui()) {
+                       /* pass main window as the window for the event
+                          to be handled in, not this one, because there are
+                          no widgets in this window that we want to have
+                          key focus.
+                       */
+                       return relay_key_press (event, &ARDOUR_UI::instance()->main_window());
                } else {
-                       return false;
+                       return relay_key_press (event, this);
                }
-       }
+       } 
+
+       return false;
 }
 
 bool
index 5bb68bd6e5200334ae5eabe4cad5c0eef4c102b9..5cbe3163faf78e2123f88ed4c5441289911f627f 100644 (file)
@@ -54,6 +54,7 @@
 
 #include "ardour_window.h"
 #include "ardour_dialog.h"
+#include "ardour_ui.h"
 #include "gui_thread.h"
 #include "meter_patterns.h"
 #include "midi_tracer.h"
index 589ec5479410568dd280351b3ffc6e0ecc29f358..eddae2974ee67cfe7d7d0ae6bd896e4c62852be7 100644 (file)
@@ -54,6 +54,7 @@
 #include "gui_thread.h"
 #include "ui_config.h"
 #include "ardour_dialog.h"
+#include "ardour_ui.h"
 
 using namespace std;
 using namespace Gtk;