add new Controllable::GroupDisposition value, ForGroup, to identify changes being...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 14 Mar 2016 14:41:33 +0000 (10:41 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 14 Mar 2016 14:41:33 +0000 (10:41 -0400)
libs/pbd/enums.cc
libs/pbd/pbd/controllable.h

index e8bb80742d68643158bbff06a82cba5960be02b2..b5b9bc167656871c02e9e44781dba9d598847c10 100644 (file)
@@ -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);
 
 }
index 51c9c64be1be2dcee881d2f2b35167713d37342a..5ac6895d6feac291604f6dbbf22d79ff195ae5c3 100644 (file)
@@ -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