Ardour
9.0-pre0-582-g084a23a80d
|
#include <properties.h>
Public Types | |
typedef std::shared_ptr< T > | Ptr |
Public Member Functions | |
SharedStatefulProperty (PropertyID d, Ptr p) | |
SharedStatefulProperty (PropertyID d, Ptr o, Ptr c) | |
bool | set_value (XMLNode const &node) |
void | get_value (XMLNode &node) const |
void | clear_changes () |
bool | changed () const |
void | invert () |
void | get_changes_as_xml (XMLNode *history_node) const |
void | get_changes_as_properties (PropertyList &changes, Command *) const |
void | apply_change (PropertyBase const *p) |
Ptr | val () const |
T * | operator-> () const |
operator bool () const | |
Public Member Functions inherited from PBD::PropertyBase | |
PropertyBase (PropertyID pid) | |
virtual | ~PropertyBase () |
virtual void | clear_owned_changes () |
virtual void | rdiff (std::vector< PBD::Command * > &) const |
virtual PropertyBase * | clone_from_xml (const XMLNode &) const |
virtual PropertyBase * | clone () const =0 |
const gchar * | property_name () const |
PropertyID | property_id () const |
bool | operator== (PropertyID pid) const |
Protected Attributes | |
Ptr | _old |
Ptr | _current |
Private Member Functions | |
SharedStatefulProperty (SharedStatefulProperty< T > const &) | |
SharedStatefulProperty< T > & | operator= (SharedStatefulProperty< T > const &) |
Additional Inherited Members | |
Protected Member Functions inherited from PBD::PropertyBase | |
PropertyBase (PropertyBase const &b) | |
A Property which holds a shared_ptr to a Stateful object, and handles undo using the somewhat inefficient approach of saving the complete XML state of its object before and after changes. A sort of half-way house between the old complete-state undo system and the new difference-based one.
Definition at line 371 of file properties.h.
typedef std::shared_ptr<T> PBD::SharedStatefulProperty< T >::Ptr |
Definition at line 374 of file properties.h.
|
inline |
Definition at line 376 of file properties.h.
|
inline |
Definition at line 383 of file properties.h.
|
private |
|
inlinevirtual |
Set this property's current state from another
Implements PBD::PropertyBase.
Definition at line 450 of file properties.h.
|
inlinevirtual |
Implements PBD::PropertyBase.
Definition at line 421 of file properties.h.
|
inlinevirtual |
Forget about any old changes to this property's value
Implements PBD::PropertyBase.
Definition at line 414 of file properties.h.
|
inlinevirtual |
If this Property has changed, clone it and add it to a given list. Used for making StatefulDiffCommands.
Implements PBD::PropertyBase.
Definition at line 444 of file properties.h.
|
inlinevirtual |
Get any changes in this property as XML and add them to a StatefulDiffCommand node.
Implements PBD::PropertyBase.
Definition at line 433 of file properties.h.
|
inlinevirtual |
Get this property's value and put it into a Stateful node
Implements PBD::PropertyBase.
Definition at line 409 of file properties.h.
|
inlinevirtual |
Invert the changes in this property
Implements PBD::PropertyBase.
Definition at line 429 of file properties.h.
|
inline |
Definition at line 462 of file properties.h.
|
inline |
Definition at line 458 of file properties.h.
|
private |
|
inlinevirtual |
Set the value of this property from a Stateful node.
Implements PBD::PropertyBase.
Definition at line 391 of file properties.h.
|
inline |
Definition at line 454 of file properties.h.
|
protected |
Definition at line 469 of file properties.h.
|
protected |
Definition at line 468 of file properties.h.