KDStateMachineEditor API Documentation
1.2
source
src
view
widgets
propertyeditor.h
1
/*
2
This file is part of the KDAB State Machine Editor Library.
3
4
SPDX-FileCopyrightText: 2014-2021 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_WIDGETS_PROPERTYEDITOR_H
17
#define KDSME_WIDGETS_PROPERTYEDITOR_H
18
19
#include "kdsme_view_export.h"
20
21
#include <QStackedWidget>
22
23
QT_BEGIN_NAMESPACE
24
class
QItemSelectionModel
;
25
class
QModelIndex
;
26
QT_END_NAMESPACE
27
28
namespace
KDSME {
29
30
class
CommandController;
31
class
Element;
32
class
StateModel;
33
34
class
KDSME_VIEW_EXPORT
PropertyEditor
:
public
QStackedWidget
35
{
36
Q_OBJECT
37
38
public
:
39
explicit
PropertyEditor
(
QWidget
*parent =
nullptr
);
40
~
PropertyEditor
();
41
42
void
setSelectionModel(
QItemSelectionModel
* selectionModel);
43
void
setCommandController(
CommandController
*cmdController);
44
void
setStateModel(
StateModel
* selectionModel);
45
46
private
:
47
struct
Private;
48
QScopedPointer<Private>
d;
49
50
Q_PRIVATE_SLOT(d,
void
updateSimpleProperty())
51
Q_PRIVATE_SLOT(d,
void
setInitalState(
const
QString
& label))
52
Q_PRIVATE_SLOT(d,
void
setDefaultState(
const
QString
& label))
53
Q_PRIVATE_SLOT(d,
void
setSourceState(
const
QString
& label))
54
Q_PRIVATE_SLOT(d,
void
setTargetState(
const
QString
& label))
55
Q_PRIVATE_SLOT(d,
void
childModeChanged())
56
Q_PRIVATE_SLOT(d,
void
currentChanged(
const
QModelIndex
¤t,
const
QModelIndex
&previous))
57
Q_PRIVATE_SLOT(d,
void
modelAboutToBeReset())
58
Q_PRIVATE_SLOT(d,
void
loadFromCurrentElement())
59
};
60
61
}
// namespace KDSME
62
63
#endif // PROPERTYEDITOR_H
QItemSelectionModel
KDSME::PropertyEditor
Definition:
propertyeditor.h:35
QWidget
QString
QScopedPointer< Private >
QStackedWidget
KDSME::CommandController
Definition:
commandcontroller.h:34
QModelIndex
KDSME::StateModel
Definition:
elementmodel.h:85
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