summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-03-06 18:27:23 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-03-06 18:27:23 -0500
commit0d849c14984ecf9a3577b61f9a3f4608cbee6463 (patch)
tree926d197f2c36b63278c98c9ee1062dcb53fac749 /gtk2_ardour/option_editor.h
parentcdd254033ef8243676faa95fead8f4b11d6a2a70 (diff)
change OptionEditor to use a left-hand-side treeview to navigate the notebook
Diffstat (limited to 'gtk2_ardour/option_editor.h')
-rw-r--r--gtk2_ardour/option_editor.h23
1 files changed, 23 insertions, 0 deletions
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<std::string> name;
+ Gtk::TreeModelColumn<Gtk::Widget*> widget;
+
+ OptionColumns() {
+ add (name);
+ add (widget);
+ }
+ };
+
+ OptionColumns option_columns;
+ Glib::RefPtr<Gtk::TreeStore> option_tree;
private:
PBD::ScopedConnection config_connection;
Gtk::Notebook _notebook;
+ Gtk::TreeView option_treeview;
std::map<std::string, OptionEditorPage*> _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__ */