Class: PropEditorModifyOperation

Kekule.Widget. PropEditorModifyOperation

new PropEditorModifyOperation(propEditor, newValue, oldValue)

Operation of change a property by property editor in object inspector.
Parameters:
Name Type Description
propEditor Kekule.PropertyEditor.BaseEditor Target property editor.
newValue Variant New value set to property editor.
oldValue Variant Old value of property.
Properties:
Name Type Description
propEditor Kekule.PropertyEditor.BaseEditor Target property editor.
newValue Variant New value set to property editor.
oldValue Variant Old value of property. If not set, this value will be caculated automatically when setting new value.
Source:

Extends

Methods

execute()

Execute this command.
Inherited From:
Source:

isReversible() → {Bool}

Indicate whether this command can be undone. Default is true. Descendants should override this method if unreversible.
Inherited From:
Source:
Returns:
Type
Bool

reverse()

Undo command execution.
Inherited From:
Source:

Kekule.Widget. PropEditorModifyOperation

Methods

execute()

Execute this command.
Inherited From:
Source:

isReversible() → {Bool}

Indicate whether this command can be undone. Default is true. Descendants should override this method if unreversible.
Inherited From:
Source:
Returns:
Type
Bool

reverse()

Undo command execution.
Inherited From:
Source: