Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTransactionWrapperFactory Class Referenceabstract

#include <KisTransactionWrapperFactory.h>

+ Inheritance diagram for KisTransactionWrapperFactory:

Public Member Functions

virtual KUndo2CommandcreateBeginTransactionCommand (KisPaintDeviceSP device)=0
 
virtual KUndo2CommandcreateEndTransactionCommand ()=0
 
virtual ~KisTransactionWrapperFactory ()
 

Detailed Description

A simple factory that allows wrapping a paint device transaction with two commands. One command will be executed before the device transaction's code, and the other one after the transaction has been executed.

The only use of this class now is to change/reset interstroke data of a paint device alongside executing the transaction.

Definition at line 24 of file KisTransactionWrapperFactory.h.

Constructor & Destructor Documentation

◆ ~KisTransactionWrapperFactory()

KisTransactionWrapperFactory::~KisTransactionWrapperFactory ( )
virtual

Definition at line 9 of file KisTransactionWrapperFactory.cpp.

10{
11
12}

Member Function Documentation

◆ createBeginTransactionCommand()

virtual KUndo2Command * KisTransactionWrapperFactory::createBeginTransactionCommand ( KisPaintDeviceSP device)
pure virtual

◆ createEndTransactionCommand()

virtual KUndo2Command * KisTransactionWrapperFactory::createEndTransactionCommand ( )
pure virtual

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