wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
RemoveBlobCommand Class Reference

Undo command that removes/restores a blob in the IC registry. More...

#include <Commands.h>

Inheritance diagram for RemoveBlobCommand:
[legend]

Public Member Functions

void redo () override
 RemoveBlobCommand (const QString &blobName, Scene *scene, QUndoCommand *parent=nullptr)
void undo () override

Detailed Description

Undo command that removes/restores a blob in the IC registry.

Inverse of RegisterBlobCommand — used with beginMacro to pair blob removal with DeleteItemsCommand when removing an embedded IC, so undo restores both the IC instances AND the blob they reference.

Definition at line 473 of file Commands.h.

Constructor & Destructor Documentation

◆ RemoveBlobCommand()

RemoveBlobCommand::RemoveBlobCommand ( const QString & blobName,
Scene * scene,
QUndoCommand * parent = nullptr )

Definition at line 1141 of file Commands.cpp.

Member Function Documentation

◆ redo()

void RemoveBlobCommand::redo ( )
override

Definition at line 1152 of file Commands.cpp.

◆ undo()

void RemoveBlobCommand::undo ( )
override

Definition at line 1157 of file Commands.cpp.


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