2005-09-25 14:42:24 -04:00
|
|
|
#ifndef __ardour_gtk_redirect_automation_time_axis_h__
|
|
|
|
#define __ardour_gtk_redirect_automation_time_axis_h__
|
|
|
|
|
|
|
|
#include <pbd/xml++.h>
|
2005-11-14 23:47:01 -05:00
|
|
|
|
|
|
|
#include "canvas.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
#include "automation_time_axis.h"
|
|
|
|
|
|
|
|
namespace ARDOUR {
|
|
|
|
class Redirect;
|
|
|
|
}
|
|
|
|
|
|
|
|
class RedirectAutomationTimeAxisView : public AutomationTimeAxisView
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RedirectAutomationTimeAxisView (ARDOUR::Session&,
|
|
|
|
ARDOUR::Route&,
|
|
|
|
PublicEditor&,
|
|
|
|
TimeAxisView& parent,
|
2005-11-15 21:57:22 -05:00
|
|
|
ArdourCanvas::Canvas& canvas,
|
2005-09-25 14:42:24 -04:00
|
|
|
std::string name,
|
|
|
|
uint32_t port,
|
|
|
|
ARDOUR::Redirect& rd,
|
|
|
|
std::string state_name);
|
|
|
|
|
|
|
|
~RedirectAutomationTimeAxisView();
|
2005-11-14 23:47:01 -05:00
|
|
|
|
|
|
|
void add_automation_event (ArdourCanvas::Item *item, GdkEvent *event, jack_nframes_t, double);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
guint32 show_at (double y, int& nth, Gtk::VBox *parent);
|
|
|
|
void hide ();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
ARDOUR::Redirect& redirect;
|
|
|
|
uint32_t port;
|
|
|
|
|
|
|
|
XMLNode *xml_node;
|
|
|
|
void ensure_xml_node();
|
|
|
|
void update_extra_xml_shown (bool editor_shown);
|
|
|
|
|
|
|
|
void set_automation_state (ARDOUR::AutoState);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __ardour_gtk_redirect_automation_time_axis_h__ */
|