#include "axis_view.h"
#include "selectable.h"
+#include "window_manager.h"
namespace ARDOUR {
class AudioTrack;
class ArdourWindow;
class IOSelectorWindow;
+class RoutePinWindowProxy : public WM::ProxyBase
+{
+ public:
+ RoutePinWindowProxy (std::string const &, boost::shared_ptr<ARDOUR::Route>);
+ ~RoutePinWindowProxy();
+
+ Gtk::Window* get (bool create = false);
+ ARDOUR::SessionHandlePtr* session_handle();
+
+ private:
+ boost::weak_ptr<ARDOUR::Route> _route;
+
+ void route_going_away ();
+ PBD::ScopedConnection going_away_connection;
+};
+
class RouteUI : public virtual AxisView
{
public:
void send_blink (bool);
sigc::connection send_blink_connection;
+ sigc::connection rec_blink_connection;
+
Gtk::Menu* mute_menu;
Gtk::Menu* solo_menu;
Gtk::Menu* sends_menu;
void solo_changed(bool, void*);
void solo_changed_so_update_mute ();
- void mute_changed(void*);
void listen_changed(void*);
virtual void processors_changed (ARDOUR::RouteProcessorChange) {}
void route_rec_enable_changed();
int set_color_from_route ();
- void remove_this_route (bool apply_to_selection = false);
- static gint idle_remove_this_route (RouteUI *);
-
void route_rename();
+ void manage_pins ();
+ void maybe_add_route_print_mgr ();
+
virtual void property_changed (const PBD::PropertyChange&);
void route_removed ();
virtual void route_active_changed () {}
void set_route_active (bool, bool);
+ void duplicate_selected_routes ();
Gtk::Menu* record_menu;
void build_record_menu ();
void disconnect_input ();
void disconnect_output ();
- virtual void update_rec_display ();
+ virtual void blink_rec_display (bool onoff);
void update_mute_display ();
void update_solo_display ();
virtual void map_frozen ();
void adjust_latency ();
+ bool process_save_template_prompter (ArdourPrompter& prompter, const std::string& dir);
void save_as_template ();
void open_remote_control_id_dialog ();
void toggle_comment_editor ();
gint comment_key_release_handler (GdkEventKey*);
- void comment_changed (void *src);
+ void comment_changed ();
void comment_edited ();
bool ignore_comment_edit;
virtual void bus_send_display_changed (boost::shared_ptr<ARDOUR::Route>);
+ static std::string program_port_prefix;
+
private:
void check_rec_enable_sensitivity ();
void parameter_changed (std::string const &);
void relabel_solo_button ();
+ void track_mode_changed ();
std::string route_state_id () const;
+protected:
struct SoloMuteRelease {
SoloMuteRelease (bool was_active)
: active (was_active)
SoloMuteRelease* _solo_release;
SoloMuteRelease* _mute_release;
+private:
void setup_invert_buttons ();
void set_invert_button_state ();
void invert_menu_toggled (uint32_t);
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;
};