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
abstractformwindowtool.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 ABSTRACTFORMWINDOWTOOL_H
6#define ABSTRACTFORMWINDOWTOOL_H
7
8#include <QtDesigner/sdk_global.h>
9
10#include <QtCore/qobject.h>
11
12QT_BEGIN_NAMESPACE
13
14class QDesignerFormEditorInterface;
15class QDesignerFormWindowInterface;
16class QWidget;
17class QAction;
18class DomUI;
19
20class QDESIGNER_SDK_EXPORT QDesignerFormWindowToolInterface: public QObject
21{
22 Q_OBJECT
23public:
24 explicit QDesignerFormWindowToolInterface(QObject *parent = nullptr);
25 ~QDesignerFormWindowToolInterface() override;
26
27 virtual QDesignerFormEditorInterface *core() const = 0;
28 virtual QDesignerFormWindowInterface *formWindow() const = 0;
29 virtual QWidget *editor() const = 0;
30
31 virtual QAction *action() const = 0;
32
33 virtual void activated() = 0;
34 virtual void deactivated() = 0;
35
36 virtual void saveToDom(DomUI*, QWidget*) {}
37 virtual void loadFromDom(DomUI*, QWidget*) {}
38
39 virtual bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) = 0;
40};
41
42QT_END_NAMESPACE
43
44#endif // ABSTRACTFORMWINDOWTOOL_H
The QDesignerFormWindowToolInterface class provides an interface that enables tools to be used on ite...
friend class QWidget
Definition qpainter.h:432
Combined button and popup list for selecting options.