API Documentation
Loading...
Searching...
No Matches
PopupInfo.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <QRect>
4#include <functional>
5#include <qnamespace.h>
6class QWidget;
7namespace NDEVR
8{
9 /**--------------------------------------------------------------------------------------------------
10 \brief Class which is used to pass arguments and requests for creating a popup dialog or widget.
11 You can request things like fullscreen, whether or not the dialog is closable, etc, as well
12 as the animation origin for the popup.
13 **/
14 struct PopupInfo
15 {
17 {}
18 PopupInfo(const QRect& rect)
19 : rect(rect)
20 {}
22 QRect rect;
23 std::function<void()> finished_callback;
24 QWidget* widget = nullptr;
25 QWidget* parent_widget = nullptr;
26 Qt::WindowModality modality = Qt::WindowModality::NonModal;
27 bool fullscreen = false;
28 bool request_margins = false;
29 bool closable = false;
30 bool hideable = false;
32 bool windowable = false;
33 bool request_dock = false;
34 bool is_popup_menu = false;
36 bool delete_on_hide = false;
38
39 };
40}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:59
Definition ACIColor.h:37
Class which is used to pass arguments and requests for creating a popup dialog or widget....
Definition PopupInfo.h:15
std::function< void()> finished_callback
Definition PopupInfo.h:23
bool is_popup_menu
Definition PopupInfo.h:34
bool allow_title_autohide
Definition PopupInfo.h:31
PopupInfo(QWidget *widget)
QWidget * widget
Definition PopupInfo.h:24
bool fullscreen
Definition PopupInfo.h:27
bool make_call_widget_dialog
Definition PopupInfo.h:35
PopupInfo()
Definition PopupInfo.h:16
QWidget * parent_widget
Definition PopupInfo.h:25
bool closable
Definition PopupInfo.h:29
PopupInfo(const QRect &rect)
Definition PopupInfo.h:18
QRect rect
Definition PopupInfo.h:22
bool request_dock
Definition PopupInfo.h:33
bool hideable
Definition PopupInfo.h:30
bool windowable
Definition PopupInfo.h:32
bool delete_on_hide
Definition PopupInfo.h:36
int animation_speed
Definition PopupInfo.h:37
Qt::WindowModality modality
Definition PopupInfo.h:26
bool request_margins
Definition PopupInfo.h:28