summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-07-07 21:45:38 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-07-07 21:45:38 +0000
commita9d59912053317fa840b5880a3dace6aaa68e576 (patch)
tree7d44d95bcae80ca7c46c665508412f15bc2a665e /gtk2_ardour/time_axis_view.h
parentb0ec4057ad80b5643e125b10fd1f9e73ecc89dd4 (diff)
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
Diffstat (limited to 'gtk2_ardour/time_axis_view.h')
-rw-r--r--gtk2_ardour/time_axis_view.h17
1 files changed, 8 insertions, 9 deletions
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 */