2007-04-26 16:54:31 -04:00
|
|
|
/*
|
|
|
|
Copyright (C) 2000-2007 Paul Davis
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2007-06-27 16:23:48 -04:00
|
|
|
#ifndef __ardour_gtk_processor_automation_time_axis_h__
|
|
|
|
#define __ardour_gtk_processor_automation_time_axis_h__
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#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"
|
2007-06-27 11:51:50 -04:00
|
|
|
#include <ardour/param_id.h>
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
namespace ARDOUR {
|
2007-06-27 16:23:48 -04:00
|
|
|
class Processor;
|
2005-09-25 14:42:24 -04:00
|
|
|
}
|
|
|
|
|
2007-06-27 16:23:48 -04:00
|
|
|
class ProcessorAutomationTimeAxisView : public AutomationTimeAxisView
|
2005-09-25 14:42:24 -04:00
|
|
|
{
|
|
|
|
public:
|
2007-06-27 16:23:48 -04:00
|
|
|
ProcessorAutomationTimeAxisView (ARDOUR::Session&,
|
2006-07-27 12:52:14 -04:00
|
|
|
boost::shared_ptr<ARDOUR::Route>,
|
2005-09-25 14:42:24 -04:00
|
|
|
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,
|
2007-06-27 11:51:50 -04:00
|
|
|
ARDOUR::ParamID param,
|
2007-06-27 16:23:48 -04:00
|
|
|
ARDOUR::Processor& i,
|
2005-09-25 14:42:24 -04:00
|
|
|
std::string state_name);
|
|
|
|
|
2007-06-27 16:23:48 -04:00
|
|
|
~ProcessorAutomationTimeAxisView();
|
2005-11-14 23:47:01 -05:00
|
|
|
|
2006-09-28 13:23:52 -04:00
|
|
|
void add_automation_event (ArdourCanvas::Item *item, GdkEvent *event, nframes_t, double);
|
2007-06-29 00:02:58 -04:00
|
|
|
void add_line (AutomationLine&);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
guint32 show_at (double y, int& nth, Gtk::VBox *parent);
|
|
|
|
void hide ();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
2007-06-27 16:23:48 -04:00
|
|
|
ARDOUR::Processor& _processor;
|
|
|
|
ARDOUR::ParamID _param;
|
|
|
|
XMLNode* _xml_node;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void ensure_xml_node();
|
|
|
|
void update_extra_xml_shown (bool editor_shown);
|
|
|
|
|
|
|
|
void set_automation_state (ARDOUR::AutoState);
|
|
|
|
};
|
|
|
|
|
2007-06-27 16:23:48 -04:00
|
|
|
#endif /* __ardour_gtk_processor_automation_time_axis_h__ */
|