Remove unused code.
[ardour.git] / gtk2_ardour / processor_box.h
index 68ba7e9679e2f9a562f6009c657b2de218fa6548..bf02caf3d7be6fb5d2dde0eaf052f421350a8176 100644 (file)
@@ -58,7 +58,7 @@
 class MotionController;
 class PluginSelector;
 class PluginUIWindow;
-class RouteRedirectSelection;
+class RouteProcessorSelection;
 class MixerStrip;
 
 namespace ARDOUR {
@@ -107,7 +107,7 @@ public:
        Gtk::EventBox& action_widget ();
        Gtk::Widget& widget ();
        std::string drag_text () const;
-       void set_visual_state (Gtk::StateType);
+       void set_visual_state (Gtkmm2ext::VisualState, bool);
 
        enum Position {
                PreFader,
@@ -134,7 +134,8 @@ private:
        void led_clicked();
        void processor_active_changed ();
        void processor_property_changed (const PBD::PropertyChange&);
-       std::string name () const;
+       std::string name (Width) const;
+       void setup_tooltip ();
 
        boost::shared_ptr<ARDOUR::Processor> _processor;
        Width _width;
@@ -193,8 +194,18 @@ private:
 class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARDOUR::SessionHandlePtr
 {
   public:
+       enum ProcessorOperation {
+               ProcessorsCut,
+               ProcessorsCopy,
+               ProcessorsPaste,
+               ProcessorsDelete,
+               ProcessorsSelectAll,
+               ProcessorsToggleActive,
+               ProcessorsAB,
+       };
+
        ProcessorBox (ARDOUR::Session*, boost::function<PluginSelector*()> get_plugin_selector,
-                     RouteRedirectSelection&, MixerStrip* parent, bool owner_is_mixer = false);
+                     RouteProcessorSelection&, MixerStrip* parent, bool owner_is_mixer = false);
        ~ProcessorBox ();
 
        void set_route (boost::shared_ptr<ARDOUR::Route>);
@@ -202,6 +213,8 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
 
        void update();
 
+       void processor_operation (ProcessorOperation);
+
        void select_all_processors ();
        void deselect_all_processors ();
        void select_all_plugins ();
@@ -240,12 +253,10 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
         */
        int _placement;
 
-       RouteRedirectSelection& _rr_selection;
+       RouteProcessorSelection& _rr_selection;
 
        void route_going_away ();
 
-       void selection_changed ();
-
        Gtkmm2ext::DnDVBox<ProcessorEntry> processor_display;
        Gtk::ScrolledWindow    processor_scroller;
 
@@ -253,9 +264,6 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
 
        Width _width;
 
-       Gtk::Menu *send_action_menu;
-       void build_send_action_menu ();
-
        void new_send ();
        void show_send_controls ();
 
@@ -278,8 +286,6 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
 
        bool enter_notify (GdkEventCrossing *ev);
        bool leave_notify (GdkEventCrossing *ev);
-       bool processor_key_press_event (GdkEventKey *);
-       bool processor_key_release_event (GdkEventKey *);
        bool processor_button_press_event (GdkEventButton *, ProcessorEntry *);
        bool processor_button_release_event (GdkEventButton *, ProcessorEntry *);
        void redisplay_processors ();
@@ -292,20 +298,18 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
        void processors_reordered (const Gtk::TreeModel::Path&, const Gtk::TreeModel::iterator&, int*);
        void compute_processor_sort_keys ();
 
-       void all_processors_active(bool state);
-       void all_plugins_active(bool state);
+       void all_visible_processors_active(bool state);
        void ab_plugins ();
 
        typedef std::vector<boost::shared_ptr<ARDOUR::Processor> > ProcSelection;
 
        void cut_processors (const ProcSelection&);
-       void cut_processors ();
        void copy_processors (const ProcSelection&);
-       void copy_processors ();
        void delete_processors (const ProcSelection&);
-       void delete_processors ();
        void paste_processors ();
        void paste_processors (boost::shared_ptr<ARDOUR::Processor> before);
+       void processors_up ();
+       void processors_down ();
 
        void delete_dragged_processors (const std::list<boost::shared_ptr<ARDOUR::Processor> >&);
        void clear_processors ();