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_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
4#ifndef VIEW3D_TOOL_H
5#define VIEW3D_TOOL_H
6
8#include "view3d.h"
9
10#include <QtDesigner/qdesignerformwindowtoolinterface.h>
11#include <QtCore/qpointer.h>
12
14
16{
18
19public:
21 QDesignerFormEditorInterface *core() const override;
22 QDesignerFormWindowInterface *formWindow() const override;
23 QWidget *editor() const override;
24
25 QAction *action() const override;
26
27 virtual void activated();
28 virtual void deactivated();
29
30 bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override;
31
32private:
33 QDesignerFormWindowInterface *m_formWindow;
34 mutable QPointer<QView3D> m_editor;
35 QAction *m_action;
36};
37
38QT_END_NAMESPACE
39
40#endif // VIEW3D_TOOL_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.
QWidget * editor() const override
QDesignerFormEditorInterface * core() const override
QAction * action() const override
virtual void activated()
virtual void deactivated()
QDesignerFormWindowInterface * formWindow() const override
bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override
Combined button and popup list for selecting options.
#define VIEW3D_EXPORT