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
view3d_plugin.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef Q3VIEW3D_PLUGIN_H
6#define Q3VIEW3D_PLUGIN_H
7
9
10#include <QtCore/qlist.h>
11#include <QtCore/qhash.h>
12#include <QtCore/qpointer.h>
13#include <QtDesigner/qdesignerformeditorplugininterface.h>
14
15QT_BEGIN_NAMESPACE
16
17class QDesignerFormWindowInterface;
18class QView3DTool;
19class QAction;
20
22{
23 Q_OBJECT
24 Q_INTERFACES(QDesignerFormEditorPluginInterface)
25 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.Designer.QDesignerFormEditorPluginInterface")
26
27public:
29 bool isInitialized() const override;
30 void initialize(QDesignerFormEditorInterface *core) override;
31 QAction *action() const override;
32 QDesignerFormEditorInterface *core() const override;
33
34public slots:
36
37private slots:
39 void removeFormWindow(QDesignerFormWindowInterface *formWindow);
40
41private:
42 QPointer<QDesignerFormEditorInterface> m_core;
43 QHash<QDesignerFormWindowInterface*, QView3DTool*> m_tool_list;
44 QAction *m_action;
45};
46
47QT_END_NAMESPACE
48
49#endif // QVIEW3D_PLUGIN_H
void initialize(QDesignerFormEditorInterface *core) override
Initializes the plugin interface for the specified core interface.
QAction * action() const override
Returns the action associated with this interface.
QDesignerFormEditorInterface * core() const override
Returns the core form editor interface associated with this component.
bool isInitialized() const override
Returns true if the plugin interface is initialized; otherwise returns false.
QAction * action() const override
#define VIEW3D_EXPORT