diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2009-01-21 10:20:27 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2009-01-21 10:20:27 +0000 |
commit | 5309c327ec96de33838e45ddb1489a632c2a4c68 (patch) | |
tree | 78cbc9083966e2a42cb8d6a15b0053e6681e9572 /gtk2_ardour/automation_line.h | |
parent | 33852a0728d081864b83e74e900802be7ab6f2aa (diff) |
* make MIDI-specific menu show up on all MIDI lanes
* style guide, comments and a little refactoring (remove duplication)
git-svn-id: svn://localhost/ardour2/branches/3.0@4422 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.h')
-rw-r--r-- | gtk2_ardour/automation_line.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gtk2_ardour/automation_line.h b/gtk2_ardour/automation_line.h index 3444de3cb2..6cf3b5ade6 100644 --- a/gtk2_ardour/automation_line.h +++ b/gtk2_ardour/automation_line.h @@ -106,8 +106,8 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin string get_verbose_cursor_string (double) const; string fraction_to_string (double) const; double string_to_fraction (string const &) const; - void view_to_model_y (double&) const; - void model_to_view_y (double&) const; + void view_to_model_y (double&) const; + void model_to_view_y (double&) const; void set_list(boost::shared_ptr<ARDOUR::AutomationList> list); boost::shared_ptr<ARDOUR::AutomationList> the_list() const { return alist; } @@ -129,23 +129,24 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin protected: - string _name; - guint32 _height; - uint32_t _line_color; + string _name; + guint32 _height; + uint32_t _line_color; + boost::shared_ptr<ARDOUR::AutomationList> alist; - bool _visible : 1; - bool _uses_gain_mapping : 1; + bool _visible : 1; + bool _uses_gain_mapping : 1; bool terminal_points_can_slide : 1; - bool update_pending : 1; - bool no_draw : 1; - bool points_visible : 1; + bool update_pending : 1; + bool no_draw : 1; + bool points_visible : 1; bool did_push; - ArdourCanvas::Group& _parent_group; - ArdourCanvas::Group* group; - ArdourCanvas::Line* line; /* line */ - ArdourCanvas::Points line_points; /* coordinates for canvas line */ + ArdourCanvas::Group& _parent_group; + ArdourCanvas::Group* group; + ArdourCanvas::Line* line; /* line */ + ArdourCanvas::Points line_points; /* coordinates for canvas line */ std::vector<ControlPoint*> control_points; /* visible control points */ struct ALPoint { |