diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-17 13:24:49 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-17 13:32:01 -0500 |
commit | ed8b8ffc719b18f393bd4a12a617a71088d0ed92 (patch) | |
tree | 882b070a1b0f1f363df22091a7d0100b10372365 /gtk2_ardour/add_route_dialog.h | |
parent | 6c49d9555ab57ea4e0360a9c37205b605d5b090a (diff) |
Track Templates: redesign of Add Track dialog.
Diffstat (limited to 'gtk2_ardour/add_route_dialog.h')
-rw-r--r-- | gtk2_ardour/add_route_dialog.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gtk2_ardour/add_route_dialog.h b/gtk2_ardour/add_route_dialog.h index 718df8842d..0daef1048e 100644 --- a/gtk2_ardour/add_route_dialog.h +++ b/gtk2_ardour/add_route_dialog.h @@ -31,8 +31,12 @@ #include <gtkmm/button.h> #include <gtkmm/combobox.h> #include <gtkmm/comboboxtext.h> +#include <gtkmm/textview.h> #include <gtkmm/treemodel.h> +#include <gtkmm/treeview.h> +#include <gtkmm/treestore.h> #include <gtkmm/liststore.h> +#include <gtkmm/scrolledwindow.h> #include "ardour/plugin.h" #include "ardour/types.h" @@ -80,6 +84,8 @@ public: RouteDialogs::InsertAt insert_at(); bool use_strict_io(); + std::string get_template_path(); + private: Gtk::Entry name_template_entry; Gtk::ComboBoxText track_bus_combo; @@ -87,6 +93,13 @@ private: Gtk::SpinButton routes_spinner; Gtk::ComboBoxText channel_combo; Gtk::Label configuration_label; + Gtk::Label manual_label; + Gtk::Label add_label; + Gtk::Label type_label; + Gtk::Label name_label; + Gtk::Label group_label; + Gtk::Label insert_label; + Gtk::Label strict_io_label; Gtk::Label mode_label; Gtk::Label instrument_label; Gtk::ComboBoxText mode_combo; @@ -108,6 +121,30 @@ private: bool route_separator (const Glib::RefPtr<Gtk::TreeModel> &m, const Gtk::TreeModel::iterator &i); void maybe_update_name_template_entry (); + struct TrackTemplateColumns : public Gtk::TreeModel::ColumnRecord { + TrackTemplateColumns () { + add (name); + add (path); + add (description); + add (created_with); + } + + Gtk::TreeModelColumn<std::string> name; + Gtk::TreeModelColumn<std::string> path; + Gtk::TreeModelColumn<std::string> description; + Gtk::TreeModelColumn<std::string> created_with; + }; + + TrackTemplateColumns track_template_columns; + + Glib::RefPtr<Gtk::TreeStore> trk_template_model; + Gtk::TreeView trk_template_chooser; + + void trk_template_row_selected (); + + Gtk::TextView trk_template_desc; + Gtk::Frame trk_template_desc_frame; + void reset_template_option_visibility (); void new_group_dialog_finished (int, RouteGroupDialog*); void on_show (); |