Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_switch_current_time_command.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_SWITCH_CURRENT_TIME_COMMAND_H
8#define __KIS_SWITCH_CURRENT_TIME_COMMAND_H
9
10#include "kritaimage_export.h"
11#include "kis_types.h"
12#include "KoID.h"
13
14#include <kundo2command.h>
15
17
18
19class KRITAIMAGE_EXPORT KisSwitchCurrentTimeCommand : public KUndo2Command
20{
21public:
22 KisSwitchCurrentTimeCommand(KisImageAnimationInterface *animation, int oldTime, int newTime, KUndo2Command *parent = 0);
24
25 void redo() override;
26 void undo() override;
27
28 int id() const override;
29 bool mergeWith(const KUndo2Command* command) override;
30
31private:
35};
36
38{
39public:
40 KisSwitchCurrentTimeToKeyframeCommand(KisImageAnimationInterface *animation, int oldTime, KisNodeSP node, KoID channelId, KisKeyframeSP targetKeyframe, KUndo2Command *parent = 0);
42
43 void redo() override;
44 void undo() override;
45
46 int id() const override;
47 bool mergeWith(const KUndo2Command* command) override;
48
49private:
55};
56
57#endif /* __KIS_SWITCH_CURRENT_TIME_COMMAND_H */
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const
KisImageAnimationInterface * m_animation
Definition KoID.h:30