Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_gui_context_command.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_GUI_CONTEXT_COMMAND_H
8#define __KIS_GUI_CONTEXT_COMMAND_H
9
10#include <QObject>
11#include "kundo2command.h"
12
14
21class KisGuiContextCommand : public QObject, public KUndo2Command
22{
23 Q_OBJECT
24public:
25 KisGuiContextCommand(KUndo2Command *command, QObject *guiObject);
26 ~KisGuiContextCommand() override;
27
28 void undo() override;
29 void redo() override;
30
31Q_SIGNALS:
32 void sigExecuteCommand(KUndo2Command *command, bool undo);
33
34private:
35 QScopedPointer<KUndo2Command> m_command;
36 QScopedPointer<KisGuiContextCommandDelegate> m_delegate;
37};
38
39#endif /* __KIS_GUI_CONTEXT_COMMAND_H */
void sigExecuteCommand(KUndo2Command *command, bool undo)
QScopedPointer< KisGuiContextCommandDelegate > m_delegate
QScopedPointer< KUndo2Command > m_command
KisGuiContextCommand(KUndo2Command *command, QObject *guiObject)