File indexing completed on 2025-03-09 04:03:40
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KOPATHREVERSECOMMAND_H 0008 #define KOPATHREVERSECOMMAND_H 0009 0010 #include <kundo2command.h> 0011 #include <QList> 0012 #include "kritaflake_export.h" 0013 0014 class KoPathShape; 0015 0016 /// The undo / redo command for reversing path directions 0017 class KRITAFLAKE_EXPORT KoPathReverseCommand : public KUndo2Command 0018 { 0019 public: 0020 /** 0021 * Command for reversing directions of a list of paths 0022 * @param paths the list of paths to reverse 0023 * @param parent the parent command used for macro commands 0024 */ 0025 explicit KoPathReverseCommand(const QList<KoPathShape*> &paths, KUndo2Command *parent = 0); 0026 ~KoPathReverseCommand() override; 0027 /// redo the command 0028 void redo() override; 0029 /// revert the actions done in redo 0030 void undo() override; 0031 private: 0032 class Private; 0033 Private * const d; 0034 }; 0035 0036 #endif // KOPATHREVERSECOMMAND_H