initial preparations for a distinct livetrax rc option editor
This commit is contained in:
parent
77c93aad66
commit
b0bb3874ed
|
@ -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);
|
||||
|
|
|
@ -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<std::string, OptionEditorPage*> _pages;
|
||||
|
||||
void add_path_to_treeview (std::string const &, Gtk::Widget&);
|
||||
|
|
Loading…
Reference in New Issue