QElectroTech  0.8-dev
Public Member Functions | Private Attributes | List of all members
ChangePropertiesCommand Class Reference

#include <editorcommands.h>

Inheritance diagram for ChangePropertiesCommand:
Inheritance graph
Collaboration diagram for ChangePropertiesCommand:
Collaboration graph

Public Member Functions

 ChangePropertiesCommand (ElementScene *scene, const QString &type, const DiagramContext &info, const DiagramContext &elmt_info, QUndoCommand *parent=nullptr)
 ChangePropertiesCommand::ChangePropertiesCommand Change the properties of the drawed element. More...
 
 ~ChangePropertiesCommand () 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. More...
 
 ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr)
 ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view. More...
 
 ~ElementEditionCommand () override
 
ElementSceneelementScene () const
 
void setElementScene (ElementScene *)
 
ElementViewelementView () const
 
void setElementView (ElementView *)
 

Private Attributes

QList< QString > m_type
 
QList< DiagramContextm_kind_info
 
QList< DiagramContextm_elmt_info
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ChangePropertiesCommand()

ChangePropertiesCommand::ChangePropertiesCommand ( ElementScene scene,
const QString &  type,
const DiagramContext info,
const DiagramContext elmt_info,
QUndoCommand *  parent = nullptr 
)

ChangePropertiesCommand::ChangePropertiesCommand Change the properties of the drawed element.

Parameters
scene: scene to belong the property
type: new type of element.
info
elmt_info: new info about type.
parent: parent undo

◆ ~ChangePropertiesCommand()

ChangePropertiesCommand::~ChangePropertiesCommand ( )
override

Member Function Documentation

◆ redo()

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

◆ undo()

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

Member Data Documentation

◆ m_elmt_info

QList< DiagramContext> ChangePropertiesCommand::m_elmt_info
private

◆ m_kind_info

QList<DiagramContext> ChangePropertiesCommand::m_kind_info
private

◆ m_type

QList<QString> ChangePropertiesCommand::m_type
private

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