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

The DeletePartsCommand class Class used to remove part from an element scene. More...

#include <deletepartscommand.h>

Inheritance diagram for DeletePartsCommand:
Inheritance graph
Collaboration diagram for DeletePartsCommand:
Collaboration graph

Public Member Functions

 DeletePartsCommand (QPointer< ElementScene > scene, const QVector< QGraphicsItem * > &parts, QUndoCommand *parent=nullptr)
 DeletePartsCommand::DeletePartsCommand.
 
 ~DeletePartsCommand () override
 DeletePartsCommand::~DeletePartsCommand.
 
void undo () override
 DeletePartsCommand::undo.
 
void redo () override
 DeletePartsCommand::redo.
 

Private Member Functions

 DeletePartsCommand (const DeletePartsCommand &)
 

Private Attributes

QPointer< ElementScenem_scene
 
QVector< QGraphicsItem * > m_parts
 

Detailed Description

The DeletePartsCommand class Class used to remove part from an element scene.

Constructor & Destructor Documentation

◆ DeletePartsCommand() [1/2]

DeletePartsCommand::DeletePartsCommand ( QPointer< ElementScene scene,
const QVector< QGraphicsItem * > &  parts,
QUndoCommand *  parent = nullptr 
)

DeletePartsCommand::DeletePartsCommand.

Parameters
scene
parts
parent

◆ ~DeletePartsCommand()

DeletePartsCommand::~DeletePartsCommand ( )
override

◆ DeletePartsCommand() [2/2]

DeletePartsCommand::DeletePartsCommand ( const DeletePartsCommand )
private

Member Function Documentation

◆ redo()

void DeletePartsCommand::redo ( )
override

◆ undo()

void DeletePartsCommand::undo ( )
override

Member Data Documentation

◆ m_parts

QVector<QGraphicsItem *> DeletePartsCommand::m_parts
private

◆ m_scene

QPointer<ElementScene> DeletePartsCommand::m_scene
private

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