#include <ardour/types.h>
#include <ardour/region.h>
+#include <ardour/parameter.h>
#include "prompter.h"
#include "axis_view.h"
#include "enums.h"
#include "editing.h"
#include "canvas.h"
-#include "color.h"
namespace ARDOUR {
class Session;
/* state/serialization management */
+ TimeAxisView* get_parent () { return parent; }
void set_parent (TimeAxisView& p);
bool has_state () const;
/* call this on the parent */
- virtual XMLNode* get_child_xml_node (const string & childname) { return 0; }
+ virtual XMLNode* get_automation_child_xml_node (ARDOUR::Parameter param) { return 0; }
+
+ typedef std::vector<boost::shared_ptr<TimeAxisView> > Children;
protected:
/** Find the parent with state */
TimeAxisView* get_parent_with_state();
- std::vector<TimeAxisView*> children;
+ Children children;
bool is_child (TimeAxisView*);
- void remove_child (TimeAxisView*);
- void add_child (TimeAxisView*);
+ void remove_child (boost::shared_ptr<TimeAxisView>);
+ void add_child (boost::shared_ptr<TimeAxisView>);
/* selection display */
static bool need_size_info;
void set_height_pixels (uint32_t h);
- void color_handler (ColorID, uint32_t);
+ void color_handler ();
}; /* class TimeAxisView */