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
4#ifndef Q3VIEW3D_PLUGIN_H
5#define Q3VIEW3D_PLUGIN_H
6
8
9#include <QtCore/qlist.h>
10#include <QtCore/qhash.h>
11#include <QtCore/qpointer.h>
12#include <QtDesigner/qdesignerformeditorplugininterface.h>
13
14QT_BEGIN_NAMESPACE
15
16class QDesignerFormWindowInterface;
17class QView3DTool;
18class QAction;
19
21{
22 Q_OBJECT
23 Q_INTERFACES(QDesignerFormEditorPluginInterface)
24 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.Designer.QDesignerFormEditorPluginInterface")
25
26public:
28 bool isInitialized() const override;
29 void initialize(QDesignerFormEditorInterface *core) override;
30 QAction *action() const override;
31 QDesignerFormEditorInterface *core() const override;
32
33public slots:
35
36private slots:
38 void removeFormWindow(QDesignerFormWindowInterface *formWindow);
39
40private:
41 QPointer<QDesignerFormEditorInterface> m_core;
42 QHash<QDesignerFormWindowInterface*, QView3DTool*> m_tool_list;
43 QAction *m_action;
44};
45
46QT_END_NAMESPACE
47
48#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