forward unhandled button events from MidiRegionView back to Editor
[ardour.git] / gtk2_ardour / time_axis_view_item.h
index d51bacc7cb717ed52e1b554b73adb5af42840e72..dedc4a048563f5ea89f3b05c788bd31f19bfc07b 100644 (file)
@@ -61,7 +61,6 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
        void set_item_name(std::string, void*);
        virtual std::string get_item_name() const;
        virtual void set_selected(bool yn);
-       virtual void set_should_show_selection (bool yn);
        void set_sensitive (bool yn) { _sensitive = yn; }
        bool sensitive () const { return _sensitive; }
        TimeAxisView& get_time_axis_view () const;
@@ -83,7 +82,10 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
        virtual void raise_to_top () { return; }
        virtual void lower () { return; }
        virtual void lower_to_bottom () { return; }
-       
+
+        virtual void hide_rect ();
+        virtual void show_rect ();
+        
        /** @return true if the name area should respond to events */
        bool name_active() const { return name_connected; }
 
@@ -186,9 +188,6 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
        /** samples per canvas unit */
        double samples_per_unit;
 
-       /** should the item show its selected status */
-       bool should_show_selection;
-       
        /** should the item respond to events */
        bool _sensitive;
        
@@ -224,7 +223,8 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
        int name_pixbuf_width;
        bool wide_enough_for_name;
        bool high_enough_for_name;
-       
+        bool rect_visible;
+
        ArdourCanvas::Group*      group;
        ArdourCanvas::SimpleRect* vestigial_frame;
        ArdourCanvas::SimpleRect* frame;
@@ -239,6 +239,10 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
        Visibility visibility;
        bool _recregion;
        bool _automation; ///< true if this is an automation region view
+
+private:
+       
+       void parameter_changed (std::string);
        
 }; /* class TimeAxisViewItem */