diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-25 17:31:33 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-25 17:31:33 +0000 |
commit | 7b2975244165b4ffd1dcf4080c1be4c8dcbc6708 (patch) | |
tree | b3010f51f7c3fa0534c0813e51bbeef13200f6a0 /libs/pbd/pbd/stateful.h | |
parent | 167c439002bde2b20399d733cd5d38d3674668c3 (diff) |
Rename various things in the property system.
git-svn-id: svn://localhost/ardour2/branches/3.0@7681 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/stateful.h')
-rw-r--r-- | libs/pbd/pbd/stateful.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/pbd/pbd/stateful.h b/libs/pbd/pbd/stateful.h index 1272a735f9..619de5d06f 100644 --- a/libs/pbd/pbd/stateful.h +++ b/libs/pbd/pbd/stateful.h @@ -48,9 +48,10 @@ class Stateful { virtual XMLNode& get_state (void) = 0; virtual int set_state (const XMLNode&, int version) = 0; - virtual bool set_property (const PropertyBase&); - PropertyChange set_properties (const PropertyList&); + virtual bool apply_change (PropertyBase const &); + PropertyChange apply_changes (PropertyList const &); + const OwnedPropertyList& properties() const { return *_properties; } void add_property (PropertyBase& s); @@ -92,10 +93,8 @@ class Stateful { void add_instant_xml (XMLNode&, const sys::path& directory_path); XMLNode *instant_xml (const std::string& str, const sys::path& directory_path); void add_properties (XMLNode &); - /* derived types can call this from ::set_state() (or elsewhere) - to get basic property setting done. - */ - PropertyChange set_properties (XMLNode const &); + + PropertyChange set_values (XMLNode const &); /* derived classes can implement this to do cross-checking of property values after either a PropertyList or XML |