13
0
livetrax/gtk2_ardour/region_gain_line.h
Paul Davis f2c8ae66c0 remove all duplicated _id members from children of PBD::Stateful.
Sources now know about Session.
rearrange session directory heirarchy. remove tape_dir stuff. 
NSD allows absolute/relative paths to be typed straight into the text entry.
Session history reloaded after all 3rd party registrations done.
Editor restores its ID; other objects still need this.
use g_mkdir_with_parents() instead of mkdir()
one example of using g_file_test() instead of access.




git-svn-id: svn://localhost/ardour2/trunk@908 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-09-07 15:07:14 +00:00

39 lines
773 B
C++

#ifndef __ardour_gtk_region_gain_line_h__
#define __ardour_gtk_region_gain_line_h__
#include <ardour/ardour.h>
#include <libgnomecanvasmm.h>
#include "automation_line.h"
namespace ARDOUR {
class Session;
}
class TimeAxisView;
class AudioRegionView;
class AudioRegionGainLine : public AutomationLine
{
public:
AudioRegionGainLine (const string & name, ARDOUR::Session&, AudioRegionView&, ArdourCanvas::Group& parent, ARDOUR::Curve&);
void view_to_model_y (double&);
void model_to_view_y (double&);
void start_drag (ControlPoint*, float fraction);
void end_drag (ControlPoint*);
void remove_point (ControlPoint&);
private:
ARDOUR::Session& session;
AudioRegionView& rv;
UndoAction get_memento();
};
#endif /* __ardour_gtk_region_gain_line_h__ */