KDStateMachineEditor API Documentation
2.1
Loading...
Searching...
No Matches
src
view
command
command_p.h
Go to the documentation of this file.
1
/*
2
This file is part of the KDAB State Machine Editor Library.
3
4
SPDX-FileCopyrightText: 2015 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5
Author: Kevin Funk <kevin.funk@kdab.com>
6
7
SPDX-License-Identifier: LGPL-2.1-only OR LicenseRef-KDAB-KDStateMachineEditor
8
9
Licensees holding valid commercial KDAB State Machine Editor Library
10
licenses may use this file in accordance with the KDAB State Machine Editor
11
Library License Agreement provided with the Software.
12
13
Contact info@kdab.com if any conditions of this licensing are not clear to you.
14
*/
15
16
#ifndef KDSME_COMMAND_COMMAND_P_H
17
#define KDSME_COMMAND_COMMAND_P_H
18
19
#include "kdsme_view_export.h"
20
21
#include <QUndoCommand>
22
23
namespace
KDSME
{
24
class
StateModel;
25
26
class
KDSME_VIEW_EXPORT
Command
:
public
QObject,
public
QUndoCommand
// clazy:exclude=ctor-missing-parent-argument
27
{
28
Q_OBJECT
29
30
public
:
31
enum
Id
32
{
33
CreateElement = 0,
34
DeleteElement
,
35
ReparentElement
,
36
LayoutSnapshot
,
37
ModifyProperty
,
38
ModifyInitialState
,
39
ModifyDefaultState
,
40
ModifyElement
,
41
ModifyTransition
,
42
ChangeStateMachine
43
};
44
45
explicit
Command
(
StateModel
*model, QUndoCommand *parent =
nullptr
);
46
explicit
Command
(
const
QString &text = QString(), QUndoCommand *parent =
nullptr
);
47
48
StateModel
*model()
const
;
49
50
private
:
51
StateModel
*m_model;
52
};
53
54
}
55
56
Q_DECLARE_METATYPE(
KDSME::Command
*)
57
58
#endif
// COMMAND_P_H
KDSME::Command
Definition
command_p.h:27
KDSME::Command::Id
Id
Definition
command_p.h:32
KDSME::Command::ModifyDefaultState
@ ModifyDefaultState
Definition
command_p.h:39
KDSME::Command::ModifyProperty
@ ModifyProperty
Definition
command_p.h:37
KDSME::Command::LayoutSnapshot
@ LayoutSnapshot
Definition
command_p.h:36
KDSME::Command::ModifyElement
@ ModifyElement
Definition
command_p.h:40
KDSME::Command::ModifyInitialState
@ ModifyInitialState
Definition
command_p.h:38
KDSME::Command::DeleteElement
@ DeleteElement
Definition
command_p.h:34
KDSME::Command::ReparentElement
@ ReparentElement
Definition
command_p.h:35
KDSME::Command::ModifyTransition
@ ModifyTransition
Definition
command_p.h:41
KDSME::StateModel
Definition
elementmodel.h:90
KDSME
Definition
mainwindow.h:21
© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDStateMachineEditor
Create Qt State Machine metacode using a graphical user interface
https://github.com/KDAB/KDStateMachineEditor
Generated on Tue Jul 15 2025 15:21:47 for KDStateMachineEditor API Documentation by doxygen 1.9.8