// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #ifndef ABSTRACTFORMWINDOWTOOL_H #define ABSTRACTFORMWINDOWTOOL_H #include #include QT_BEGIN_NAMESPACE class QDesignerFormEditorInterface; class QDesignerFormWindowInterface; class QWidget; class QAction; class DomUI; class QDESIGNER_SDK_EXPORT QDesignerFormWindowToolInterface: public QObject { Q_OBJECT public: explicit QDesignerFormWindowToolInterface(QObject *parent = nullptr); virtual ~QDesignerFormWindowToolInterface(); virtual QDesignerFormEditorInterface *core() const = 0; virtual QDesignerFormWindowInterface *formWindow() const = 0; virtual QWidget *editor() const = 0; virtual QAction *action() const = 0; virtual void activated() = 0; virtual void deactivated() = 0; virtual void saveToDom(DomUI*, QWidget*) {} virtual void loadFromDom(DomUI*, QWidget*) {} virtual bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) = 0; }; QT_END_NAMESPACE #endif // ABSTRACTFORMWINDOWTOOL_H