OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
MessageDialog.h
Go to the documentation of this file.
1
4
// ###########################################################################################################################################################################################################################################################################################################################
5
6
#pragma once
7
8
// OpenTwin header
9
#include "
OTCore/OTClassHelper.h
"
10
#include "
OTGui/MessageDialogCfg.h
"
11
#include "
OTWidgets/OTWidgetsAPIExport.h
"
12
13
// Qt header
14
#include <QtWidgets/qmessagebox.h>
15
16
namespace
ot
{
17
18
class
OT_WIDGETS_API_EXPORT
MessageDialog
{
19
OT_DECL_NOCOPY
(
MessageDialog
)
20
public
:
21
static
MessageDialogCfg::BasicButton
showDialog(
const
MessageDialogCfg
& _config, QWidget* _parent = (QWidget*)
nullptr
);
22
23
static
QMessageBox::Icon convertIcon(
MessageDialogCfg::BasicIcon
_icon);
24
25
static
QMessageBox::StandardButtons convertButtons(
const
MessageDialogCfg::BasicButtons
& _buttons);
26
27
private
:
28
MessageDialog
() =
delete
;
29
};
30
31
}
MessageDialogCfg.h
OTClassHelper.h
This file contains defines that may be used simplyfy class creation.
OT_DECL_NOCOPY
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition
OTClassHelper.h:14
OTWidgetsAPIExport.h
OT_WIDGETS_API_EXPORT
#define OT_WIDGETS_API_EXPORT
Definition
OTWidgetsAPIExport.h:12
ot::Flags< BasicButton >
ot::MessageDialogCfg
Definition
MessageDialogCfg.h:17
ot::MessageDialogCfg::BasicButton
BasicButton
Definition
MessageDialogCfg.h:19
ot::MessageDialogCfg::BasicIcon
BasicIcon
Definition
MessageDialogCfg.h:42
ot::MessageDialog
Definition
MessageDialog.h:18
ot
Definition
Connector.h:8
Libraries
OTWidgets
include
OTWidgets
MessageDialog.h
Generated by
1.10.0