5#ifndef BUDDYEDITOR_PLUGIN_H
6#define BUDDYEDITOR_PLUGIN_H
10#include <QtDesigner/abstractformeditorplugin.h>
12#include <QtCore/qpointer.h>
13#include <QtCore/qhash.h>
17class QDesignerFormWindowInterface;
27 Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QDesignerFormEditorPluginInterface" FILE
"buddyeditor.json")
34 void initialize(QDesignerFormEditorInterface *core)
override;
44 void removeFormWindow(QDesignerFormWindowInterface *formWindow);
47 QPointer<QDesignerFormEditorInterface> m_core;
48 QHash<QDesignerFormWindowInterface*, BuddyEditorTool*> m_tools;
49 bool m_initialized =
false;
50 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.