reinstate a canvas group where we reparent regions while dragging, so that they are...
[ardour.git] / gtk2_ardour / time_axis_view_item.h
index 60ff519216224e9732414871af4908a8b971d4eb..cd813e17c930957af9f3109bfd4b138f08483c4f 100644 (file)
@@ -73,8 +73,10 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
        virtual void set_height(double h);
        void set_y (double);
        void set_color (Gdk::Color const &);
+       void set_name_text_color ();
 
         uint32_t get_fill_color () const;
+       void visual_raise_to_top ();
 
        ArdourCanvas::Item* get_canvas_frame();
        ArdourCanvas::Group* get_canvas_group();
@@ -114,6 +116,20 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
        static double NAME_HIGHLIGHT_SIZE;
        static double NAME_HIGHLIGHT_THRESH;
 
+        /* if this is 1.0, we move the right boundary
+          of the item frame so that it is 1 pixel
+          after the end of the item. This gives nice
+          effects when splitting items.
+          
+          if this is zero, the right edge coincides
+          with the end of the item, and things don't
+          look so nice. 
+          
+          this exists to allow easy debugging of the
+          two scenarios.
+       */
+       static const double RIGHT_EDGE_SHIFT;
+
        /**
         * Emitted when this Group has been removed.
         * This is different to the CatchDeletion signal in that this signal
@@ -223,14 +239,7 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
        uint32_t selected_frame_color_r;
        uint32_t selected_frame_color_g;
        uint32_t selected_frame_color_b;
-       uint32_t label_color;
-
-       uint32_t handle_color_r;
-       uint32_t handle_color_g;
-       uint32_t handle_color_b;
-       uint32_t lock_handle_color_r;
-       uint32_t lock_handle_color_g;
-       uint32_t lock_handle_color_b;
+
        uint32_t last_item_width;
        int name_text_width;
        bool wide_enough_for_name;