summaryrefslogtreecommitdiff
path: root/gtk2_ardour/add_route_dialog.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-24 18:39:15 -0500
committerDavid Robillard <d@drobilla.net>2014-12-24 18:39:15 -0500
commit10ad55fcf59c6a89ed42c9a78024e184e153d81e (patch)
tree0ab520a491575fcc97d4b24cf284fb9c28ae5eef /gtk2_ardour/add_route_dialog.h
parent49b7a468052951cfb46a4205c02007ac62f0141d (diff)
Factor out instrument selector.
Diffstat (limited to 'gtk2_ardour/add_route_dialog.h')
-rw-r--r--gtk2_ardour/add_route_dialog.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/gtk2_ardour/add_route_dialog.h b/gtk2_ardour/add_route_dialog.h
index 7cd3307d48..3a5501e15f 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;
@@ -78,7 +79,7 @@ class AddRouteDialog : public ArdourDialog
Gtk::Label instrument_label;
Gtk::ComboBoxText mode_combo;
Gtk::ComboBoxText route_group_combo;
- Gtk::ComboBox instrument_combo;
+ InstrumentSelector instrument_combo;
std::vector<ARDOUR::TemplateInfo> route_templates;
@@ -108,21 +109,6 @@ class AddRouteDialog : public ArdourDialog
static std::vector<std::string> channel_combo_strings;
static std::vector<std::string> bus_mode_strings;
-
- struct InstrumentListColumns : public Gtk::TreeModel::ColumnRecord {
- InstrumentListColumns () {
- add (name);
- add (info_ptr);
- }
- Gtk::TreeModelColumn<std::string> name;
- Gtk::TreeModelColumn<ARDOUR::PluginInfoPtr> info_ptr;
- };
-
- Glib::RefPtr<Gtk::ListStore> instrument_list;
- InstrumentListColumns instrument_list_columns;
-
- void build_instrument_list ();
- uint32_t reasonable_synth_id;
};
#endif /* __gtk_ardour_add_route_dialog_h__ */