QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
changeElementDataCommand Class Reference

#include <editorcommands.h>

Inheritance diagram for changeElementDataCommand:
Inheritance graph
Collaboration diagram for changeElementDataCommand:
Collaboration graph

Public Member Functions

 changeElementDataCommand (ElementScene *scene, ElementData old_data, ElementData new_data, QUndoCommand *parent=nullptr)
 changeElementDataCommand::changeElementDataCommand Change the properties of the drawn element
 ~changeElementDataCommand () override
void undo () override
void redo () override
Public Member Functions inherited from ElementEditionCommand
 ElementEditionCommand (ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr)
 ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view.
 ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr)
 ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view.
 ~ElementEditionCommand () override
ElementSceneelementScene () const
void setElementScene (ElementScene *)
ElementViewelementView () const
void setElementView (ElementView *)

Private Attributes

ElementData m_old
ElementData m_new

Additional Inherited Members

Protected Attributes inherited from ElementEditionCommand
ElementScenem_scene
 Element editor/view/scene the command should take place on.
ElementViewm_view

Constructor & Destructor Documentation

◆ changeElementDataCommand()

changeElementDataCommand::changeElementDataCommand ( ElementScene * scene,
ElementData old_data,
ElementData new_data,
QUndoCommand * parent = nullptr )

changeElementDataCommand::changeElementDataCommand Change the properties of the drawn element

Parameters
scene: scene belonging to the property
old_data: old data
new_data: new data
parent: parent undo command
Here is the call graph for this function:

◆ ~changeElementDataCommand()

changeElementDataCommand::~changeElementDataCommand ( )
inlineoverride

Member Function Documentation

◆ redo()

void changeElementDataCommand::redo ( )
override

◆ undo()

void changeElementDataCommand::undo ( )
override

Member Data Documentation

◆ m_new

ElementData changeElementDataCommand::m_new
private

◆ m_old

ElementData changeElementDataCommand::m_old
private

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