QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
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

◆ ~changeElementDataCommand()

changeElementDataCommand::~changeElementDataCommand ( )
inlineoverride

Member Function Documentation

◆ redo()

void changeElementDataCommand::redo ( )
override
Here is the call graph for this function:

◆ undo()

void changeElementDataCommand::undo ( )
override
Here is the call graph for this function:

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: