fix ordering of track view list & route list resync in editor, to avoid clearing...
[ardour.git] / gtk2_ardour / route_ui.h
index f22b0f2967715b47979ba0fe3fee7e0563d27d53..f58c8f4fe94d8df7e91521b16f4f909521f2c73e 100644 (file)
@@ -44,9 +44,14 @@ class BindableToggleButton;
 class RouteUI : public virtual AxisView
 {
   public:
+       RouteUI(ARDOUR::Session&, const char*, const char*, const char*);
        RouteUI(boost::shared_ptr<ARDOUR::Route>, ARDOUR::Session&, const char*, const char*, const char*);
+
        virtual ~RouteUI();
 
+       virtual void set_route (boost::shared_ptr<ARDOUR::Route>);
+       void set_button_names (const char*, const char*, const char*);
+
        bool is_track() const;
        bool is_audio_track() const;
 
@@ -66,6 +71,8 @@ class RouteUI : public virtual AxisView
 
        bool ignore_toggle;
        bool wait_for_release;
+       bool multiple_mute_change;
+       bool multiple_solo_change;
 
        BindableToggleButton* mute_button;
        BindableToggleButton* solo_button;
@@ -82,6 +89,8 @@ class RouteUI : public virtual AxisView
        void ensure_xml_node ();
 
        XMLNode* get_child_xml_node (const string & childname);
+
+       void save_as_template ();
        
        bool mute_press(GdkEventButton*);
        bool mute_release(GdkEventButton*);
@@ -154,6 +163,19 @@ class RouteUI : public virtual AxisView
 
        void reversibly_apply_route_boolean (string name, void (ARDOUR::Route::*func)(bool, void*), bool, void *);
        void reversibly_apply_audio_track_boolean (string name, void (ARDOUR::AudioTrack::*func)(bool, void*), bool, void *);
+
+  protected:
+       std::vector<sigc::connection> connections;
+       std::string s_name;
+       std::string m_name;
+       std::string r_name;
+
+       bool self_destruct; 
+
+       void init ();
+       void reset ();
+
+       void save_template (const std::string&);
 };
 
 #endif /* __ardour_route_ui__ */