BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
DetailedMessageBox.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Info/DetailedMessageBox.h
6 //! @brief Defines class DetailedMessageBox
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_DETAILEDMESSAGEBOX_H
16 #define BORNAGAIN_GUI_VIEW_INFO_DETAILEDMESSAGEBOX_H
17 
18 #include <QDialog>
19 #include <QString>
20 
21 class QLabel;
22 class QTextEdit;
23 class QBoxLayout;
24 
25 //! A dialog similar to standard QMessageBox intended for detailed warning messages.
26 //! On the contrary to QMessageBox, the dialog has size grip and visible text editor.
27 
28 class DetailedMessageBox : public QDialog {
29  Q_OBJECT
30 public:
31  DetailedMessageBox(QWidget* parent, const QString& title, const QString& text,
32  const QString& details);
33 
34  void setText(const QString& text);
35  void setDetailedText(const QString& text);
36 
37 private:
38  QBoxLayout* createLogoLayout();
39  QBoxLayout* createInfoLayout();
40  QBoxLayout* createButtonLayout();
41 
42  QLabel* m_topLabel;
43  QTextEdit* m_textEdit;
44 };
45 
46 #endif // BORNAGAIN_GUI_VIEW_INFO_DETAILEDMESSAGEBOX_H
A dialog similar to standard QMessageBox intended for detailed warning messages. On the contrary to Q...
void setText(const QString &text)
void setDetailedText(const QString &text)
DetailedMessageBox(QWidget *parent, const QString &title, const QString &text, const QString &details)
QBoxLayout * createButtonLayout()
Creates button layout with buttons.
QBoxLayout * createInfoLayout()
Creates right layout with text and QComboBox selection.
QBoxLayout * createLogoLayout()
Returns layout with icon for left part of the widget.