Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
704 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2012 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KIS_TRANSACTION_BASED_COMMAND_H
#define KIS_TRANSACTION_BASED_COMMAND_H

#include <kritaimage_export.h>
#include <kundo2command.h>

class KRITAIMAGE_EXPORT KisTransactionBasedCommand : public KUndo2Command
{
public:
    KisTransactionBasedCommand(const KUndo2MagicString &text = KUndo2MagicString(), KUndo2Command *parent = 0);

    ~KisTransactionBasedCommand() override;

    void redo() override;
    void undo() override;

protected:
    virtual KUndo2Command* paint() = 0;
private:
    KUndo2Command *m_transactionData;
};
#endif // KIS_TRANSACTION_BASED_COMMAND_H