13 #include <QtWidgets/QMessageBox>
14 #include <QtCore/QEvent>
15 #include <QtCore/QString>
31 static const unsigned int DtVK_NUMPAD0 = 0x60;
32 static const unsigned int DtVK_NUMPAD1 = 0x61;
33 static const unsigned int DtVK_NUMPAD2 = 0x62;
34 static const unsigned int DtVK_NUMPAD3 = 0x63;
35 static const unsigned int DtVK_NUMPAD4 = 0x64;
36 static const unsigned int DtVK_NUMPAD5 = 0x65;
37 static const unsigned int DtVK_NUMPAD6 = 0x66;
38 static const unsigned int DtVK_NUMPAD7 = 0x67;
39 static const unsigned int DtVK_NUMPAD8 = 0x68;
40 static const unsigned int DtVK_NUMPAD9 = 0x69;
43 static const unsigned int DtVK_MULTIPLY = 0x6A;
44 static const unsigned int DtVK_ADD = 0x6B;
45 static const unsigned int DtVK_SUBTRACT = 0x6D;
46 static const unsigned int DtVK_DECIMAL = 0x6E;
47 static const unsigned int DtVK_DIVIDE = 0x6F;
51 static const unsigned int DtVK_NUMPAD0_LINUX = 0xFFB0;
52 static const unsigned int DtVK_NUMPAD1_LINUX = 0xFFB1;
53 static const unsigned int DtVK_NUMPAD2_LINUX = 0xFFB2;
54 static const unsigned int DtVK_NUMPAD3_LINUX = 0xFFB3;
55 static const unsigned int DtVK_NUMPAD4_LINUX = 0xFFB4;
56 static const unsigned int DtVK_NUMPAD5_LINUX = 0xFFB5;
57 static const unsigned int DtVK_NUMPAD6_LINUX = 0xFFB6;
58 static const unsigned int DtVK_NUMPAD7_LINUX = 0xFFB7;
59 static const unsigned int DtVK_NUMPAD8_LINUX = 0xFFB8;
60 static const unsigned int DtVK_NUMPAD9_LINUX = 0xFFB9;
63 static const unsigned int DtVK_MULTIPLY_LINUX = 0xFFAA;
64 static const unsigned int DtVK_ADD_LINUX = 0xFFAB;
65 static const unsigned int DtVK_SUBTRACT_LINUX = 0xFFAD;
66 static const unsigned int DtVK_DECIMAL_LINUX = 0xFFAE;
67 static const unsigned int DtVK_DIVIDE_LINUX = 0xFFAF;
73 static QString eventTypeName(QEvent::Type eventType);
78 static QString eventTypeName(
QEvent const * event);
82 static QMessageBox::StandardButton critical(
DtDe& de,
83 QWidget * parent,
const QString & title,
const QString & text,
84 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
85 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
86 Qt::WindowFlags f = Qt::Tool | Qt::MSWindowsFixedSizeDialogHint);
90 static QMessageBox::StandardButton critical(
DtDe& de,
91 QWidget * parent,
const QString & title,
const QString & text,
92 bool & checkBoxChecked,
const QString& checkBoxText = QString::fromStdString(
"Do not show this dialog again"),
93 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
94 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
95 Qt::WindowFlags f = Qt::Tool | Qt::MSWindowsFixedSizeDialogHint);
99 static QMessageBox::StandardButton information (
DtDe& de,
100 QWidget * parent,
const QString & title,
const QString & text,
101 const QString& checkBoxText = QString(),
102 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
103 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
104 Qt::WindowFlags f = Qt::Tool | Qt::MSWindowsFixedSizeDialogHint );
108 static QMessageBox::StandardButton information(
DtDe& de,
109 QWidget * parent,
const QString & title,
const QString & text,
110 bool & checkBoxChecked,
const QString& checkBoxText = QString::fromStdString(
"Do not show this dialog again"),
111 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
112 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
113 Qt::WindowFlags f = Qt::Tool | Qt::MSWindowsFixedSizeDialogHint);
117 static QMessageBox::StandardButton question (
DtDe& de,
118 QWidget * parent,
const QString & title,
const QString & text,
119 QMessageBox::StandardButtons buttons = QMessageBox::Yes | QMessageBox::No,
120 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
121 Qt::WindowFlags f = Qt::MSWindowsFixedSizeDialogHint | Qt::Tool);
125 static QMessageBox::StandardButton question(
DtDe& de,
126 QWidget * parent,
const QString & title,
const QString & text,
127 bool & checkBoxChecked,
const QString& checkBoxText = QString::fromStdString(
"Do not show this dialog again"),
128 QMessageBox::StandardButtons buttons = QMessageBox::Yes | QMessageBox::No,
129 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
130 Qt::WindowFlags f = Qt::MSWindowsFixedSizeDialogHint | Qt::Tool);
134 static QMessageBox::StandardButton warning (
DtDe& de,
135 QWidget * parent,
const QString & title,
const QString & text,
136 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
137 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
138 Qt::WindowFlags f = Qt::MSWindowsFixedSizeDialogHint | Qt::Tool);
142 static QMessageBox::StandardButton warning(
DtDe& de,
143 QWidget * parent,
const QString & title,
const QString & text,
144 bool & checkBoxChecked,
const QString& checkBoxText = QString::fromStdString(
"Do not show this dialog again"),
145 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
146 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
147 Qt::WindowFlags f = Qt::MSWindowsFixedSizeDialogHint | Qt::Tool);
150 static int calculateStepSize(
int maxRange,
int numberOfSteps );
156 static double calculateStepSize(
double maxRange,
int numberOfSteps,
int decimals );
163 static QMessageBox::StandardButton showMessageBox (
164 QMessageBox& mbox, QMessageBox::StandardButton defaultButton);
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
Provides static utility functions for Qt.
Definition: DtQtUtil.h:23