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_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 GPL-3.0-only WITH Qt-GPL-exception-1.0
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
BUDDYEDITOR_PLUGIN_H
6
#
define
BUDDYEDITOR_PLUGIN_H
7
8
#
include
"buddyeditor_global.h"
9
10
#
include
<
QtDesigner
/
abstractformeditorplugin
.
h
>
11
12
#
include
<
QtCore
/
qpointer
.
h
>
13
#
include
<
QtCore
/
qhash
.
h
>
14
15
QT_BEGIN_NAMESPACE
16
17
class
QDesignerFormWindowInterface;
18
class
QAction;
19
20
namespace
qdesigner_internal
{
21
22
class
BuddyEditorTool
;
23
24
class
QT_BUDDYEDITOR_EXPORT
BuddyEditorPlugin
:
public
QObject
,
public
QDesignerFormEditorPluginInterface
25
{
26
Q_OBJECT
27
Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QDesignerFormEditorPluginInterface"
FILE
"buddyeditor.json"
)
28
Q_INTERFACES
(
QDesignerFormEditorPluginInterface
)
29
public
:
30
BuddyEditorPlugin
();
31
~
BuddyEditorPlugin
()
override
;
32
33
bool
isInitialized
()
const
override
;
34
void
initialize
(QDesignerFormEditorInterface *core)
override
;
35
QAction *
action
()
const
override
;
36
37
QDesignerFormEditorInterface
*
core
()
const
override
;
38
39
public
slots
:
40
void
activeFormWindowChanged
(
QDesignerFormWindowInterface
*
formWindow
);
41
42
private
slots
:
43
void
addFormWindow
(
QDesignerFormWindowInterface
*
formWindow
);
44
void
removeFormWindow(QDesignerFormWindowInterface *formWindow);
45
46
private
:
47
QPointer<QDesignerFormEditorInterface> m_core;
48
QHash<QDesignerFormWindowInterface*, BuddyEditorTool*> m_tools;
49
bool
m_initialized =
false
;
50
QAction *m_action =
nullptr
;
51
};
52
53
}
// namespace qdesigner_internal
54
55
QT_END_NAMESPACE
56
57
#
endif
// BUDDYEDITOR_PLUGIN_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::action
QAction * action() const override
Definition
buddyeditor_tool.cpp:68
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_plugin.h
Generated on
for Qt by
1.18.0