File indexing completed on 2025-02-02 04:14:50
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2023 Wolthera van Hövell <griffinvalley@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KOSHAPEPAINTORDERCOMMAND_H 0008 #define KOSHAPEPAINTORDERCOMMAND_H 0009 0010 #include "kritaflake_export.h" 0011 0012 #include <kundo2command.h> 0013 #include <KoFlake.h> 0014 #include <KoShape.h> 0015 0016 class KRITAFLAKE_EXPORT KoShapePaintOrderCommand: public KUndo2Command 0017 { 0018 public: 0019 KoShapePaintOrderCommand(const QList<KoShape *> &shapes, KoShape::PaintOrder first, KoShape::PaintOrder second, KUndo2Command *parent = nullptr); 0020 0021 ~KoShapePaintOrderCommand() override; 0022 /// redo the command 0023 void redo() override; 0024 /// revert the actions done in redo 0025 void undo() override; 0026 0027 int id() const override; 0028 bool mergeWith(const KUndo2Command *command) override; 0029 0030 private: 0031 class Private; 0032 Private * const d; 0033 }; 0034 0035 #endif // KOSHAPEPAINTORDERCOMMAND_H