From 591f92e5319800a1610b701727441a56f69f196d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 14 Mar 2016 10:41:33 -0400 Subject: [PATCH] add new Controllable::GroupDisposition value, ForGroup, to identify changes being made *for* a RouteGroup --- libs/pbd/enums.cc | 1 + libs/pbd/pbd/controllable.h | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/pbd/enums.cc b/libs/pbd/enums.cc index e8bb80742d..b5b9bc1676 100644 --- a/libs/pbd/enums.cc +++ b/libs/pbd/enums.cc @@ -44,6 +44,7 @@ setup_libpbd_enums () REGISTER_CLASS_ENUM (Controllable, InverseGroup); REGISTER_CLASS_ENUM (Controllable, UseGroup); REGISTER_CLASS_ENUM (Controllable, NoGroup); + REGISTER_CLASS_ENUM (Controllable, ForGroup); REGISTER (controllable_group_disposition); } diff --git a/libs/pbd/pbd/controllable.h b/libs/pbd/pbd/controllable.h index 51c9c64be1..5ac6895d6f 100644 --- a/libs/pbd/pbd/controllable.h +++ b/libs/pbd/pbd/controllable.h @@ -84,7 +84,11 @@ class LIBPBD_API Controllable : public PBD::StatefulDestructible { enum GroupControlDisposition { InverseGroup, /* set all controls in the same "group" as this one */ NoGroup, /* set only this control */ - UseGroup /* use group settings to decide which group controls are altered */ + UseGroup, /* use group settings to decide which group controls are altered */ + ForGroup /* this setting is being done *for* the group + (i.e. UseGroup was set in the callchain + somewhere). + */ }; /** Get and Set `internal' value -- 2.30.2