Command

Search for usage in LXR

Command Class Referenceabstract

#include <command.h>

Inheritance diagram for Command:

Public Member Functions

void addProperty (const QString &key, const QVariant &value)
 
QVariant getPropertyValue (const QString &key)
 
bool hasProperty (const QString &key)
 
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 19 of file command.h.

Constructor & Destructor Documentation

◆ ~Command()

Command::~Command ( )
pure virtual

Definition at line 9 of file command.cpp.

Member Function Documentation

◆ addProperty()

void Command::addProperty ( const QString & key,
const QVariant & value )

Definition at line 13 of file command.cpp.

◆ getPropertyValue()

QVariant Command::getPropertyValue ( const QString & key)

Definition at line 23 of file command.cpp.

◆ hasProperty()

bool Command::hasProperty ( const QString & key)

Definition at line 18 of file command.cpp.

◆ redo()

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

Applies the change to the document.

Implemented in CropCommand, MirrorCommand, ResizeCommand, and RotateCommand.

◆ undo()

virtual QImage Command::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-2025 The KDE developers.
Generated on Fri Apr 11 2025 11:57:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.