Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
8
#
include
"view3d_global.h"
9
10
#
include
<
QtCore
/
qlist
.
h
>
11
#
include
<
QtCore
/
qhash
.
h
>
12
#
include
<
QtCore
/
qpointer
.
h
>
13
#
include
<
QtDesigner
/
qdesignerformeditorplugininterface
.
h
>
14
15
QT_BEGIN_NAMESPACE
16
17
class
QDesignerFormWindowInterface;
18
class
QView3DTool
;
19
class
QAction;
20
21
class
VIEW3D_EXPORT
QView3DPlugin
:
public
QObject
,
public
QDesignerFormEditorPluginInterface
22
{
23
Q_OBJECT
24
Q_INTERFACES(QDesignerFormEditorPluginInterface)
25
Q_PLUGIN_METADATA
(
IID
"org.qt-project.Qt.Designer.QDesignerFormEditorPluginInterface"
)
26
27
public
:
28
QView3DPlugin
();
29
bool
isInitialized
()
const
override
;
30
void
initialize
(QDesignerFormEditorInterface *core)
override
;
31
QAction *
action
()
const
override
;
32
QDesignerFormEditorInterface
*
core
()
const
override
;
33
34
public
slots
:
35
void
activeFormWindowChanged
(
QDesignerFormWindowInterface
*
formWindow
);
36
37
private
slots
:
38
void
addFormWindow
(
QDesignerFormWindowInterface
*
formWindow
);
39
void
removeFormWindow(QDesignerFormWindowInterface *formWindow);
40
41
private
:
42
QPointer<QDesignerFormEditorInterface> m_core;
43
QHash<QDesignerFormWindowInterface*, QView3DTool*> m_tool_list;
44
QAction *m_action;
45
};
46
47
QT_END_NAMESPACE
48
49
#
endif
// QVIEW3D_PLUGIN_H
QView3DPlugin
Definition
view3d_plugin.h:22
QView3DPlugin::initialize
void initialize(QDesignerFormEditorInterface *core) override
Initializes the plugin interface for the specified core interface.
Definition
view3d_plugin.cpp:27
QView3DPlugin::action
QAction * action() const override
Returns the action associated with this interface.
Definition
view3d_plugin.cpp:45
QView3DPlugin::core
QDesignerFormEditorInterface * core() const override
Returns the core form editor interface associated with this component.
Definition
view3d_plugin.cpp:50
QView3DPlugin::isInitialized
bool isInitialized() const override
Returns true if the plugin interface is initialized; otherwise returns false.
Definition
view3d_plugin.cpp:22
QView3DTool
Definition
view3d_tool.h:17
QView3DTool::action
QAction * action() const override
Definition
view3d_tool.cpp:36
VIEW3D_EXPORT
#define VIEW3D_EXPORT
Definition
view3d_global.h:19
qttools
src
designer
src
plugins
tools
view3d
view3d_plugin.h
Generated on
for Qt by
1.18.0