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

Undo command that renames a blob in the IC registry. More...

#include <Commands.h>

Inheritance diagram for RenameBlobCommand:
[legend]

Public Member Functions

void redo () override
 RenameBlobCommand (const QString &oldName, const QString &newName, Scene *scene, QUndoCommand *parent=nullptr)
void undo () override

Detailed Description

Undo command that renames a blob in the IC registry.

Pushed standalone (never sharing a transaction with an UpdateCommand) so a rename is its own independent undo step — see ElementEditor's lineEditBlobName editingFinished handler.

Definition at line 497 of file Commands.h.

Constructor & Destructor Documentation

◆ RenameBlobCommand()

RenameBlobCommand::RenameBlobCommand ( const QString & oldName,
const QString & newName,
Scene * scene,
QUndoCommand * parent = nullptr )

Definition at line 1164 of file Commands.cpp.

Member Function Documentation

◆ redo()

void RenameBlobCommand::redo ( )
override

Definition at line 1173 of file Commands.cpp.

◆ undo()

void RenameBlobCommand::undo ( )
override

Definition at line 1178 of file Commands.cpp.


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