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_tool.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
VIEW3D_TOOL_H
6
#
define
VIEW3D_TOOL_H
7
8
#
include
"view3d_global.h"
9
#
include
"view3d.h"
10
11
#
include
<
QtDesigner
/
qdesignerformwindowtoolinterface
.
h
>
12
#
include
<
QtCore
/
qpointer
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
class
VIEW3D_EXPORT
QView3DTool
:
public
QDesignerFormWindowToolInterface
17
{
18
Q_OBJECT
19
20
public
:
21
explicit
QView3DTool
(
QDesignerFormWindowInterface
*
formWindow
,
QObject
*
parent
= 0);
22
QDesignerFormEditorInterface
*
core
()
const
override
;
23
QDesignerFormWindowInterface *
formWindow
()
const
override
;
24
QWidget
*
editor
()
const
override
;
25
26
QAction *
action
()
const
override
;
27
28
virtual
void
activated
();
29
virtual
void
deactivated
();
30
31
bool
handleEvent
(QWidget *widget, QWidget *managedWidget, QEvent *event)
override
;
32
33
private
:
34
QDesignerFormWindowInterface *m_formWindow;
35
mutable
QPointer<QView3D> m_editor;
36
QAction *m_action;
37
};
38
39
QT_END_NAMESPACE
40
41
#
endif
// VIEW3D_TOOL_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::editor
QWidget * editor() const override
Definition
view3d_tool.cpp:28
QView3DTool::core
QDesignerFormEditorInterface * core() const override
Definition
view3d_tool.cpp:18
QView3DTool::action
QAction * action() const override
Definition
view3d_tool.cpp:36
QView3DTool::activated
virtual void activated()
Definition
view3d_tool.cpp:41
QView3DTool::deactivated
virtual void deactivated()
Definition
view3d_tool.cpp:47
QView3DTool::formWindow
QDesignerFormWindowInterface * formWindow() const override
Definition
view3d_tool.cpp:23
QView3DTool::handleEvent
bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override
Definition
view3d_tool.cpp:51
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
VIEW3D_EXPORT
#define VIEW3D_EXPORT
Definition
view3d_global.h:19
qttools
src
designer
src
plugins
tools
view3d
view3d_tool.h
Generated on
for Qt by
1.18.0