X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fadd_route_dialog.h;h=1f7fa65d7eb8f2cea8749c8e3f1562c390988f51;hb=0038820f473664a9a4fb524537cd846a9e024661;hp=7cd3307d480b047ace20ee959effee2b491702ee;hpb=36c233fe6ce570ce85224626ce7aba4a2607537f;p=ardour.git diff --git a/gtk2_ardour/add_route_dialog.h b/gtk2_ardour/add_route_dialog.h index 7cd3307d48..1f7fa65d7e 100644 --- a/gtk2_ardour/add_route_dialog.h +++ b/gtk2_ardour/add_route_dialog.h @@ -39,6 +39,7 @@ #include "ardour/template_utils.h" #include "ardour_dialog.h" +#include "instrument_selector.h" class Editor; @@ -66,6 +67,13 @@ class AddRouteDialog : public ArdourDialog ARDOUR::TrackMode mode(); ARDOUR::RouteGroup* route_group (); + enum InsertAt { + BeforeSelection, + AfterSelection, + First, + Last + }; + InsertAt insert_at(); private: Gtk::Entry name_template_entry; @@ -78,7 +86,9 @@ class AddRouteDialog : public ArdourDialog Gtk::Label instrument_label; Gtk::ComboBoxText mode_combo; Gtk::ComboBoxText route_group_combo; - Gtk::ComboBox instrument_combo; + InstrumentSelector instrument_combo; + Gtk::Label insert_at_label; + Gtk::ComboBoxText insert_at_combo; std::vector route_templates; @@ -108,21 +118,6 @@ class AddRouteDialog : public ArdourDialog static std::vector channel_combo_strings; static std::vector bus_mode_strings; - - struct InstrumentListColumns : public Gtk::TreeModel::ColumnRecord { - InstrumentListColumns () { - add (name); - add (info_ptr); - } - Gtk::TreeModelColumn name; - Gtk::TreeModelColumn info_ptr; - }; - - Glib::RefPtr instrument_list; - InstrumentListColumns instrument_list_columns; - - void build_instrument_list (); - uint32_t reasonable_synth_id; }; #endif /* __gtk_ardour_add_route_dialog_h__ */