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.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
#ifndef __ardour_gtk_gain_automation_time_axis_h__
|
|
|
|
#define __ardour_gtk_gain_automation_time_axis_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 {
|
2007-06-27 11:51:50 -04:00
|
|
|
class AutomationList;
|
2005-09-25 14:42:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
class GainAutomationTimeAxisView : public AutomationTimeAxisView
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GainAutomationTimeAxisView (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_axis,
|
2005-11-15 21:57:22 -05:00
|
|
|
ArdourCanvas::Canvas& canvas,
|
2005-12-22 07:23:54 -05:00
|
|
|
const string & name,
|
2007-06-27 11:51:50 -04:00
|
|
|
ARDOUR::AutomationList&);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
~GainAutomationTimeAxisView();
|
|
|
|
|
2006-09-28 13:23:52 -04:00
|
|
|
void add_automation_event (ArdourCanvas::Item *item, GdkEvent *event, nframes_t, double);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
private:
|
2007-06-27 11:51:50 -04:00
|
|
|
ARDOUR::AutomationList& list;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2007-06-27 11:51:50 -04:00
|
|
|
void automation_changed ();
|
2005-09-25 14:42:24 -04:00
|
|
|
void set_automation_state (ARDOUR::AutoState);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __ardour_gtk_gain_automation_time_axis_h__ */
|