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>
6
class
QWidget;
7
namespace
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
{
16
PopupInfo
()
17
{}
18
PopupInfo
(
const
QRect&
rect
)
19
:
rect
(
rect
)
20
{}
21
NDEVR_WIDGETS_API
PopupInfo
(QWidget*
widget
);
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
;
31
bool
allow_title_autohide
=
false
;
32
bool
windowable
=
false
;
33
bool
request_dock
=
false
;
34
bool
is_popup_menu
=
false
;
35
bool
make_call_widget_dialog
=
false
;
36
bool
delete_on_hide
=
false
;
37
int
animation_speed
= -1;
38
39
};
40
}
DLLInfo.h
NDEVR_WIDGETS_API
#define NDEVR_WIDGETS_API
Definition
DLLInfo.h:59
NDEVR
Definition
ACIColor.h:37
NDEVR::PopupInfo
Class which is used to pass arguments and requests for creating a popup dialog or widget....
Definition
PopupInfo.h:15
NDEVR::PopupInfo::finished_callback
std::function< void()> finished_callback
Definition
PopupInfo.h:23
NDEVR::PopupInfo::is_popup_menu
bool is_popup_menu
Definition
PopupInfo.h:34
NDEVR::PopupInfo::allow_title_autohide
bool allow_title_autohide
Definition
PopupInfo.h:31
NDEVR::PopupInfo::PopupInfo
PopupInfo(QWidget *widget)
NDEVR::PopupInfo::widget
QWidget * widget
Definition
PopupInfo.h:24
NDEVR::PopupInfo::fullscreen
bool fullscreen
Definition
PopupInfo.h:27
NDEVR::PopupInfo::make_call_widget_dialog
bool make_call_widget_dialog
Definition
PopupInfo.h:35
NDEVR::PopupInfo::PopupInfo
PopupInfo()
Definition
PopupInfo.h:16
NDEVR::PopupInfo::parent_widget
QWidget * parent_widget
Definition
PopupInfo.h:25
NDEVR::PopupInfo::closable
bool closable
Definition
PopupInfo.h:29
NDEVR::PopupInfo::PopupInfo
PopupInfo(const QRect &rect)
Definition
PopupInfo.h:18
NDEVR::PopupInfo::rect
QRect rect
Definition
PopupInfo.h:22
NDEVR::PopupInfo::request_dock
bool request_dock
Definition
PopupInfo.h:33
NDEVR::PopupInfo::hideable
bool hideable
Definition
PopupInfo.h:30
NDEVR::PopupInfo::windowable
bool windowable
Definition
PopupInfo.h:32
NDEVR::PopupInfo::delete_on_hide
bool delete_on_hide
Definition
PopupInfo.h:36
NDEVR::PopupInfo::animation_speed
int animation_speed
Definition
PopupInfo.h:37
NDEVR::PopupInfo::modality
Qt::WindowModality modality
Definition
PopupInfo.h:26
NDEVR::PopupInfo::request_margins
bool request_margins
Definition
PopupInfo.h:28
Widgets
Headers
PopupInfo.h