summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2009-08-21 18:24:02 +0000
committerBen Loftis <ben@glw.com>2009-08-21 18:24:02 +0000
commit3ffa60f5ec242e6c206516b0b7eb3927a9df95e4 (patch)
tree1b52c9799e164f177810f11e0847a38410c3abbe /gtk2_ardour/automation_line.cc
parent0a570e03149091dde5de3cf190e228db0c249b93 (diff)
enable very basic plugin boolean automation via Write and Read. no Touch. graphical editing is not allowed. a little crude but better than none at all
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5564 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r--gtk2_ardour/automation_line.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc
index bf9bd159e7..a15c113a67 100644
--- a/gtk2_ardour/automation_line.cc
+++ b/gtk2_ardour/automation_line.cc
@@ -229,7 +229,7 @@ AutomationLine::AutomationLine (const string & name, TimeAxisView& tv, ArdourCan
points_visible = false;
update_pending = false;
_vc_uses_gain_mapping = false;
- no_draw = false;
+ auto_is_boolean = false;
_visible = true;
terminal_points_can_slide = true;
_height = 0;
@@ -1242,10 +1242,6 @@ AutomationLine::reset ()
{
update_pending = false;
- if (no_draw) {
- return;
- }
-
alist.apply_to_points (*this, &AutomationLine::reset_callback);
}
@@ -1274,6 +1270,10 @@ AutomationLine::change_model_range (AutomationList::iterator start, AutomationLi
void
AutomationLine::show_all_control_points ()
{
+ if (auto_is_boolean) { //show the automation line but don't allow any control points
+ return;
+ }
+
points_visible = true;
for (vector<ControlPoint*>::iterator i = control_points.begin(); i != control_points.end(); ++i) {