diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-14 16:14:42 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-14 16:14:42 -0500 |
commit | 47d86cf54d64ae2f65c7ffa961ccc583d33f3382 (patch) | |
tree | 5d4ef1d0f153ccd8cfc51e4b8547724f79d46350 /gtk2_ardour/session_dialog.h | |
parent | 0a0eec2adca785e6fff1b1e798bbded196188f4c (diff) |
Change the template pulldown menu into a tree list. Populate the Description view when a template is selected.
Diffstat (limited to 'gtk2_ardour/session_dialog.h')
-rw-r--r-- | gtk2_ardour/session_dialog.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/gtk2_ardour/session_dialog.h b/gtk2_ardour/session_dialog.h index 5f4062fc1b..5cb85a75ef 100644 --- a/gtk2_ardour/session_dialog.h +++ b/gtk2_ardour/session_dialog.h @@ -30,6 +30,7 @@ #include <gtkmm/radiobutton.h> #include <gtkmm/filechooserbutton.h> #include <gtkmm/scrolledwindow.h> +#include <gtkmm/textview.h> #include <gtkmm/treeview.h> #include <gtkmm/treestore.h> #include <gtkmm/checkbutton.h> @@ -165,26 +166,31 @@ private: SessionTemplateColumns () { add (name); add (path); - add (desc); + add (description); + add (created_with); } Gtk::TreeModelColumn<std::string> name; Gtk::TreeModelColumn<std::string> path; - Gtk::TreeModelColumn<std::string> desc; + Gtk::TreeModelColumn<std::string> description; + Gtk::TreeModelColumn<std::string> created_with; }; SessionTemplateColumns session_template_columns; - Glib::RefPtr<Gtk::ListStore> template_model; - Gtk::ComboBox template_chooser; + + Glib::RefPtr<Gtk::TreeStore> template_model; + Gtk::TreeView template_chooser; + Gtk::ScrolledWindow template_scroller; + + void template_row_selected (); + + Gtk::TextView template_desc; Gtk::VBox session_new_vbox; Gtk::VBox session_existing_vbox; Gtk::Expander more_new_session_options_button; - Gtk::CheckButton use_template_button; std::string load_template_override; - void template_checkbox_toggled (); - void more_new_session_options_button_clicked(); void new_name_changed (); void new_name_activated (); |