KDStateMachineEditor  1.0.0
A framework for creating Qt State Machine metacode using a graphical user interface
propertyeditor.h
1 /*
2  propertyeditor.h
3 
4  This file is part of the KDAB State Machine Editor Library.
5 
6  Copyright (C) 2014-2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com.
7  All rights reserved.
8  Author: Kevin Funk <kevin.funk@kdab.com>
9  Author: Volker Krause <volker.krause@kdab.com>
10 
11  Licensees holding valid commercial KDAB State Machine Editor Library
12  licenses may use this file in accordance with the KDAB State Machine Editor
13  Library License Agreement provided with the Software.
14 
15  This file may be distributed and/or modified under the terms of the
16  GNU Lesser General Public License version 2.1 as published by the
17  Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
18 
19  This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20  WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 
22  Contact info@kdab.com if any conditions of this licensing are not
23  clear to you.
24 */
25 
26 #ifndef KDSME_WIDGETS_PROPERTYEDITOR_H
27 #define KDSME_WIDGETS_PROPERTYEDITOR_H
28 
29 #include "kdsme_view_export.h"
30 
31 #include <QStackedWidget>
32 
33 class QItemSelectionModel;
34 class QModelIndex;
35 
36 namespace KDSME {
37 
38 class CommandController;
39 class Element;
40 class StateModel;
41 
42 class KDSME_VIEW_EXPORT PropertyEditor : public QStackedWidget
43 {
44  Q_OBJECT
45 
46 public:
47  explicit PropertyEditor(QWidget *parent = nullptr);
48  ~PropertyEditor();
49 
50  void setSelectionModel(QItemSelectionModel* selectionModel);
51  void setCommandController(CommandController *cmdController);
52  void setStateModel(StateModel* selectionModel);
53 
54 private:
55  struct Private;
56  QScopedPointer<Private> d;
57 
58  Q_PRIVATE_SLOT(d, void updateSimpleProperty())
59  Q_PRIVATE_SLOT(d, void setInitalState(const QString& label))
60  Q_PRIVATE_SLOT(d, void setDefaultState(const QString& label))
61  Q_PRIVATE_SLOT(d, void setSourceState(const QString& label))
62  Q_PRIVATE_SLOT(d, void setTargetState(const QString& label))
63  Q_PRIVATE_SLOT(d, void childModeChanged())
64  Q_PRIVATE_SLOT(d, void currentChanged(const QModelIndex &current, const QModelIndex &previous))
65  Q_PRIVATE_SLOT(d, void modelAboutToBeReset())
66  Q_PRIVATE_SLOT(d, void loadFromCurrentElement())
67 };
68 
69 } // namespace KDSME
70 
71 #endif // PROPERTYEDITOR_H
Definition: elementmodel.h:97
Definition: propertyeditor.h:42
Definition: commandcontroller.h:40
Definition: abstractexporter.h:33

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
https://github.com/KDAB/KDStateMachineEditor