Unify gain and draw tools.
[ardour.git] / gtk2_ardour / processor_box.h
index a66a6c4a5609db770f30494e06fb327fde556afe..9622011654a7eee104812a452a63ff3d9aff795b 100644 (file)
@@ -91,9 +91,6 @@ class ProcessorWindowProxy : public WM::ProxyBase
     void toggle();
     void set_custom_ui_mode(bool use_custom) { want_custom = use_custom; }
 
-    bool marked;
-    bool valid () const;
-
     void set_state (const XMLNode&);
     XMLNode& get_state () const;
 
@@ -119,6 +116,9 @@ public:
        std::string drag_text () const;
        void set_visual_state (Gtkmm2ext::VisualState, bool);
 
+       bool is_selectable() const {return _selectable;}
+       void set_selectable(bool s) { _selectable = s; }
+       
        enum Position {
                PreFader,
                Fader,
@@ -138,6 +138,7 @@ public:
        void set_control_state (XMLNode const *);
        std::string state_id () const;
        Gtk::Menu* build_controls_menu ();
+       Gtk::Menu* build_send_options_menu ();
 
 protected:
        ArdourButton _button;
@@ -148,6 +149,7 @@ protected:
        virtual void setup_visuals ();
 
 private:
+       bool _selectable;
        void led_clicked();
        void processor_active_changed ();
        void processor_property_changed (const PBD::PropertyChange&);
@@ -158,7 +160,6 @@ private:
        ProcessorBox* _parent;
        boost::shared_ptr<ARDOUR::Processor> _processor;
        Width _width;
-       Gtk::StateType _visual_state;
        PBD::ScopedConnection active_connection;
        PBD::ScopedConnection name_connection;
        PBD::ScopedConnection config_connection;
@@ -205,6 +206,7 @@ private:
        std::list<Control*> _controls;
 
        void toggle_control_visibility (Control *);
+       void toggle_panner_link ();
 
        class PortIcon : public Gtk::DrawingArea {
        public:
@@ -267,6 +269,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
                ProcessorsPaste,
                ProcessorsDelete,
                ProcessorsSelectAll,
+               ProcessorsSelectNone,
                ProcessorsToggleActive,
                ProcessorsAB,
        };
@@ -278,7 +281,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
        void set_route (boost::shared_ptr<ARDOUR::Route>);
        void set_width (Width);
 
-       void processor_operation (ProcessorOperation);
+       bool processor_operation (ProcessorOperation);
 
        void select_all_processors ();
        void deselect_all_processors ();
@@ -436,8 +439,8 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
        void route_property_changed (const PBD::PropertyChange&);
        std::string generate_processor_title (boost::shared_ptr<ARDOUR::PluginInsert> pi);
 
-        typedef std::list<ProcessorWindowProxy*> ProcessorWindowProxies;
-        ProcessorWindowProxies _processor_window_info;
+        //typedef std::list<ProcessorWindowProxy*> ProcessorWindowProxies;
+        //ProcessorWindowProxies _processor_window_info;
 
         ProcessorWindowProxy* find_window_proxy (boost::shared_ptr<ARDOUR::Processor>) const;