summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-03-18 16:56:27 +0100
committerRobin Gareus <robin@gareus.org>2020-03-18 18:16:29 +0100
commit28f15d3fa63543a7a600e50a5663fe85c2230056 (patch)
tree5c004cdba2f7ff5fcb99e6c92c2c0e1f7dd6c4cf /libs/pbd
parent66d1b513925f4a61b7a81c5aa932c6bcb0ef63a6 (diff)
Add flag to explicitly hide a control
Eventually this is to replace a literal name "hidden" that is currently used as hack throughout Ardour's codebase.
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/enums.cc1
-rw-r--r--libs/pbd/pbd/controllable.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/libs/pbd/enums.cc b/libs/pbd/enums.cc
index e2445162df..e2d920818d 100644
--- a/libs/pbd/enums.cc
+++ b/libs/pbd/enums.cc
@@ -41,6 +41,7 @@ setup_libpbd_enums ()
REGISTER_CLASS_ENUM (Controllable, RealTime);
REGISTER_CLASS_ENUM (Controllable, NotAutomatable);
REGISTER_CLASS_ENUM (Controllable, InlineControl);
+ REGISTER_CLASS_ENUM (Controllable, HiddenControl);
REGISTER_BITS (controllable_flags);
REGISTER_CLASS_ENUM (Controllable, InverseGroup);
diff --git a/libs/pbd/pbd/controllable.h b/libs/pbd/pbd/controllable.h
index 05e014caf4..2e114e233e 100644
--- a/libs/pbd/pbd/controllable.h
+++ b/libs/pbd/pbd/controllable.h
@@ -78,6 +78,7 @@ public:
RealTime = 0x04,
NotAutomatable = 0x08,
InlineControl = 0x10,
+ HiddenControl = 0x20,
};
Controllable (const std::string& name, Flag f = Flag (0));