BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
MessageBox.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Info/MessageBox.h
6 //! @brief Defines class GUIHelpers functions
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_VIEW_INFO_MESSAGEBOX_H
16 #define BORNAGAIN_GUI_VIEW_INFO_MESSAGEBOX_H
17 
18 #include <QWidget>
19 
20 class RealLimits;
21 class QDoubleSpinBox;
22 class QLineEdit;
23 
24 namespace GUI::View::Helpers {
25 
26 void information(QWidget* parent, const QString& title, const QString& text,
27  const QString& detailedText = "");
28 
29 void warning(QWidget* parent, const QString& title, const QString& text,
30  const QString& detailedText = "");
31 
32 bool question(QWidget* parent, const QString& title, const QString& text,
33  const QString& detailedText = "", const QString& yesText = "&Yes",
34  const QString& noText = "&No");
35 
36 bool okToDelete(QWidget* parent, const QString& title, const QString& text,
37  const QString& detailedText = "");
38 
39 } // namespace GUI::View::Helpers
40 
41 #endif // BORNAGAIN_GUI_VIEW_INFO_MESSAGEBOX_H
void information(QWidget *parent, const QString &title, const QString &text, const QString &detailedText)
Definition: MessageBox.cpp:22
bool okToDelete(QWidget *parent, const QString &title, const QString &text, const QString &detailedText)
Definition: MessageBox.cpp:70
void warning(QWidget *parent, const QString &title, const QString &text, const QString &detailedText)
Definition: MessageBox.cpp:37
bool question(QWidget *parent, const QString &title, const QString &text, const QString &detailedText, const QString &yesText, const QString &noText)
Definition: MessageBox.cpp:52