mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Use shared_ptr for the TimeAxisView hierarchy.
git-svn-id: svn://localhost/ardour2/branches/3.0@5339 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0f8031da06
commit
4297071b3f
71 changed files with 1102 additions and 879 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#include "enums.h"
|
||||
#include "simplerect.h"
|
||||
#include "canvas.h"
|
||||
#include "shared_ptrs.h"
|
||||
|
||||
namespace Gdk {
|
||||
class Color;
|
||||
|
|
@ -58,8 +59,8 @@ class StreamView : public sigc::trackable
|
|||
public:
|
||||
virtual ~StreamView ();
|
||||
|
||||
RouteTimeAxisView& trackview() { return _trackview; }
|
||||
const RouteTimeAxisView& trackview() const { return _trackview; }
|
||||
RouteTimeAxisViewPtr trackview() { return _trackview; }
|
||||
const RouteTimeAxisViewPtr trackview() const { return _trackview; }
|
||||
|
||||
void attach ();
|
||||
|
||||
|
|
@ -112,7 +113,7 @@ public:
|
|||
sigc::signal<void> HeightChanged;
|
||||
|
||||
protected:
|
||||
StreamView (RouteTimeAxisView&, ArdourCanvas::Group* group = NULL);
|
||||
StreamView (RouteTimeAxisViewPtr, ArdourCanvas::Group* group = NULL);
|
||||
|
||||
void transport_changed();
|
||||
void transport_looped();
|
||||
|
|
@ -137,7 +138,7 @@ protected:
|
|||
|
||||
virtual void color_handler () = 0;
|
||||
|
||||
RouteTimeAxisView& _trackview;
|
||||
RouteTimeAxisViewPtr _trackview;
|
||||
bool owns_canvas_group;
|
||||
ArdourCanvas::Group* _background_group;
|
||||
ArdourCanvas::Group* canvas_group;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue