X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Foption_editor.h;h=f29fe1ed479763e0da2a730e4bce9e9ba9dce37a;hb=885f1fd684da31a730f90ebad23ad9ff39baedb0;hp=51cdc0131f3b095f1137c6976f8d6069baeab47a;hpb=e268a9d2aae5012d494680d851abe1415c2063c6;p=ardour.git diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index 51cdc0131f..f29fe1ed47 100644 --- a/gtk2_ardour/option_editor.h +++ b/gtk2_ardour/option_editor.h @@ -699,11 +699,31 @@ protected: PBD::Configuration* _config; Gtk::Notebook& notebook() { return _notebook; } + Gtk::TreeView& treeview() { return option_treeview; } + + class OptionColumns : public Gtk::TreeModel::ColumnRecord + { + public: + Gtk::TreeModelColumn name; + Gtk::TreeModelColumn widget; + + OptionColumns() { + add (name); + add (widget); + } + }; + + OptionColumns option_columns; + Glib::RefPtr option_tree; private: PBD::ScopedConnection config_connection; Gtk::Notebook _notebook; + Gtk::TreeView option_treeview; std::map _pages; + + void add_path_to_treeview (std::string const &, Gtk::Widget&); + void treeview_row_selected (); }; /** The OptionEditor dialog-as-container base class */ @@ -712,6 +732,8 @@ class OptionEditorContainer : public OptionEditor, public Gtk::VBox public: OptionEditorContainer (PBD::Configuration *, std::string const &); ~OptionEditorContainer() {} +private: + Gtk::HBox hpacker; }; /** The OptionEditor dialog-as-container base class */ @@ -722,6 +744,7 @@ public: ~OptionEditorWindow() {} private: Gtk::VBox container; + Gtk::HBox hpacker; }; #endif /* __gtk_ardour_option_editor_h__ */