diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-11-10 21:44:02 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-11-10 23:17:27 -0500 |
commit | 9254e80c396265f484adb3b7bf5f0b502d096107 (patch) | |
tree | 0404ffd8e40d884a5241d82c0a72589b398c98a4 /libs/ardour/ardour/scene_change.h | |
parent | e27651d31521a527a2acaf570512a44163b5c638 (diff) |
refactor MIDISceneChange color property addition by moving it into SceneChange to anticipate other types of SceneChange objects (e.g. OSC)
Diffstat (limited to 'libs/ardour/ardour/scene_change.h')
-rw-r--r-- | libs/ardour/ardour/scene_change.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libs/ardour/ardour/scene_change.h b/libs/ardour/ardour/scene_change.h index 1f856beedf..4ad0ce5f39 100644 --- a/libs/ardour/ardour/scene_change.h +++ b/libs/ardour/ardour/scene_change.h @@ -30,11 +30,23 @@ namespace ARDOUR class SceneChange : public PBD::Stateful { public: - SceneChange () {}; + SceneChange (); virtual ~SceneChange () {}; static boost::shared_ptr<SceneChange> factory (const XMLNode&, int version); static std::string xml_node_name; + + uint32_t color() const; + void set_color (uint32_t); + bool color_out_of_bounds() const { return _color == out_of_bound_color; } + static const uint32_t out_of_bound_color; + + PBD::Signal0<void> ColorChanged; + + protected: + /* derived classes are responsible for serializing & deserializing this value */ + uint32_t _color; + }; } /* namespace */ |