diff options
Diffstat (limited to 'gtk2_ardour/automation_time_axis.h')
-rw-r--r-- | gtk2_ardour/automation_time_axis.h | 49 |
1 files changed, 39 insertions, 10 deletions
diff --git a/gtk2_ardour/automation_time_axis.h b/gtk2_ardour/automation_time_axis.h index b323d1d3bf..7122350dee 100644 --- a/gtk2_ardour/automation_time_axis.h +++ b/gtk2_ardour/automation_time_axis.h @@ -34,6 +34,7 @@ #include "time_axis_view.h" #include "simplerect.h" #include "automation_controller.h" +#include "shared_ptrs.h" namespace ARDOUR { class Session; @@ -54,16 +55,18 @@ class AutomationController; class AutomationTimeAxisView : public TimeAxisView { public: - AutomationTimeAxisView (ARDOUR::Session&, - boost::shared_ptr<ARDOUR::Route>, - boost::shared_ptr<ARDOUR::Automatable>, - boost::shared_ptr<ARDOUR::AutomationControl>, - PublicEditor&, - TimeAxisView& parent, - bool show_regions, - ArdourCanvas::Canvas& canvas, - const std::string & name, /* translatable */ - const std::string & plug_name = ""); + + static AutomationTimeAxisViewPtr + create (ARDOUR::Session&, + boost::shared_ptr<ARDOUR::Route>, + boost::shared_ptr<ARDOUR::Automatable>, + boost::shared_ptr<ARDOUR::AutomationControl>, + PublicEditor&, + TimeAxisViewPtr parent, + bool show_regions, + ArdourCanvas::Canvas& canvas, + const std::string & name, /* translatable */ + const std::string & plug_name = ""); ~AutomationTimeAxisView(); @@ -164,6 +167,32 @@ class AutomationTimeAxisView : public TimeAxisView { static Pango::FontDescription* name_font; static bool have_name_font; + +private: + + AutomationTimeAxisView (ARDOUR::Session&, + boost::shared_ptr<ARDOUR::Route>, + boost::shared_ptr<ARDOUR::Automatable>, + boost::shared_ptr<ARDOUR::AutomationControl>, + PublicEditor&, + TimeAxisViewPtr parent, + bool show_regions, + ArdourCanvas::Canvas& canvas, + const std::string & name, /* translatable */ + const std::string & plug_name = ""); + + void + init (ARDOUR::Session&, + boost::shared_ptr<ARDOUR::Route>, + boost::shared_ptr<ARDOUR::Automatable>, + boost::shared_ptr<ARDOUR::AutomationControl>, + PublicEditor&, + TimeAxisViewPtr parent, + bool show_regions, + ArdourCanvas::Canvas& canvas, + const std::string & name, /* translatable */ + const std::string & plug_name); + }; #endif /* __ardour_gtk_automation_time_axis_h__ */ |