summaryrefslogtreecommitdiff
path: root/gtk2_ardour/add_route_dialog.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-02-02 04:12:23 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-02-02 04:12:23 +0000
commitaf90dc2bae772cd63d6078e24fb5ead6832bb7eb (patch)
tree105e16bfa7f9a7bd2eab5bfdbf1e6fd3dc444d5f /gtk2_ardour/add_route_dialog.h
parente9a6d86b9b046374a9f0d669e97fe4249756fa9d (diff)
add a way to create a new MIDI track with an instrument pre-selected
git-svn-id: svn://localhost/ardour2/branches/3.0@11421 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/add_route_dialog.h')
-rw-r--r--gtk2_ardour/add_route_dialog.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/gtk2_ardour/add_route_dialog.h b/gtk2_ardour/add_route_dialog.h
index 49b3fc47cd..a39c1ff8b9 100644
--- a/gtk2_ardour/add_route_dialog.h
+++ b/gtk2_ardour/add_route_dialog.h
@@ -29,9 +29,12 @@
#include <gtkmm/adjustment.h>
#include <gtkmm/spinbutton.h>
#include <gtkmm/button.h>
+#include <gtkmm/combobox.h>
#include <gtkmm/comboboxtext.h>
#include <gtkmm/treemodel.h>
+#include <gtkmm/liststore.h>
+#include "ardour/plugin.h"
#include "ardour/types.h"
#include "ardour/template_utils.h"
@@ -52,7 +55,8 @@ class AddRouteDialog : public ArdourDialog
std::string name_template ();
std::string track_template ();
-
+ ARDOUR::PluginInfoPtr requested_instrument ();
+
ARDOUR::TrackMode mode();
ARDOUR::RouteGroup* route_group ();
@@ -62,9 +66,12 @@ class AddRouteDialog : public ArdourDialog
Gtk::Adjustment routes_adjustment;
Gtk::SpinButton routes_spinner;
Gtk::ComboBoxText channel_combo;
+ Gtk::Label configuration_label;
Gtk::Label mode_label;
+ Gtk::Label instrument_label;
Gtk::ComboBoxText mode_combo;
Gtk::ComboBoxText route_group_combo;
+ Gtk::ComboBox instrument_combo;
std::vector<ARDOUR::TemplateInfo> route_templates;
@@ -94,6 +101,20 @@ 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 ();
};
#endif /* __gtk_ardour_add_route_dialog_h__ */