openshot-audio  0.1.6
Public Member Functions | List of all members
juce::ValueTree::SharedObject::SetPropertyAction Class Reference
Inheritance diagram for juce::ValueTree::SharedObject::SetPropertyAction:
juce::UndoableAction

Public Member Functions

 SetPropertyAction (SharedObject *const so, const Identifier &propertyName, const var &newVal, const var &oldVal, bool isAdding, bool isDeleting)
 
bool perform ()
 
bool undo ()
 
int getSizeInUnits ()
 
UndoableActioncreateCoalescedAction (UndoableAction *nextAction)
 
- Public Member Functions inherited from juce::UndoableAction
virtual ~UndoableAction ()
 

Additional Inherited Members

- Protected Member Functions inherited from juce::UndoableAction
 UndoableAction () noexcept
 

Constructor & Destructor Documentation

juce::ValueTree::SharedObject::SetPropertyAction::SetPropertyAction ( SharedObject *const  so,
const Identifier propertyName,
const var newVal,
const var oldVal,
bool  isAdding,
bool  isDeleting 
)
inline

Member Function Documentation

UndoableAction* juce::ValueTree::SharedObject::SetPropertyAction::createCoalescedAction ( UndoableAction nextAction)
inlinevirtual

Allows multiple actions to be coalesced into a single action object, to reduce storage space.

If possible, this method should create and return a single action that does the same job as this one followed by the supplied action.

If it's not possible to merge the two actions, the method should return zero.

Reimplemented from juce::UndoableAction.

int juce::ValueTree::SharedObject::SetPropertyAction::getSizeInUnits ( )
inlinevirtual

Returns a value to indicate how much memory this object takes up.

Because the UndoManager keeps a list of UndoableActions, this is used to work out how much space each one will take up, so that the UndoManager can work out how many to keep.

The default value returned here is 10 - units are arbitrary and don't have to be accurate.

See also
UndoManager::getNumberOfUnitsTakenUpByStoredCommands, UndoManager::setMaxNumberOfStoredUnits

Reimplemented from juce::UndoableAction.

bool juce::ValueTree::SharedObject::SetPropertyAction::perform ( )
inlinevirtual

Overridden by a subclass to perform the action.

This method is called by the UndoManager, and shouldn't be used directly by applications.

Be careful not to make any calls in a perform() method that could call recursively back into the UndoManager::perform() method

Returns
true if the action could be performed.
See also
UndoManager::perform

Implements juce::UndoableAction.

bool juce::ValueTree::SharedObject::SetPropertyAction::undo ( )
inlinevirtual

Overridden by a subclass to undo the action.

This method is called by the UndoManager, and shouldn't be used directly by applications.

Be careful not to make any calls in an undo() method that could call recursively back into the UndoManager::perform() method

Returns
true if the action could be undone without any errors.
See also
UndoManager::perform

Implements juce::UndoableAction.


The documentation for this class was generated from the following file: