blob: dcd9e1efc875b5767fedba859d1cc5bc2e5163d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <QFrame>
#include <QPointer>
QT_BEGIN_NAMESPACE
class QVBoxLayout;
QT_END_NAMESPACE
namespace ScxmlEditor {
namespace PluginInterface {
class ScxmlUiFactory;
class ShapeProvider;
} // namespace PluginInterface
namespace Common {
/**
* @brief The ShapesToolbox class provides all draggable state-items.
*/
class ShapesToolbox : public QFrame
{
Q_OBJECT
public:
explicit ShapesToolbox(QWidget *parent = nullptr);
void setUIFactory(PluginInterface::ScxmlUiFactory *uifactory);
void initView();
private:
QPointer<PluginInterface::ShapeProvider> m_shapeProvider;
QList<QWidget*> m_widgets;
QVBoxLayout *m_shapeGroupsLayout;
};
} // namespace Common
} // namespace ScxmlEditor
|