refine "recent" column headers
[ardour.git] / gtk2_ardour / processor_box.h
index 8caee04006cbe317dd706889a4901d721f17a824..fcc70a60748b944c7f8a5ee8f7771ad6f2e55aa6 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;
 
@@ -129,6 +126,7 @@ public:
        };
 
        void set_position (Position, uint32_t);
+       bool unknown_processor () const { return _unknown_processor; } ;
        boost::shared_ptr<ARDOUR::Processor> processor () const;
        void set_enum_width (Width);
 
@@ -153,6 +151,7 @@ protected:
 
 private:
        bool _selectable;
+       bool _unknown_processor;
        void led_clicked();
        void processor_active_changed ();
        void processor_property_changed (const PBD::PropertyChange&);
@@ -163,7 +162,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;
@@ -171,6 +169,7 @@ private:
        class Control : public sigc::trackable {
        public:
                Control (boost::shared_ptr<ARDOUR::AutomationControl>, std::string const &);
+               ~Control ();
 
                void set_visible (bool);
                void add_state (XMLNode *) const;
@@ -205,6 +204,7 @@ private:
                PBD::ScopedConnection _connection;
                bool _visible;
                std::string _name;
+               sigc::connection timer_connection;
        };
 
        std::list<Control*> _controls;
@@ -214,11 +214,7 @@ private:
 
        class PortIcon : public Gtk::DrawingArea {
        public:
-               PortIcon(bool input) {
-                       _input = input;
-                       _ports = ARDOUR::ChanCount(ARDOUR::DataType::AUDIO, 1);
-                       set_size_request (-1, 2);
-               }
+               PortIcon(bool input);
                void set_ports(ARDOUR::ChanCount const ports) { _ports = ports; }
        private:
                bool on_expose_event (GdkEventExpose *);
@@ -239,8 +235,9 @@ private:
                void set_splitting(const bool splitting) { _splitting = splitting; }
        private:
                bool on_expose_event (GdkEventExpose *);
-               ARDOUR::ChanCount _sources; // signals available to feed into the processor(s)
-               ARDOUR::ChanCount _sinks;   // combined number of outputs of the processor
+               /* the wire icon sits on top of every processor if needed */
+               ARDOUR::ChanCount _sources; // signals available (valid outputs from prev. processor)
+               ARDOUR::ChanCount _sinks;   // actual inputs of this processor
                bool _splitting;
        };
 
@@ -401,10 +398,13 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
        void get_selected_processors (ProcSelection&) const;
 
        bool can_cut() const;
+       bool stub_processor_selected() const;
 
        static Glib::RefPtr<Gtk::Action> cut_action;
+       static Glib::RefPtr<Gtk::Action> copy_action;
        static Glib::RefPtr<Gtk::Action> paste_action;
        static Glib::RefPtr<Gtk::Action> rename_action;
+       static Glib::RefPtr<Gtk::Action> delete_action;
        static Glib::RefPtr<Gtk::Action> edit_action;
        static Glib::RefPtr<Gtk::Action> edit_generic_action;
        void paste_processor_state (const XMLNodeList&, boost::shared_ptr<ARDOUR::Processor>);
@@ -443,8 +443,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;