mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Change the template pulldown menu into a tree list. Populate the Description view when a template is selected.
This commit is contained in:
parent
0a0eec2adc
commit
47d86cf54d
4 changed files with 94 additions and 67 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue