4#ifndef BUDDYEDITOR_PLUGIN_H
5#define BUDDYEDITOR_PLUGIN_H
9#include <QtDesigner/abstractformeditorplugin.h>
11#include <QtCore/qpointer.h>
12#include <QtCore/qhash.h>
16class QDesignerFormWindowInterface;
26 Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QDesignerFormEditorPluginInterface" FILE
"buddyeditor.json")
33 void initialize(QDesignerFormEditorInterface *core)
override;
43 void removeFormWindow(QDesignerFormWindowInterface *formWindow);
46 QPointer<QDesignerFormEditorInterface> m_core;
47 QHash<QDesignerFormWindowInterface*, BuddyEditorTool*> m_tools;
48 bool m_initialized =
false;
49 QAction *m_action =
nullptr;
#define QT_BUDDYEDITOR_EXPORT
bool isInitialized() const override
Returns true if the plugin interface is initialized; otherwise returns false.
void initialize(QDesignerFormEditorInterface *core) override
Initializes the plugin interface for the specified core interface.
QDesignerFormEditorInterface * core() const override
Returns the core form editor interface associated with this component.
QAction * action() const override
Returns the action associated with this interface.
~BuddyEditorPlugin() override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.