KDStateMachineEditor API Documentation 2.3
Loading...
Searching...
No Matches
layoutproperties.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_LAYOUT_LAYOUTPROPERTIES_H
17#define KDSME_LAYOUT_LAYOUTPROPERTIES_H
18
19#include "kdsme_core_export.h"
20
21#include <QFont>
22#include <QObject>
23#include <QRectF>
24#include <QVariant>
25
26namespace KDSME {
27
28class KDSME_CORE_EXPORT LayoutProperties : public QObject
29{
30 Q_OBJECT
31 Q_PROPERTY(qreal regionMargins READ regionMargins WRITE setRegionMargins NOTIFY regionMarginsChanged FINAL)
36
37public:
38 explicit LayoutProperties(QObject *parent = nullptr);
40
41 qreal regionMargins() const;
42 void setRegionMargins(qreal margins);
43
44 QFont regionLabelFont() const;
45 void setRegionLabelFont(const QFont &font);
46
47 qreal regionLabelMargins() const;
48 void setRegionLabelMargins(qreal margins);
49
50 QSizeF regionLabelButtonBoxSize() const;
51 void setRegionLabelButtonBoxSize(const QSizeF &size);
52
53 bool showTransitionLabels() const;
54 void setShowTransitionLabels(bool show);
55
56Q_SIGNALS:
58 void regionLabelFontChanged(const QFont &);
60 void regionLabelButtonBoxSizeChanged(const QSizeF &);
62 void changed();
63
64private:
65 struct Private;
66 QScopedPointer<Private> d;
67};
68
69}
70
71#endif // LAYOUTPROPERTIES_H
void regionLabelMarginsChanged(qreal)
void regionMarginsChanged(qreal)
void setRegionLabelMargins(qreal margins)
void setRegionLabelFont(const QFont &font)
void regionLabelButtonBoxSizeChanged(const QSizeF &)
LayoutProperties(QObject *parent=nullptr)
void setRegionMargins(qreal margins)
void setShowTransitionLabels(bool show)
void showTransitionLabelsChanged(bool)
void setRegionLabelButtonBoxSize(const QSizeF &size)
void regionLabelFontChanged(const QFont &)

© 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 for KDStateMachineEditor API Documentation by doxygen 1.15.0