Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
abstractformeditor.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef ABSTRACTFORMEDITOR_H
6#define ABSTRACTFORMEDITOR_H
7
8#include <QtDesigner/sdk_global.h>
9
10#include <QtCore/qobject.h>
11#include <QtCore/qpointer.h>
12
13#include <memory>
14
15QT_BEGIN_NAMESPACE
16
17class QDesignerWidgetBoxInterface;
18class QDesignerPropertyEditorInterface;
19class QDesignerFormWindowManagerInterface;
20class QDesignerWidgetDataBaseInterface;
21class QDesignerMetaDataBaseInterface;
22class QDesignerWidgetFactoryInterface;
23class QDesignerObjectInspectorInterface;
24class QDesignerPromotionInterface;
25class QDesignerActionEditorInterface;
26class QDesignerIntegrationInterface;
27class QDesignerPluginManager;
28class QDesignerIntrospectionInterface;
29class QDesignerDialogGuiInterface;
30class QDesignerSettingsInterface;
31class QDesignerOptionsPageInterface;
32class QtResourceModel;
34
35class QWidget;
36class QIcon;
37
38class QExtensionManager;
39
41
42class QDESIGNER_SDK_EXPORT QDesignerFormEditorInterface : public QObject
43{
44 Q_OBJECT
45public:
46 explicit QDesignerFormEditorInterface(QObject *parent = nullptr);
47 virtual ~QDesignerFormEditorInterface();
48
49 QExtensionManager *extensionManager() const;
50
51 QWidget *topLevel() const;
52 QDesignerWidgetBoxInterface *widgetBox() const;
53 QDesignerPropertyEditorInterface *propertyEditor() const;
54 QDesignerObjectInspectorInterface *objectInspector() const;
55 QDesignerFormWindowManagerInterface *formWindowManager() const;
56 QDesignerWidgetDataBaseInterface *widgetDataBase() const;
57 QDesignerMetaDataBaseInterface *metaDataBase() const;
58 QDesignerPromotionInterface *promotion() const;
59 QDesignerWidgetFactoryInterface *widgetFactory() const;
60 QDesignerActionEditorInterface *actionEditor() const;
61 QDesignerIntegrationInterface *integration() const;
62 QDesignerPluginManager *pluginManager() const;
63 QDesignerIntrospectionInterface *introspection() const;
64 QDesignerDialogGuiInterface *dialogGui() const;
65 QDesignerSettingsInterface *settingsManager() const;
66 QString resourceLocation() const;
67 QtResourceModel *resourceModel() const;
68 QtGradientManager *gradientManager() const;
69 QList<QDesignerOptionsPageInterface*> optionsPages() const;
70
71 void setTopLevel(QWidget *topLevel);
72 void setWidgetBox(QDesignerWidgetBoxInterface *widgetBox);
73 void setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor);
74 void setObjectInspector(QDesignerObjectInspectorInterface *objectInspector);
75 void setPluginManager(QDesignerPluginManager *pluginManager);
76 void setActionEditor(QDesignerActionEditorInterface *actionEditor);
77 void setIntegration(QDesignerIntegrationInterface *integration);
78 void setIntrospection(QDesignerIntrospectionInterface *introspection);
79 void setDialogGui(QDesignerDialogGuiInterface *dialogGui);
80 void setSettingsManager(QDesignerSettingsInterface *settingsManager);
81 void setResourceModel(QtResourceModel *model);
82 void setGradientManager(QtGradientManager *manager);
83 void setOptionsPages(const QList<QDesignerOptionsPageInterface*> &optionsPages);
84
85 QObjectList pluginInstances() const;
86
87 static QIcon createIcon(const QString &name);
88
89protected:
90 void setFormManager(QDesignerFormWindowManagerInterface *formWindowManager);
91 void setMetaDataBase(QDesignerMetaDataBaseInterface *metaDataBase);
92 void setWidgetDataBase(QDesignerWidgetDataBaseInterface *widgetDataBase);
93 void setPromotion(QDesignerPromotionInterface *promotion);
94 void setWidgetFactory(QDesignerWidgetFactoryInterface *widgetFactory);
95 void setExtensionManager(QExtensionManager *extensionManager);
96
97private:
98 std::unique_ptr<QDesignerFormEditorInterfacePrivate> d;
99};
100
101QT_END_NAMESPACE
102
103#endif // ABSTRACTFORMEDITOR_H
The QDesignerFormEditorInterface class allows you to access Qt Widgets Designer's various components.
friend class QWidget
Definition qpainter.h:432
void setSuperPalette(const QPalette &palette)
static constexpr auto defaultResourceAttributeC
static constexpr auto themeEnumAttributeC
static constexpr auto flagsAttributeC
static constexpr auto validationModesAttributeC
static constexpr auto resettableAttributeC
static constexpr auto themeAttributeC
static constexpr auto superPaletteAttributeC
static constexpr auto fontAttributeC
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QT_PROPERTYEDITOR_EXPORT