diff options
author | David Robillard <d@drobilla.net> | 2008-09-19 19:32:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-19 19:32:10 +0000 |
commit | b87ca000f86fdfc210c08056ae8e921236ea96c7 (patch) | |
tree | 54b47b7e50baecca54c6392067ff9a3e05f6f25d /gtk2_ardour/automation_line.h | |
parent | 7aea02083a207402405cc4869b892dd63da191b6 (diff) |
Merge all the (disconcertingly missing) track/region/etc height changes from 2.0.
Fix track y positioning and initial region size/location.
Fix automation click-to-add-points (i.e. points actually show up where you click).
Fancy whiz-bang dynamic resize 2.0 professional edition support for MIDI/CC/Automation tracks/regions.
git-svn-id: svn://localhost/ardour2/branches/3.0@3769 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.h')
-rw-r--r-- | gtk2_ardour/automation_line.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk2_ardour/automation_line.h b/gtk2_ardour/automation_line.h index 5a1b63740b..92c012fc82 100644 --- a/gtk2_ardour/automation_line.h +++ b/gtk2_ardour/automation_line.h @@ -85,7 +85,6 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin string name() const { return _name; } bool visible() const { return _visible; } guint32 height() const { return _height; } - guint32 y_position() const { return _y_position; } void set_line_color (uint32_t); uint32_t get_line_color() const { return _line_color; } @@ -94,7 +93,7 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin void show (); void hide (); - void set_y_position_and_height (double, double); + void set_height (guint32); void set_verbose_cursor_uses_gain_mapping (bool yn); TimeAxisView& trackview; @@ -128,7 +127,6 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin protected: string _name; - guint32 _y_position; guint32 _height; uint32_t _line_color; boost::shared_ptr<ARDOUR::AutomationList> alist; @@ -169,6 +167,7 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin void list_changed (); virtual bool event_handler (GdkEvent*); + virtual void add_model_point (ALPoints& tmp_points, double frame, double yfract); private: uint32_t drags; |