Logo Search packages:      
Sourcecode: ardour version File versions

region_gain_line.h

#ifndef __ardour_gtk_region_gain_line_h__
#define __ardour_gtk_region_gain_line_h__

#include <ardour/ardour.h>
#include <gtk-canvas.h>
#include <gtk--.h>

#include "automation_line.h"

namespace ARDOUR {
      class Session;
}

class TimeAxisView;
class AudioRegionView;

class AudioRegionGainLine : public AutomationLine
{
  public:
      AudioRegionGainLine (string name, ARDOUR::Session&, AudioRegionView&, GtkCanvasItem* parent,
                       ARDOUR::Curve&, 
                       gint (*point_callback)(GtkCanvasItem*, GdkEvent*, gpointer),
                       gint (*line_callback)(GtkCanvasItem*, GdkEvent*, gpointer));
      
      void view_to_model_y (double&);
      void model_to_view_y (double&);

  private:
      ARDOUR::Session& session;
      AudioRegionView& rv;

      UndoAction get_memento();
};


#endif /* __ardour_gtk_region_gain_line_h__ */

Generated by  Doxygen 1.6.0   Back to index