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