From b0bb3874edeb3012999c17f063f5dd7b733c1c88 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 14 Apr 2024 11:51:40 -0600 Subject: [PATCH] initial preparations for a distinct livetrax rc option editor --- gtk2_ardour/option_editor.cc | 8 +++++++- gtk2_ardour/option_editor.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 49a42b7b85..b348cb9c89 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -35,6 +35,7 @@ #include "gtkmm2ext/colors.h" #include "ardour/dB.h" +#include "ardour/profile.h" #include "ardour/rc_configuration.h" #include "ardour/session.h" #include "ardour/types.h" @@ -1216,7 +1217,12 @@ OptionEditorWindow::OptionEditorWindow (PBD::Configuration* c, string const& str hpacker.set_border_width (4); Frame* f = manage (new Frame ()); - f->add (treeview()); + if (Profile->get_livetrax()) { + f->add (button_box()); + } else { + f->add (treeview()); + } + f->set_shadow_type (Gtk::SHADOW_OUT); f->set_border_width (0); vpacker.pack_start (*f, true, true); diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index de4ecea600..efbb7300e6 100644 --- a/gtk2_ardour/option_editor.h +++ b/gtk2_ardour/option_editor.h @@ -726,6 +726,7 @@ protected: PBD::Configuration* _config; Gtk::Notebook& notebook() { return _notebook; } Gtk::TreeView& treeview() { return option_treeview; } + Gtk::VBox& button_box() { return _button_box; } class OptionColumns : public Gtk::TreeModel::ColumnRecord { @@ -775,6 +776,7 @@ private: PBD::ScopedConnection config_connection; Gtk::Notebook _notebook; Gtk::TreeView option_treeview; + Gtk::VBox _button_box; std::map _pages; void add_path_to_treeview (std::string const &, Gtk::Widget&);