ImagingTools Core SDK
IPopupController.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ACF includes
6#include <ilog/IMessageConsumer.h>
7
8// ImtCore includes
9#include <imtgui/IPopupEventHandler.h>
10
11
12namespace imtgui
13{
14
15
16class IPopupController: virtual public ilog::IMessageConsumer
17{
18public:
26 virtual QByteArray AddPopup(const MessagePtr& messagePtr, int timeout = -1, bool isClosingOnMouseClickAllowed = true, QWidget* contentWidgetPtr = nullptr) = 0;
27 virtual void ClosePopup(const QByteArray& popupId) = 0;
28 virtual void RegisterEventHandler(IPopupEventHandler* handlerPtr) = 0;
29 virtual void UnRegisterEventHandler(IPopupEventHandler* handlerPtr) = 0;
30};
31
32
33} // namespace imtgui
34
35