QElectroTech  0.70
Public Member Functions | Private Attributes | List of all members
ChangePropertiesCommand Class Reference

#include <editorcommands.h>

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 (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr)
 
 ~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
 

Detailed Description

Definition at line 291 of file editorcommands.h.

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
scenescene to belong the property
typenew type of element.
contextnew info about type.
parentparent undo

Definition at line 596 of file editorcommands.cpp.

References m_elmt_info, ElementScene::m_elmt_information, ElementScene::m_elmt_kindInfo, ElementScene::m_elmt_type, m_kind_info, m_type, and QET::Icons::tr.

◆ ~ChangePropertiesCommand()

ChangePropertiesCommand::~ChangePropertiesCommand ( )
override

Definition at line 605 of file editorcommands.cpp.

Member Function Documentation

◆ redo()

void ChangePropertiesCommand::redo ( )
override

◆ undo()

void ChangePropertiesCommand::undo ( )
override

Member Data Documentation

◆ m_elmt_info

QList< DiagramContext> ChangePropertiesCommand::m_elmt_info
private

Definition at line 302 of file editorcommands.h.

Referenced by ChangePropertiesCommand(), redo(), and undo().

◆ m_kind_info

QList<DiagramContext> ChangePropertiesCommand::m_kind_info
private

Definition at line 301 of file editorcommands.h.

Referenced by ChangePropertiesCommand(), redo(), and undo().

◆ m_type

QList<QString> ChangePropertiesCommand::m_type
private

Definition at line 300 of file editorcommands.h.

Referenced by ChangePropertiesCommand(), redo(), and undo().


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