1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef ABSTRACTFORMEDITOR_H |
5 | #define ABSTRACTFORMEDITOR_H |
6 | |
7 | #include <QtDesigner/sdk_global.h> |
8 | |
9 | #include <QtCore/qobject.h> |
10 | #include <QtCore/qpointer.h> |
11 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | class QDesignerWidgetBoxInterface; |
15 | class QDesignerPropertyEditorInterface; |
16 | class QDesignerFormWindowManagerInterface; |
17 | class QDesignerWidgetDataBaseInterface; |
18 | class QDesignerMetaDataBaseInterface; |
19 | class QDesignerWidgetFactoryInterface; |
20 | class QDesignerObjectInspectorInterface; |
21 | class QDesignerPromotionInterface; |
22 | class QDesignerActionEditorInterface; |
23 | class QDesignerIntegrationInterface; |
24 | class QDesignerPluginManager; |
25 | class QDesignerIntrospectionInterface; |
26 | class QDesignerDialogGuiInterface; |
27 | class QDesignerSettingsInterface; |
28 | class QDesignerOptionsPageInterface; |
29 | class QtResourceModel; |
30 | class QtGradientManager; |
31 | |
32 | class QWidget; |
33 | class QIcon; |
34 | |
35 | class QExtensionManager; |
36 | |
37 | class QDesignerFormEditorInterfacePrivate; |
38 | |
39 | class QDESIGNER_SDK_EXPORT QDesignerFormEditorInterface : public QObject |
40 | { |
41 | Q_OBJECT |
42 | public: |
43 | explicit QDesignerFormEditorInterface(QObject *parent = nullptr); |
44 | virtual ~QDesignerFormEditorInterface(); |
45 | |
46 | QExtensionManager *extensionManager() const; |
47 | |
48 | QWidget *topLevel() const; |
49 | QDesignerWidgetBoxInterface *widgetBox() const; |
50 | QDesignerPropertyEditorInterface *propertyEditor() const; |
51 | QDesignerObjectInspectorInterface *objectInspector() const; |
52 | QDesignerFormWindowManagerInterface *formWindowManager() const; |
53 | QDesignerWidgetDataBaseInterface *widgetDataBase() const; |
54 | QDesignerMetaDataBaseInterface *metaDataBase() const; |
55 | QDesignerPromotionInterface *promotion() const; |
56 | QDesignerWidgetFactoryInterface *widgetFactory() const; |
57 | QDesignerActionEditorInterface *actionEditor() const; |
58 | QDesignerIntegrationInterface *integration() const; |
59 | QDesignerPluginManager *pluginManager() const; |
60 | QDesignerIntrospectionInterface *introspection() const; |
61 | QDesignerDialogGuiInterface *dialogGui() const; |
62 | QDesignerSettingsInterface *settingsManager() const; |
63 | QString resourceLocation() const; |
64 | QtResourceModel *resourceModel() const; |
65 | QtGradientManager *gradientManager() const; |
66 | QList<QDesignerOptionsPageInterface*> optionsPages() const; |
67 | |
68 | void setTopLevel(QWidget *topLevel); |
69 | void setWidgetBox(QDesignerWidgetBoxInterface *widgetBox); |
70 | void setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor); |
71 | void setObjectInspector(QDesignerObjectInspectorInterface *objectInspector); |
72 | void setPluginManager(QDesignerPluginManager *pluginManager); |
73 | void setActionEditor(QDesignerActionEditorInterface *actionEditor); |
74 | void setIntegration(QDesignerIntegrationInterface *integration); |
75 | void setIntrospection(QDesignerIntrospectionInterface *introspection); |
76 | void setDialogGui(QDesignerDialogGuiInterface *dialogGui); |
77 | void setSettingsManager(QDesignerSettingsInterface *settingsManager); |
78 | void setResourceModel(QtResourceModel *model); |
79 | void setGradientManager(QtGradientManager *manager); |
80 | void setOptionsPages(const QList<QDesignerOptionsPageInterface*> &optionsPages); |
81 | |
82 | QObjectList pluginInstances() const; |
83 | |
84 | static QIcon createIcon(const QString &name); |
85 | |
86 | protected: |
87 | void setFormManager(QDesignerFormWindowManagerInterface *formWindowManager); |
88 | void setMetaDataBase(QDesignerMetaDataBaseInterface *metaDataBase); |
89 | void setWidgetDataBase(QDesignerWidgetDataBaseInterface *widgetDataBase); |
90 | void setPromotion(QDesignerPromotionInterface *promotion); |
91 | void setWidgetFactory(QDesignerWidgetFactoryInterface *widgetFactory); |
92 | void setExtensionManager(QExtensionManager *extensionManager); |
93 | |
94 | private: |
95 | QScopedPointer<QDesignerFormEditorInterfacePrivate> d; |
96 | }; |
97 | |
98 | QT_END_NAMESPACE |
99 | |
100 | #endif // ABSTRACTFORMEDITOR_H |
101 |