KDStateMachineEditor  1.0.0
A framework for creating Qt State Machine metacode using a graphical user interface
semanticzoommanager.h
1 /*
2  semanticzoommanager.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 
10  Licensees holding valid commercial KDAB State Machine Editor Library
11  licenses may use this file in accordance with the KDAB State Machine Editor
12  Library License Agreement provided with the Software.
13 
14  This file may be distributed and/or modified under the terms of the
15  GNU Lesser General Public License version 2.1 as published by the
16  Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
17 
18  This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
19  WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 
21  Contact info@kdab.com if any conditions of this licensing are not
22  clear to you.
23 */
24 
25 #ifndef KDSME_SEMANTICZOOMMANAGER_H
26 #define KDSME_SEMANTICZOOMMANAGER_H
27 
28 #include "kdsme_view_export.h"
29 
30 #include <QObject>
31 
32 namespace KDSME {
33 
34 class RuntimeController;
35 class State;
36 class StateMachineScene;
37 
38 class KDSME_VIEW_EXPORT SemanticZoomManager : public QObject
39 {
40  Q_OBJECT
41  Q_PROPERTY(KDSME::StateMachineScene* scene READ scene WRITE setScene NOTIFY sceneChanged)
42  Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged)
43 
44 public:
45  explicit SemanticZoomManager(QObject* parent = nullptr);
46 
47  StateMachineScene* scene() const;
48  void setScene(StateMachineScene* scene);
49 
50  RuntimeController* runtimeController() const;
51  void setRuntimeController(RuntimeController* controller);
52 
53  bool isEnabled() const;
54  void setEnabled(bool enabled);
55 
56 private Q_SLOTS:
57  void handleActiveConfigurationChanged(const QSet<State*>& configuration);
58  void updateRuntimeController();
59 
60 Q_SIGNALS:
61  void sceneChanged(StateMachineScene* controller);
62  void enabledChanged(bool enabled);
63 
64 private:
65  StateMachineScene* m_scene;
66  RuntimeController* m_runtimeController;
67  bool m_enabled;
68 };
69 
70 }
71 
72 #endif
Definition: semanticzoommanager.h:38
Definition: runtimecontroller.h:37
Definition: statemachinescene.h:43
Definition: abstractexporter.h:33

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