diff options
Diffstat (limited to 'libs/pbd/pbd/property_basics.h')
-rw-r--r-- | libs/pbd/pbd/property_basics.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libs/pbd/pbd/property_basics.h b/libs/pbd/pbd/property_basics.h index 2dea20e251..39a7c043e9 100644 --- a/libs/pbd/pbd/property_basics.h +++ b/libs/pbd/pbd/property_basics.h @@ -89,10 +89,8 @@ public: /** Forget about any old value for this state */ virtual void clear_history () = 0; - /** Make XML that allows us to get from some previous state to the current state - * of this property, and add it to @param history_node - */ - virtual void add_history_state (XMLNode* history_node) const = 0; + /** Get any change in this property as XML and add it to a node */ + virtual void get_change (XMLNode *) const = 0; /** Add information to two property lists: one that allows * undo of the changes in this property's state betwen now and @@ -103,19 +101,21 @@ public: virtual PropertyBase* maybe_clone_self_if_found_in_history_node (const XMLNode&) const { return 0; } - /** Set state from an XML node previously generated by add_history_state */ - virtual bool set_state_from_owner_state (XMLNode const&) = 0; + /** Set our value from an XML node. + * @return true if the value was set. + */ + virtual bool set_value (XMLNode const &) = 0; - /** Add complete current state in XML form to an existing XML node @param node */ - virtual void add_state_to_owner_state (XMLNode& node) const = 0; + /** Get our value and put it into an XML node */ + virtual void get_value (XMLNode& node) const = 0; /** @return true if this property has changed in value since construction or since * the last call to clear_history(), whichever was more recent. */ virtual bool changed() const = 0; - /** Set the value of this property from another */ - virtual void set_state_from_property (PropertyBase const *) = 0; + /** Apply a change contained in another Property to this one */ + virtual void apply_change (PropertyBase const *) = 0; const gchar*property_name () const { return g_quark_to_string (_property_id); } PropertyID property_id () const { return _property_id; } |