From a9d59912053317fa840b5880a3dace6aaa68e576 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 7 Jul 2011 21:45:38 +0000 Subject: remove track resize handle and allow resize of tracks from the lower 25% of the track control box git-svn-id: svn://localhost/ardour2/branches/3.0@9805 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/time_axis_view.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'gtk2_ardour/time_axis_view.h') diff --git a/gtk2_ardour/time_axis_view.h b/gtk2_ardour/time_axis_view.h index 32e6fce849..8a354abcd2 100644 --- a/gtk2_ardour/time_axis_view.h +++ b/gtk2_ardour/time_axis_view.h @@ -114,11 +114,6 @@ class TimeAxisView : public virtual AxisView uint32_t current_height() const { return height; } - bool resizer_button_press (GdkEventButton*); - bool resizer_button_release (GdkEventButton*); - bool resizer_motion (GdkEventMotion*); - bool resizer_expose (GdkEventExpose*); - void idle_resize (uint32_t); void hide_name_label (); @@ -213,8 +208,6 @@ class TimeAxisView : public virtual AxisView Gtk::EventBox controls_ebox; Gtk::VBox controls_vbox; Gtk::VBox time_axis_vbox; - Gtk::DrawingArea resizer; - Gtk::HBox resizer_box; Gtk::HBox name_hbox; Gtk::Frame name_frame; Gtkmm2ext::FocusEntry name_entry; @@ -242,8 +235,10 @@ class TimeAxisView : public virtual AxisView * *@ param ev the event */ - virtual bool controls_ebox_button_release (GdkEventButton *ev); - virtual bool controls_ebox_scroll (GdkEventScroll *ev); + virtual bool controls_ebox_button_release (GdkEventButton*); + virtual bool controls_ebox_scroll (GdkEventScroll*); + virtual bool controls_ebox_button_press (GdkEventButton*); + virtual bool controls_ebox_motion (GdkEventMotion*); /** Display the standard LHS control menu at when. * @@ -309,6 +304,8 @@ private: int _order; uint32_t _effective_height; double _resize_drag_start; + GdkCursor* _preresize_cursor; + bool _have_preresize_cursor; ArdourCanvas::Group* _ghost_group; void compute_heights (); @@ -316,6 +313,8 @@ private: static uint32_t small_height; static int const _max_order; + + bool maybe_set_cursor (int y); }; /* class TimeAxisView */ -- cgit v1.2.3