diff options
author | David Robillard <d@drobilla.net> | 2007-07-04 00:39:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-04 00:39:00 +0000 |
commit | 2177f008411821e7bce9ca3c306ec64c70b1c58e (patch) | |
tree | 79b2f1827163aa40fdde34c5f9b89f7bd1eb3d49 /gtk2_ardour/automation_time_axis.h | |
parent | e0f287045eff5b6f0581b741a3005f54d6578737 (diff) |
Add AutomationControl::parameter() for terseness.
Future-proof automation track GUI 'extra' XML (<GUI><AutomationChild automation-id="gain"> instead of <GUI><gain> so Parameter.to_string isn't used as an XML node name).
Fix automation track controller bar shown/hidden state.
Fix automation track initial show bug.
git-svn-id: svn://localhost/ardour2/trunk@2103 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.h')
-rw-r--r-- | gtk2_ardour/automation_time_axis.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk2_ardour/automation_time_axis.h b/gtk2_ardour/automation_time_axis.h index a52db758b8..c3be6ffd00 100644 --- a/gtk2_ardour/automation_time_axis.h +++ b/gtk2_ardour/automation_time_axis.h @@ -64,7 +64,6 @@ class AutomationTimeAxisView : public TimeAxisView { TimeAxisView& parent, ArdourCanvas::Canvas& canvas, const string & name, /* translatable */ - const string & state_name, /* not translatable */ const string & plug_name = ""); ~AutomationTimeAxisView(); @@ -98,10 +97,12 @@ class AutomationTimeAxisView : public TimeAxisView { void show_all_control_points (); void hide_all_but_selected_control_points (); void set_state (const XMLNode&); - XMLNode* get_state_node (); guint32 show_at (double y, int& nth, Gtk::VBox *parent); void hide (); + + static const string state_node_name; + XMLNode* get_state_node(); protected: boost::shared_ptr<ARDOUR::Route> _route; ///< Parent route @@ -113,10 +114,7 @@ class AutomationTimeAxisView : public TimeAxisView { ArdourCanvas::SimpleRect* _base_rect; boost::shared_ptr<AutomationLine> _line; - XMLNode* _xml_node; - string _name; - string _state_name; bool in_destructor; bool ignore_toggle; @@ -157,7 +155,6 @@ class AutomationTimeAxisView : public TimeAxisView { void automation_state_changed (); sigc::connection automation_connection; - void ensure_xml_node (); void update_extra_xml_shown (bool editor_shown); void entered (); |