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++
919 B
Raw Blame
/* This file is part of the KDE project
 * SPDX-FileCopyrightText: 2023 Wolthera van Hövell <[email protected]>
 *
 * SPDX-License-Identifier: LGPL-2.0-or-later
 */

#ifndef KOSHAPEPAINTORDERCOMMAND_H
#define KOSHAPEPAINTORDERCOMMAND_H

#include "kritaflake_export.h"

#include <kundo2command.h>
#include <KoFlake.h>
#include <KoShape.h>

class KRITAFLAKE_EXPORT KoShapePaintOrderCommand: public KUndo2Command
{
public:
    KoShapePaintOrderCommand(const QList<KoShape *> &shapes, KoShape::PaintOrder first, KoShape::PaintOrder second, KUndo2Command *parent = nullptr);

    ~KoShapePaintOrderCommand() override;
    /// redo the command
    void redo() override;
    /// revert the actions done in redo
    void undo() override;

    int id() const override;
    bool mergeWith(const KUndo2Command *command) override;

private:
    class Private;
    Private * const d;
};

#endif // KOSHAPEPAINTORDERCOMMAND_H