Implements review comments
[ardour.git] / gtk2_ardour / add_route_dialog.h
index 571420c4be531efd2a8a35efa2083080e764ab7b..eb38338f1f73d8ab8721a56484ddf85567a884ce 100644 (file)
 #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"
 
 #include "ardour_dialog.h"
+#include "instrument_selector.h"
 
 class Editor;
 
 class AddRouteDialog : public ArdourDialog
 {
   public:
-       AddRouteDialog (ARDOUR::Session*);
+       AddRouteDialog ();
        ~AddRouteDialog ();
 
-       bool track ();
-       int channels ();
+        enum TypeWanted {
+               AudioTrack,
+               MidiTrack,
+               MixedTrack,
+               AudioBus
+       };
+        TypeWanted type_wanted() const;
+
+        ARDOUR::ChanCount channels ();
        int count ();
 
-       std::string name_template ();
+        std::string name_template () const;
+        bool name_template_is_default () const;
        std::string track_template ();
+       ARDOUR::PluginInfoPtr requested_instrument ();
 
-       ARDOUR::DataType type();
        ARDOUR::TrackMode mode();
        ARDOUR::RouteGroup* route_group ();
+       enum InsertAt {
+               BeforeSelection,
+               AfterSelection,
+               First,
+               Last
+       };
+       InsertAt insert_at();
 
   private:
        Gtk::Entry name_template_entry;
@@ -62,9 +81,14 @@ 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;
+       InstrumentSelector instrument_combo;
+       Gtk::Label insert_at_label;
+       Gtk::ComboBoxText insert_at_combo;
 
        std::vector<ARDOUR::TemplateInfo> route_templates;