summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_ui.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-11-03 00:42:16 +0000
committerCarl Hetherington <carl@carlh.net>2011-11-03 00:42:16 +0000
commit22d87a18dc602ef29a82f5c1fa68ba00ecacfe4b (patch)
treee726f9cb19487b1945ee1dc30b18463b429ac6f5 /gtk2_ardour/route_ui.h
parentbcac4f1c96c6c5d67a145c38d2cb56429f0040da (diff)
Tidy up send-to button handling a bit, should fix #4426 and #4427.
git-svn-id: svn://localhost/ardour2/branches/3.0@10406 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_ui.h')
-rw-r--r--gtk2_ardour/route_ui.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/route_ui.h b/gtk2_ardour/route_ui.h
index 82b19c7b73..8c774522ee 100644
--- a/gtk2_ardour/route_ui.h
+++ b/gtk2_ardour/route_ui.h
@@ -219,6 +219,12 @@ class RouteUI : public virtual AxisView
static Gtkmm2ext::ActiveState solo_safe_active_state (boost::shared_ptr<ARDOUR::Route>);
static Gtkmm2ext::ActiveState mute_active_state (ARDOUR::Session*, boost::shared_ptr<ARDOUR::Route>);
+ /** Emitted when a bus has been set or unset from `display sends to this bus' mode
+ * by a click on the `Sends' button. The parameter is the route that the sends are
+ * to, or 0 if no route is now in this mode.
+ */
+ static sigc::signal<void, boost::shared_ptr<ARDOUR::Route> > BusSendDisplayChanged;
+
protected:
PBD::ScopedConnectionList route_connections;
bool self_destruct;
@@ -236,6 +242,8 @@ class RouteUI : public virtual AxisView
void route_gui_changed (std::string);
virtual void route_color_changed () {}
+ virtual void bus_send_display_changed (boost::shared_ptr<ARDOUR::Route>);
+
private:
void check_rec_enable_sensitivity ();
void parameter_changed (std::string const &);
@@ -269,6 +277,9 @@ class RouteUI : public virtual AxisView
std::list<BindableToggleButton*> _invert_buttons;
Gtk::Menu* _invert_menu;
+ static void set_showing_sends_to (boost::shared_ptr<ARDOUR::Route>);
+ static boost::weak_ptr<ARDOUR::Route> _showing_sends_to;
+
static uint32_t _max_invert_buttons;
};