Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPopupWidgetInterface.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Emmet O 'Neill <emmetoneill.pdx@gmail.com>
3 * SPDX-FileCopyrightText: 2021 Eoin O 'Neill <eoinoneill1991@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KISPOPUPWIDGETINTERFACE_H
9#define KISPOPUPWIDGETINTERFACE_H
10
11#include <QWidget>
12#include <QGridLayout>
13
22public:
24
28 virtual void popup(const QPoint& position) = 0;
29
33 virtual bool onScreen() = 0;
34
38 virtual void dismiss() = 0;
39
40Q_SIGNALS:
44 virtual void finished() = 0;
45};
46
47Q_DECLARE_INTERFACE(KisPopupWidgetInterface, "KisPopupWidgetInterface")
48
49#endif // KISPOPUPWIDGETINTERFACE_H
The PopupWidgetInterface abstract class defines the basic interface that will be used by all popup wi...
virtual void dismiss()=0
Called when you want to dismiss a popup widget.
virtual void finished()=0
Emitted when a popup widget believes that its job is finished.
virtual void popup(const QPoint &position)=0
Called when and where you want a widget to popup.
virtual bool onScreen()=0
Returns whether the widget is active (on screen) or not.