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
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#include <memory>
13
14QT_BEGIN_NAMESPACE
15
16class QDesignerWidgetBoxInterface;
17class QDesignerPropertyEditorInterface;
18class QDesignerFormWindowManagerInterface;
19class QDesignerWidgetDataBaseInterface;
20class QDesignerMetaDataBaseInterface;
21class QDesignerWidgetFactoryInterface;
22class QDesignerObjectInspectorInterface;
23class QDesignerPromotionInterface;
24class QDesignerActionEditorInterface;
25class QDesignerIntegrationInterface;
26class QDesignerPluginManager;
27class QDesignerIntrospectionInterface;
28class QDesignerDialogGuiInterface;
29class QDesignerSettingsInterface;
30class QDesignerOptionsPageInterface;
31class QtResourceModel;
33
34class QWidget;
35class QIcon;
36
37class QExtensionManager;
38
40
41class QDESIGNER_SDK_EXPORT QDesignerFormEditorInterface : public QObject
42{
43 Q_OBJECT
44public:
45 explicit QDesignerFormEditorInterface(QObject *parent = nullptr);
46 virtual ~QDesignerFormEditorInterface();
47
48 QExtensionManager *extensionManager() const;
49
50 QWidget *topLevel() const;
51 QDesignerWidgetBoxInterface *widgetBox() const;
52 QDesignerPropertyEditorInterface *propertyEditor() const;
53 QDesignerObjectInspectorInterface *objectInspector() const;
54 QDesignerFormWindowManagerInterface *formWindowManager() const;
55 QDesignerWidgetDataBaseInterface *widgetDataBase() const;
56 QDesignerMetaDataBaseInterface *metaDataBase() const;
57 QDesignerPromotionInterface *promotion() const;
58 QDesignerWidgetFactoryInterface *widgetFactory() const;
59 QDesignerActionEditorInterface *actionEditor() const;
60 QDesignerIntegrationInterface *integration() const;
61 QDesignerPluginManager *pluginManager() const;
62 QDesignerIntrospectionInterface *introspection() const;
63 QDesignerDialogGuiInterface *dialogGui() const;
64 QDesignerSettingsInterface *settingsManager() const;
65 QString resourceLocation() const;
66 QtResourceModel *resourceModel() const;
67 QtGradientManager *gradientManager() const;
68 QList<QDesignerOptionsPageInterface*> optionsPages() const;
69
70 void setTopLevel(QWidget *topLevel);
71 void setWidgetBox(QDesignerWidgetBoxInterface *widgetBox);
72 void setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor);
73 void setObjectInspector(QDesignerObjectInspectorInterface *objectInspector);
74 void setPluginManager(QDesignerPluginManager *pluginManager);
75 void setActionEditor(QDesignerActionEditorInterface *actionEditor);
76 void setIntegration(QDesignerIntegrationInterface *integration);
77 void setIntrospection(QDesignerIntrospectionInterface *introspection);
78 void setDialogGui(QDesignerDialogGuiInterface *dialogGui);
79 void setSettingsManager(QDesignerSettingsInterface *settingsManager);
80 void setResourceModel(QtResourceModel *model);
81 void setGradientManager(QtGradientManager *manager);
82 void setOptionsPages(const QList<QDesignerOptionsPageInterface*> &optionsPages);
83
84 QObjectList pluginInstances() const;
85
86 static QIcon createIcon(const QString &name);
87
88protected:
89 void setFormManager(QDesignerFormWindowManagerInterface *formWindowManager);
90 void setMetaDataBase(QDesignerMetaDataBaseInterface *metaDataBase);
91 void setWidgetDataBase(QDesignerWidgetDataBaseInterface *widgetDataBase);
92 void setPromotion(QDesignerPromotionInterface *promotion);
93 void setWidgetFactory(QDesignerWidgetFactoryInterface *widgetFactory);
94 void setExtensionManager(QExtensionManager *extensionManager);
95
96private:
97 std::unique_ptr<QDesignerFormEditorInterfacePrivate> d;
98};
99
100QT_END_NAMESPACE
101
102#endif // ABSTRACTFORMEDITOR_H
The QDesignerFormEditorInterface class allows you to access Qt Widgets Designer's various components.
friend class QWidget
Definition qpainter.h:431
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