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

#include <editorcommands.h>

Public Member Functions

 CutPartsCommand (ElementScene *, const QList< QGraphicsItem *> &, QUndoCommand *=nullptr)
 
 ~CutPartsCommand () override
 Destructeur. More...
 
- Public Member Functions inherited from DeletePartsCommand
 DeletePartsCommand (ElementScene *, const QList< QGraphicsItem *> &, QUndoCommand *=nullptr)
 
 ~DeletePartsCommand () override
 Destructeur : detruit egalement les parties supprimees. More...
 
void undo () override
 Restaure les parties supprimees. More...
 
void redo () override
 Supprime les parties. More...
 
- 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 Member Functions

 CutPartsCommand (const CutPartsCommand &)
 

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

This command cut primitives when editing an electrical element.

Definition at line 113 of file editorcommands.h.

Constructor & Destructor Documentation

◆ CutPartsCommand() [1/2]

CutPartsCommand::CutPartsCommand ( ElementScene scene,
const QList< QGraphicsItem *> &  parts,
QUndoCommand *  parent = nullptr 
)

Constructeur

Parameters
sceneElementScene concernee
partsListe des parties coupees
parentQUndoCommand parent

Definition at line 202 of file editorcommands.cpp.

References QET::Icons::tr.

◆ ~CutPartsCommand()

CutPartsCommand::~CutPartsCommand ( )
override

Destructeur.

Definition at line 213 of file editorcommands.cpp.

◆ CutPartsCommand() [2/2]

CutPartsCommand::CutPartsCommand ( const CutPartsCommand )
private

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