summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_region_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/automation_region_view.h')
-rw-r--r--gtk2_ardour/automation_region_view.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_region_view.h b/gtk2_ardour/automation_region_view.h
index e69845461c..90fa9f3e44 100644
--- a/gtk2_ardour/automation_region_view.h
+++ b/gtk2_ardour/automation_region_view.h
@@ -31,6 +31,7 @@
namespace ARDOUR {
class AutomationList;
+ class Parameter;
};
class TimeAxisView;
@@ -41,6 +42,7 @@ public:
AutomationRegionView(ArdourCanvas::Group*,
AutomationTimeAxisView&,
boost::shared_ptr<ARDOUR::Region>,
+ const ARDOUR::Parameter& parameter,
boost::shared_ptr<ARDOUR::AutomationList>,
double initial_samples_per_unit,
Gdk::Color& basic_color);
@@ -57,9 +59,11 @@ public:
// We are a ghost. Meta ghosts? Crazy talk.
virtual GhostRegion* add_ghost(TimeAxisView&) { return NULL; }
+ void set_height (double);
void reset_width_dependent_items(double pixel_width);
protected:
+ void create_line(boost::shared_ptr<ARDOUR::AutomationList> list);
bool set_position(nframes_t pos, void* src, double* ignored);
void set_y_position_and_height(double y, double h);
void region_resized(ARDOUR::Change what_changed);
@@ -69,6 +73,7 @@ protected:
void exited();
private:
+ ARDOUR::Parameter _parameter;
boost::shared_ptr<AutomationLine> _line;
};