39 using StringPropertyType = std::pair<qdesigner_internal::TextPropertyValidationMode,
bool>;
41 explicit QDesignerCustomWidgetData(
const QString &pluginPath = QString());
43 enum ParseResult { ParseOk, ParseWarning, ParseError };
44 ParseResult parseXml(
const QString &xml,
const QString &name, QString *errorMessage);
46 QDesignerCustomWidgetData(
const QDesignerCustomWidgetData&);
47 QDesignerCustomWidgetData& operator=(
const QDesignerCustomWidgetData&);
48 ~QDesignerCustomWidgetData();
52 QString pluginPath()
const;
55 QString xmlClassName()
const;
57 QString xmlLanguage()
const;
59 QString xmlAddPageMethod()
const;
61 QString xmlExtends()
const;
63 QString xmlDisplayName()
const;
65 bool xmlStringPropertyType(
const QString &name, StringPropertyType *type)
const;
67 QString propertyToolTip(
const QString &name)
const;
70 QSharedDataPointer<QDesignerCustomWidgetSharedData> m_d;
77 using CustomWidgetList = QList<QDesignerCustomWidgetInterface *>;
79 explicit QDesignerPluginManager(QDesignerFormEditorInterface *core);
80 explicit QDesignerPluginManager(
const QStringList &pluginPaths,
81 QDesignerFormEditorInterface *core);
82 ~QDesignerPluginManager() override;
84 QDesignerFormEditorInterface *core()
const;
86 QObject *instance(
const QString &plugin)
const;
88 QStringList registeredPlugins()
const;
90 QStringList findPlugins(
const QString &path);
92 QStringList pluginPaths()
const;
93 void setPluginPaths(
const QStringList &plugin_paths);
95 QStringList disabledPlugins()
const;
96 void setDisabledPlugins(
const QStringList &disabled_plugins);
98 QStringList failedPlugins()
const;
99 QString failureReason(
const QString &pluginName)
const;
101 QObjectList instances()
const;
103 CustomWidgetList registeredCustomWidgets()
const;
104 QDesignerCustomWidgetData customWidgetData(QDesignerCustomWidgetInterface *w)
const;
105 QDesignerCustomWidgetData customWidgetData(
const QString &className)
const;
107 bool registerNewPlugins();
109 static QStringList defaultPluginPaths();
113 void ensureInitialized();
116 void updateRegisteredPlugins();
117 void registerPath(
const QString &path);
118 void registerPlugin(
const QString &plugin);
121 QDesignerPluginManagerPrivate *m_d;
QWidget * createPage(QWidget *parent) override
QString name() const override