mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
initial preparations for a distinct livetrax rc option editor
This commit is contained in:
parent
77c93aad66
commit
b0bb3874ed
2 changed files with 9 additions and 1 deletions
|
|
@ -35,6 +35,7 @@
|
||||||
#include "gtkmm2ext/colors.h"
|
#include "gtkmm2ext/colors.h"
|
||||||
|
|
||||||
#include "ardour/dB.h"
|
#include "ardour/dB.h"
|
||||||
|
#include "ardour/profile.h"
|
||||||
#include "ardour/rc_configuration.h"
|
#include "ardour/rc_configuration.h"
|
||||||
#include "ardour/session.h"
|
#include "ardour/session.h"
|
||||||
#include "ardour/types.h"
|
#include "ardour/types.h"
|
||||||
|
|
@ -1216,7 +1217,12 @@ OptionEditorWindow::OptionEditorWindow (PBD::Configuration* c, string const& str
|
||||||
hpacker.set_border_width (4);
|
hpacker.set_border_width (4);
|
||||||
Frame* f = manage (new Frame ());
|
Frame* f = manage (new Frame ());
|
||||||
|
|
||||||
|
if (Profile->get_livetrax()) {
|
||||||
|
f->add (button_box());
|
||||||
|
} else {
|
||||||
f->add (treeview());
|
f->add (treeview());
|
||||||
|
}
|
||||||
|
|
||||||
f->set_shadow_type (Gtk::SHADOW_OUT);
|
f->set_shadow_type (Gtk::SHADOW_OUT);
|
||||||
f->set_border_width (0);
|
f->set_border_width (0);
|
||||||
vpacker.pack_start (*f, true, true);
|
vpacker.pack_start (*f, true, true);
|
||||||
|
|
|
||||||
|
|
@ -726,6 +726,7 @@ protected:
|
||||||
PBD::Configuration* _config;
|
PBD::Configuration* _config;
|
||||||
Gtk::Notebook& notebook() { return _notebook; }
|
Gtk::Notebook& notebook() { return _notebook; }
|
||||||
Gtk::TreeView& treeview() { return option_treeview; }
|
Gtk::TreeView& treeview() { return option_treeview; }
|
||||||
|
Gtk::VBox& button_box() { return _button_box; }
|
||||||
|
|
||||||
class OptionColumns : public Gtk::TreeModel::ColumnRecord
|
class OptionColumns : public Gtk::TreeModel::ColumnRecord
|
||||||
{
|
{
|
||||||
|
|
@ -775,6 +776,7 @@ private:
|
||||||
PBD::ScopedConnection config_connection;
|
PBD::ScopedConnection config_connection;
|
||||||
Gtk::Notebook _notebook;
|
Gtk::Notebook _notebook;
|
||||||
Gtk::TreeView option_treeview;
|
Gtk::TreeView option_treeview;
|
||||||
|
Gtk::VBox _button_box;
|
||||||
std::map<std::string, OptionEditorPage*> _pages;
|
std::map<std::string, OptionEditorPage*> _pages;
|
||||||
|
|
||||||
void add_path_to_treeview (std::string const &, Gtk::Widget&);
|
void add_path_to_treeview (std::string const &, Gtk::Widget&);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue