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
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
4#ifndef BUDDYEDITOR_TOOL_H
5#define BUDDYEDITOR_TOOL_H
6
8
9#include <QtCore/qpointer.h>
10
11#include <QtDesigner/abstractformwindowtool.h>
12
14
15class QDesignerFormEditorInterface;
16class QDesignerFormWindowInterface;
17class QAction;
18
19namespace qdesigner_internal {
20
21class BuddyEditor;
22
24{
26public:
29
30 QDesignerFormEditorInterface *core() const override;
31 QDesignerFormWindowInterface *formWindow() const override;
32
33 QWidget *editor() const override;
34 QAction *action() const override;
35
36 void activated() override;
37 void deactivated() override;
38
39 bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override;
40
41private:
42 QDesignerFormWindowInterface *m_formWindow;
43 mutable QPointer<BuddyEditor> m_editor;
44 QAction *m_action;
45};
46
47} // namespace qdesigner_internal
48
49QT_END_NAMESPACE
50
51#endif // BUDDYEDITOR_TOOL_H
#define QT_BUDDYEDITOR_EXPORT
bool isInitialized() const override
Returns true if the plugin interface is initialized; otherwise returns false.
void initialize(QDesignerFormEditorInterface *core) override
Initializes the plugin interface for the specified core interface.
QDesignerFormEditorInterface * core() const override
Returns the core form editor interface associated with this component.
QAction * action() const override
Returns the action associated with this interface.
QDesignerFormWindowInterface * formWindow() const override
QAction * action() const override
QWidget * editor() const override
QDesignerFormEditorInterface * core() const override
bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.