UndoCommand

Search for usage in LXR

UndoCommand Class Referenceabstract

#include <undocommand.h>

Inheritance diagram for UndoCommand:

Public Member Functions

virtual QImage redo (QImage image)=0
 
virtual QImage undo (QImage image)=0
 

Detailed Description

A class implementing the command pattern.

This is used to implemented various filters.

Definition at line 14 of file undocommand.h.

Constructor & Destructor Documentation

◆ ~UndoCommand()

UndoCommand::~UndoCommand ( )
pure virtual

Definition at line 9 of file undocommand.cpp.

Member Function Documentation

◆ redo()

virtual QImage UndoCommand::redo ( QImage image)
pure virtual

Applies the change to the document.

Implemented in CropCommand, MirrorCommand, ResizeCommand, and RotateCommand.

◆ undo()

virtual QImage UndoCommand::undo ( QImage image)
pure virtual

Revert a change to the document.

Implemented in CropCommand, MirrorCommand, ResizeCommand, and RotateCommand.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:40 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.