Undo/Redo for changes in component properties. More...
#include <ChangePropertyCommand.h>
Public Member Functions | |
ChangePropertyCommand (QGraphicsItem *item, Properties *oldProperties, Properties *newProperties, PropertiesOutside *outside=0, QUndoCommand *parent=0) | |
Constructor. More... | |
ChangePropertyCommand (std::vector< QGraphicsItem * > items, std::vector< Properties * > allOld, std::vector< Properties * > allNew, PropertiesOutside *outside=0, QUndoCommand *parent=0) | |
Constructor. More... | |
virtual void | redo () |
Reimplemented from QUndoCommand. More... | |
virtual void | undo () |
Reimplemented from QUndoCommand. More... | |
virtual | ~ChangePropertyCommand () |
Destructor. Delete all properties. More... | |
Protected Member Functions | |
virtual bool | checkItem (QGraphicsItem *item, Properties *props) |
virtual bool | checkVectors () |
virtual QString | createCommandString (QGraphicsItem *item) |
virtual bool | equals (Properties *props1, Properties *props2) |
Protected Attributes | |
std::vector< Properties * > | m_allNewProperties |
std::vector< Properties * > | m_allOldProperties |
QGraphicsItem * | m_item |
std::vector< QGraphicsItem * > | m_items |
Properties * | m_newProperties |
Properties * | m_oldProperties |
PropertiesOutside * | m_outside |
Undo/Redo for changes in component properties.
Definition at line 54 of file ChangePropertyCommand.h.
te::layout::ChangePropertyCommand::ChangePropertyCommand | ( | QGraphicsItem * | item, |
Properties * | oldProperties, | ||
Properties * | newProperties, | ||
PropertiesOutside * | outside = 0 , |
||
QUndoCommand * | parent = 0 |
||
) |
Constructor.
item | |
oldProperties | |
newProperties | |
outside | |
parent |
Definition at line 40 of file ChangePropertyCommand.cpp.
te::layout::ChangePropertyCommand::ChangePropertyCommand | ( | std::vector< QGraphicsItem * > | items, |
std::vector< Properties * > | allOld, | ||
std::vector< Properties * > | allNew, | ||
PropertiesOutside * | outside = 0 , |
||
QUndoCommand * | parent = 0 |
||
) |
Constructor.
items | |
oldProperties | |
newProperties | |
outside | |
parent |
Definition at line 51 of file ChangePropertyCommand.cpp.
|
virtual |
Destructor. Delete all properties.
Definition at line 65 of file ChangePropertyCommand.cpp.
References te::layout::Properties::clear().
|
protectedvirtual |
Definition at line 238 of file ChangePropertyCommand.cpp.
References te::layout::ItemObserver::getModel(), te::layout::ItemModelObservable::getProperties(), te::layout::ItemObserver::redraw(), and te::layout::ItemModelObservable::updateProperties().
|
protectedvirtual |
Definition at line 263 of file ChangePropertyCommand.cpp.
|
protectedvirtual |
Definition at line 184 of file ChangePropertyCommand.cpp.
References te::layout::ItemObserver::getModel(), te::layout::EnumType::getName(), and te::layout::Observable::getType().
|
protectedvirtual |
Definition at line 207 of file ChangePropertyCommand.cpp.
References te::layout::Properties::getProperties(), and te::layout::Property::getValue().
|
virtual |
Reimplemented from QUndoCommand.
Definition at line 150 of file ChangePropertyCommand.cpp.
|
virtual |
Reimplemented from QUndoCommand.
Definition at line 116 of file ChangePropertyCommand.cpp.
|
protected |
Definition at line 113 of file ChangePropertyCommand.h.
|
protected |
Definition at line 112 of file ChangePropertyCommand.h.
|
protected |
Definition at line 107 of file ChangePropertyCommand.h.
|
protected |
Definition at line 111 of file ChangePropertyCommand.h.
|
protected |
Definition at line 109 of file ChangePropertyCommand.h.
|
protected |
Definition at line 108 of file ChangePropertyCommand.h.
|
protected |
Definition at line 110 of file ChangePropertyCommand.h.