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
buddyeditor_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 GPL-3.0-only WITH Qt-GPL-exception-1.0
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
BUDDYEDITOR_TOOL_H
6
#
define
BUDDYEDITOR_TOOL_H
7
8
#
include
"buddyeditor_global.h"
9
10
#
include
<
QtCore
/
qpointer
.
h
>
11
12
#
include
<
QtDesigner
/
abstractformwindowtool
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
class
QDesignerFormEditorInterface;
17
class
QDesignerFormWindowInterface;
18
class
QAction;
19
20
namespace
qdesigner_internal
{
21
22
class
BuddyEditor
;
23
24
class
QT_BUDDYEDITOR_EXPORT
BuddyEditorTool
:
public
QDesignerFormWindowToolInterface
25
{
26
Q_OBJECT
27
public
:
28
explicit
BuddyEditorTool
(
QDesignerFormWindowInterface
*
formWindow
,
QObject
*
parent
=
nullptr
);
29
~
BuddyEditorTool
()
override
;
30
31
QDesignerFormEditorInterface *
core
()
const
override
;
32
QDesignerFormWindowInterface *
formWindow
()
const
override
;
33
34
QWidget
*
editor
()
const
override
;
35
QAction *
action
()
const
override
;
36
37
void
activated
()
override
;
38
void
deactivated
()
override
;
39
40
bool
handleEvent
(QWidget *widget, QWidget *managedWidget, QEvent *event)
override
;
41
42
private
:
43
QDesignerFormWindowInterface *m_formWindow;
44
mutable
QPointer<BuddyEditor> m_editor;
45
QAction *m_action;
46
};
47
48
}
// namespace qdesigner_internal
49
50
QT_END_NAMESPACE
51
52
#
endif
// BUDDYEDITOR_TOOL_H
QT_BUDDYEDITOR_EXPORT
#define QT_BUDDYEDITOR_EXPORT
Definition
buddyeditor_global.h:17
qdesigner_internal::BuddyEditorPlugin
Definition
buddyeditor_plugin.h:25
qdesigner_internal::BuddyEditorPlugin::isInitialized
bool isInitialized() const override
Returns true if the plugin interface is initialized; otherwise returns false.
Definition
buddyeditor_plugin.cpp:26
qdesigner_internal::BuddyEditorPlugin::initialize
void initialize(QDesignerFormEditorInterface *core) override
Initializes the plugin interface for the specified core interface.
Definition
buddyeditor_plugin.cpp:31
qdesigner_internal::BuddyEditorPlugin::core
QDesignerFormEditorInterface * core() const override
Returns the core form editor interface associated with this component.
Definition
buddyeditor_plugin.cpp:54
qdesigner_internal::BuddyEditorPlugin::action
QAction * action() const override
Returns the action associated with this interface.
Definition
buddyeditor_plugin.cpp:83
qdesigner_internal::BuddyEditorPlugin::~BuddyEditorPlugin
~BuddyEditorPlugin() override
qdesigner_internal::BuddyEditorTool
Definition
buddyeditor_tool.h:25
qdesigner_internal::BuddyEditorTool::formWindow
QDesignerFormWindowInterface * formWindow() const override
Definition
buddyeditor_tool.cpp:30
qdesigner_internal::BuddyEditorTool::activated
void activated() override
Definition
buddyeditor_tool.cpp:58
qdesigner_internal::BuddyEditorTool::action
QAction * action() const override
Definition
buddyeditor_tool.cpp:68
qdesigner_internal::BuddyEditorTool::editor
QWidget * editor() const override
Definition
buddyeditor_tool.cpp:44
qdesigner_internal::BuddyEditorTool::core
QDesignerFormEditorInterface * core() const override
Definition
buddyeditor_tool.cpp:25
qdesigner_internal::BuddyEditorTool::handleEvent
bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override
Definition
buddyeditor_tool.cpp:35
qdesigner_internal::BuddyEditorTool::~BuddyEditorTool
~BuddyEditorTool() override
qdesigner_internal::BuddyEditorTool::deactivated
void deactivated() override
Definition
buddyeditor_tool.cpp:63
qdesigner_internal::BuddyEditor
Definition
buddyeditor.h:23
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:67
qttools
src
designer
src
components
buddyeditor
buddyeditor_tool.h
Generated on
for Qt by
1.18.0