RemoveMediaAnnotationCommand.h header
#include <ew/core/RemoveMediaAnnotationCommand.h>
Namespace ew::core
RemoveMediaAnnotationCommand class
class ew::core::RemoveMediaAnnotationCommand
Command that removes an annotation from a media image by index. Undo restores it at its original position; a no-op if the index is out of range.
Members
ew::core::RemoveMediaAnnotationCommand::RemoveMediaAnnotationCommand(Media &media, std::size_t index)
Creates a command that removes the annotation at index from media when applied.
ew::core::RemoveMediaAnnotationCommand::~RemoveMediaAnnotationCommand() override
Destroys the command.
void ew::core::RemoveMediaAnnotationCommand::apply() override
Records the annotation and removes it.
void ew::core::RemoveMediaAnnotationCommand::undo() override
Reinserts the removed annotation at its original index.
QString ew::core::RemoveMediaAnnotationCommand::description() const override
Returns a short description for the undo/redo UI.