QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ChangeInformationsCommand Class Reference

#include <editorcommands.h>

Inheritance diagram for ChangeInformationsCommand:
Inheritance graph
Collaboration diagram for ChangeInformationsCommand:
Collaboration graph

Public Member Functions

 ChangeInformationsCommand (ElementScene *, const QString &, const QString &, QUndoCommand *=nullptr)
 
 ~ChangeInformationsCommand () override
 Destructeur.
 
void undo () override
 Annule le changement d'autorisation pour les connexions internes.
 
void redo () override
 Refait le changement d'autorisation pour les connexions internes.
 
- 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 Member Functions

 ChangeInformationsCommand (const ChangeInformationsCommand &)
 

Private Attributes

QString old_informations_
 Former information.
 
QString new_informations_
 New information.
 

Additional Inherited Members

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

Detailed Description

This command changes extra information carried by an electrical element.

Constructor & Destructor Documentation

◆ ChangeInformationsCommand() [1/2]

ChangeInformationsCommand::ChangeInformationsCommand ( ElementScene elmt,
const QString &  old_infos,
const QString &  new_infos,
QUndoCommand *  parent = nullptr 
)

Constructeur

Parameters
elmtElementScene concernee
old_infosInformations complementaires precedentes
new_infosNouvelles informations complementaires
parentQUndoCommand parent

◆ ~ChangeInformationsCommand()

ChangeInformationsCommand::~ChangeInformationsCommand ( )
override

Destructeur.

◆ ChangeInformationsCommand() [2/2]

ChangeInformationsCommand::ChangeInformationsCommand ( const ChangeInformationsCommand )
private

Member Function Documentation

◆ redo()

void ChangeInformationsCommand::redo ( )
override

Refait le changement d'autorisation pour les connexions internes.

Here is the call graph for this function:

◆ undo()

void ChangeInformationsCommand::undo ( )
override

Annule le changement d'autorisation pour les connexions internes.

Here is the call graph for this function:

Member Data Documentation

◆ new_informations_

QString ChangeInformationsCommand::new_informations_
private

New information.

◆ old_informations_

QString ChangeInformationsCommand::old_informations_
private

Former information.


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