X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Froute_params_ui.h;h=e9fca333abe78f26a4ad68b15b954c113367109e;hb=a5abcd306ba589411aa8b4e5b2729621bdc77d3a;hp=deaac6f279ff9cfcd85ef6a9e9bdf22db3752091;hpb=209d967b1bb80a9735d690d8f4f0455ecb9970ca;p=ardour.git diff --git a/gtk2_ardour/route_params_ui.h b/gtk2_ardour/route_params_ui.h index deaac6f279..e9fca333ab 100644 --- a/gtk2_ardour/route_params_ui.h +++ b/gtk2_ardour/route_params_ui.h @@ -15,7 +15,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id$ */ #ifndef __ardour_route_params_ui_h__ @@ -23,23 +22,32 @@ #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include #include -#include #include -#include +#include #include "io_selector.h" #include "ardour_dialog.h" -#include "keyboard_target.h" -#include "redirect_box.h" -#include "route_redirect_selection.h" +#include "processor_box.h" +#include "route_processor_selection.h" +#include "latency_gui.h" namespace ARDOUR { class Route; class Send; - class Insert; + class Processor; class Session; class PortInsert; class Connection; @@ -51,7 +59,7 @@ class PluginSelector; class RouteParams_UI : public ArdourDialog { public: - RouteParams_UI (ARDOUR::AudioEngine&); + RouteParams_UI (); ~RouteParams_UI(); void set_session (ARDOUR::Session *); @@ -59,8 +67,6 @@ class RouteParams_UI : public ArdourDialog PluginSelector& plugin_selector() { return *_plugin_selector; } private: - ARDOUR::AudioEngine& engine; - Gtk::HBox global_hpacker; Gtk::VBox global_vpacker; Gtk::ScrolledWindow scroller; @@ -69,7 +75,6 @@ class RouteParams_UI : public ArdourDialog Gtk::VBox mixer_scroller_vpacker; Gtk::VBox list_vpacker; - Gtk::CList route_select_list; Gtk::Label route_list_button_label; Gtk::Button route_list_button; Gtk::ScrolledWindow route_select_scroller; @@ -79,14 +84,14 @@ class RouteParams_UI : public ArdourDialog Gtk::Frame output_frame; Gtk::HPaned pre_redir_hpane; Gtk::HPaned post_redir_hpane; - + Gtk::Frame route_select_frame; Gtk::HBox route_hpacker; Gtk::VBox route_vpacker; - RedirectBox * pre_redirect_box; - RedirectBox * post_redirect_box; + ProcessorBox * pre_insert_box; + ProcessorBox * post_insert_box; Gtk::HPaned list_hpane; @@ -98,7 +103,18 @@ class RouteParams_UI : public ArdourDialog Gtk::VBox choice_vpacker; + Gtk::Frame latency_frame; + Gtk::VBox latency_packer; + Gtk::HButtonBox latency_button_box; + Gtk::Button latency_apply_button; + LatencyGUI* latency_widget; + Gtk::Label delay_label; + sigc::connection latency_conn; + sigc::connection delay_conn; + sigc::connection latency_apply_conn; + void refresh_latency (); + Gtk::ToggleButton input_button; Gtk::ToggleButton output_button; Gtk::Label track_input_label; @@ -113,15 +129,15 @@ class RouteParams_UI : public ArdourDialog PluginSelector *_plugin_selector; RouteRedirectSelection _rr_selection; - ARDOUR::Route *_route; - SigC::Connection _route_conn; - SigC::Connection _route_ds_conn; + boost::shared_ptr _route; + sigc::connection _route_conn; + sigc::connection _route_ds_conn; - ARDOUR::Redirect * _pre_redirect; - SigC::Connection _pre_plugin_conn; + boost::shared_ptr _pre_processor; + sigc::connection _pre_plugin_conn; - ARDOUR::Redirect * _post_redirect; - SigC::Connection _post_plugin_conn; + boost::shared_ptr _post_processor; + sigc::connection _post_plugin_conn; enum ConfigView { @@ -134,33 +150,48 @@ class RouteParams_UI : public ArdourDialog }; ConfigView _current_view; + + + /* treeview */ + struct RouteDisplayModelColumns : public Gtk::TreeModel::ColumnRecord { + RouteDisplayModelColumns() { + add(text); + add(route); + } + Gtk::TreeModelColumn text; + Gtk::TreeModelColumn > route; + }; + + RouteDisplayModelColumns route_display_columns ; + Gtk::TreeView route_display; + Glib::RefPtr route_display_model; + - void add_route (ARDOUR::Route*); + void add_routes (ARDOUR::Session::RouteList&); - void route_name_changed (void *src, ARDOUR::Route *route); - void route_removed (ARDOUR::Route *route); + void route_name_changed (boost::shared_ptr route); + void route_removed (boost::shared_ptr route); - void route_selected (gint row, gint col, GdkEvent *ev); - void route_unselected (gint row, gint col, GdkEvent *ev); + void route_selected(); + //void route_unselected (gint row, gint col, GdkEvent *ev); void setup_io_frames(); void cleanup_io_frames(); void cleanup_pre_view(bool stopupdate = true); void cleanup_post_view(bool stopupdate = true); - - + void cleanup_latency_frame (); + void setup_latency_frame (); - void redirects_changed (void *src); + void processors_changed (); - void setup_redirect_boxes(); - void cleanup_redirect_boxes(); + void setup_processor_boxes(); + void cleanup_processor_boxes(); - void redirect_selected (ARDOUR::Redirect *, ARDOUR::Placement); - void redirect_unselected (ARDOUR::Redirect *); + void redirect_selected (boost::shared_ptr, ARDOUR::Placement); - void plugin_going_away (ARDOUR::Plugin *foo, ARDOUR::Placement); - void redirect_going_away (ARDOUR::Redirect *foo); + void plugin_going_away (ARDOUR::Placement); + void redirect_going_away (boost::shared_ptr); gint edit_input_configuration (GdkEventButton *ev); gint edit_output_configuration (GdkEventButton *ev); @@ -168,12 +199,12 @@ class RouteParams_UI : public ArdourDialog void update_routeinfo (ARDOUR::Route * route); Gtk::Menu *track_menu; - void show_track_menu(gint arg); + void show_track_menu(); void update_title (); //void unselect_all_redirects (); - SigC::Connection update_connection; + sigc::connection update_connection; void update_views (); void start_updating ();