KQuickImageEditor

undocommand.h
1/*
2 * SPDX-FileCopyrightText: (C) 2020 Carl Schwan <carl@carlschwan.eu>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6
7#pragma once
8
9class QImage;
10
11/**
12 * A class implementing the command pattern. This is used to implemented various filters.
13 */
15{
16public:
17 virtual ~UndoCommand() = 0;
18
19 /**
20 * Applies the change to the document.
21 */
22 virtual QImage redo(QImage image) = 0;
23
24 /**
25 * Revert a change to the document.
26 */
27 virtual QImage undo(QImage image) = 0;
28};
A class implementing the command pattern.
Definition undocommand.h:15
virtual QImage undo(QImage image)=0
Revert a change to the document.
virtual QImage redo(QImage image)=0
Applies the change to the document.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.