KDStateMachineEditor API Documentation
2.1
Loading...
Searching...
No Matches
src
core
model
elementutil.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: 2014 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_MODEL_ELEMENTUTIL_H
17
#define KDSME_MODEL_ELEMENTUTIL_H
18
19
#include "kdsme_core_export.h"
20
21
#include <qglobal.h>
22
23
QT_BEGIN_NAMESPACE
24
class
QString;
25
QT_END_NAMESPACE
26
27
namespace
KDSME
{
28
29
class
CompositeState;
30
class
Element;
31
class
State;
32
class
StateMachine;
33
34
namespace
ElementUtil {
35
36
KDSME_CORE_EXPORT
State
*
findInitialState
(
const
State
*state);
37
KDSME_CORE_EXPORT
void
setInitialState
(
State
*state,
State
*initialState);
38
39
KDSME_CORE_EXPORT
State
*
findState
(
State
*root,
const
QString &label);
40
KDSME_CORE_EXPORT
StateMachine
*
findStateMachine
(
const
Element
*element);
41
42
}
43
44
}
45
46
#endif
KDSME::Element
Definition
element.h:35
KDSME::StateMachine
Definition
state.h:156
KDSME::State
Definition
state.h:29
KDSME::ElementUtil::setInitialState
KDSME_CORE_EXPORT void setInitialState(State *state, State *initialState)
Definition
elementutil.cpp:41
KDSME::ElementUtil::findInitialState
KDSME_CORE_EXPORT State * findInitialState(const State *state)
Definition
elementutil.cpp:24
KDSME::ElementUtil::findStateMachine
KDSME_CORE_EXPORT StateMachine * findStateMachine(const Element *element)
Definition
elementutil.cpp:98
KDSME::ElementUtil::findState
KDSME_CORE_EXPORT State * findState(State *root, const QString &label)
Definition
elementutil.cpp:80
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